diff --git a/light9/web/index.html b/light9/web/index.html --- a/light9/web/index.html +++ b/light9/web/index.html @@ -4,18 +4,7 @@ light9 home - -

light9 home page

- -
- - - - - - -
diff --git a/light9/web/metrics/StatsLine.ts b/light9/web/metrics/StatsLine.ts --- a/light9/web/metrics/StatsLine.ts +++ b/light9/web/metrics/StatsLine.ts @@ -48,7 +48,7 @@ export class StatsLine extends LitElemen changedProperties.forEach((oldValue: any, propName: string) => { if (propName == "name") { const reload = () => { - fetch(this.name + "/metrics").then((resp) => { + fetch("/service/"+this.name + "/metrics").then((resp) => { if (resp.ok) { resp .text() diff --git a/light9/web/metrics/index.html b/light9/web/metrics/index.html new file mode 100644 --- /dev/null +++ b/light9/web/metrics/index.html @@ -0,0 +1,19 @@ + + + + metrics + + + + + +
+ + + + + + +
+ +