keytransparency icon indicating copy to clipboard operation
keytransparency copied to clipboard

Build Server Monitoring Dashboard

Open gdbelvin opened this issue 6 years ago • 3 comments

The new metrics in #1185 should be exposed in a nice dashboard somewhere.

gdbelvin avatar Feb 07 '19 14:02 gdbelvin

I'd like to give this a whirl this weekend if we don't lose power :-(

Propose using Grafana to visualize the metrics available through the Prometheus-compliant exporter(s). Is that what's expected?

I'm not an expert in Grafana nor PromQL but this would provide a good opportunity to learn.

DazWilkin avatar Feb 08 '19 21:02 DazWilkin

image

Something like this?

  1. Revise docker-compose.yml to include Grafana: https://gist.github.com/DazWilkin/4db7fd5de71ae029afdacd57d1189a97#file-docker-compose-yml

  2. Create ./deploy/grafana/datasources/prometheus.yml: https://gist.github.com/DazWilkin/4db7fd5de71ae029afdacd57d1189a97#file-prometheus-yml

  3. Import (!?) the dashboard: https://gist.github.com/DazWilkin/4db7fd5de71ae029afdacd57d1189a97#file-keytransparency-json

Alternatively, run the Grafana image outside of the docker-compose services:

  1. Change the prometheus.yml to point to localhost:9090 instead of prometheus:9090
  2. Run the Grafana image from the keytransparency directory:
docker run \
--interactive \
--tty \
--net=host \
--env=GF_SECURITY_ADMIN_PASSWORD=secret \
--volume=$PWD/deploy/grafana/datasources:/etc/grafana/provisioning/datasources \
grafana/grafana

DazWilkin avatar Feb 10 '19 20:02 DazWilkin

That looks beautiful!

On Sun, Feb 10, 2019 at 8:37 PM Daz Wilkin [email protected] wrote:

[image: image] https://user-images.githubusercontent.com/1022400/52539145-a6672080-2d2f-11e9-96c8-134e089c04b4.png

Something like this?

Revise docker-compose.yml to include Grafana:

https://gist.github.com/DazWilkin/4db7fd5de71ae029afdacd57d1189a97#file-docker-compose-yml 2.

Create ./deploy/grafana/datasources/prometheus.yml:

https://gist.github.com/DazWilkin/4db7fd5de71ae029afdacd57d1189a97#file-prometheus-yml 3.

Import (!?) the dashboard:

https://gist.github.com/DazWilkin/4db7fd5de71ae029afdacd57d1189a97#file-keytransparency-json

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/keytransparency/issues/1192#issuecomment-462169768, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMHTkl2AwLz6Rd93vMCMAJfBRrNZAkuks5vMIL0gaJpZM4anZ7Y .

gdbelvin avatar Feb 18 '19 16:02 gdbelvin