comparison src/main.ts @ 5:9eaa993ed373

monitoring
author drewp@bigasterisk.com
date Sun, 15 Oct 2023 18:47:45 -0700
parents 4365c72c59f6
children
comparison
equal deleted inserted replaced
4:d0fa3638de2a 5:9eaa993ed373
1 import { LitElement, TemplateResult, css, html } from "lit"; 1 import { LitElement, TemplateResult, css, html } from "lit";
2 import { customElement, property } from "lit/decorators.js"; 2 import { customElement, property } from "lit/decorators.js";
3 export { SgSource, SgView, StreamedGraph } from "@bigasterisk/streamed-graph"; 3 export { SgSource, SgView, StreamedGraph } from "@bigasterisk/streamed-graph";
4 export { MetricRow } from "./MetricRow";
4 5
5 @customElement("fd-page") 6 @customElement("fd-page")
6 export class FdPage extends LitElement { 7 export class FdPage extends LitElement {
7 static styles = [ 8 static styles = [
8 css` 9 css`
46 <sg-source url="./api/graph"></sg-source> 47 <sg-source url="./api/graph"></sg-source>
47 <sg-source url="./view.n3"></sg-source> 48 <sg-source url="./view.n3"></sg-source>
48 <sg-view uri="#view"></sg-view> 49 <sg-view uri="#view"></sg-view>
49 </streamed-graph> 50 </streamed-graph>
50 <p> 51 <p>
51 <a href="metrics">metrics</a> | 52 <a href="metrics">metrics</a> | <a href="api/graph">graph</a> |
52 <a href="api/graph">graph</a> 53 <a href="https://bigasterisk.com/k/clusters/local/namespaces/default/deployments/front-door-lock">deploy</a> |
54 <a href="https://bigasterisk.com/k/clusters/local/namespaces/default/deployments/front-door-lock/logs">logs</a> |
55 <a href="https://bigasterisk.com/vmalert/groups#group-14459482342649697182">alert group</a>
56 </p>
57 <p>
58 <metric-row label="reader esp32: mqtt connected " q='hw_connected{job="fingerprint"}'></metric-row>
59 <metric-row label="reader service: up " q='up{job="fingerprint"}'></metric-row>
60 <metric-row label="reader service: mqtt connected" q='mqtt_connected{job="fingerprint"}'></metric-row>
61 <metric-row label="Lock service (this page): up " q='up{job="front-door-lock"}'></metric-row>
62 <metric-row label="Lock service: mqtt connected " q='mqtt_connected{job="front-door-lock"}'></metric-row>
63 <metric-row label="Lock esp32: mqtt-connected " q='hw_connected{job="front-door-lock"}'></metric-row>
53 </p> 64 </p>
54 <bigast-loginbar></bigast-loginbar> 65 <bigast-loginbar></bigast-loginbar>
55 `; 66 `;
56 } 67 }
57 async simple(command: string) { 68 async simple(command: string) {