Verified Commit 1f37eb16 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Document how to add metrics to dashboards.archlinux.org

Document how to whitelist some metrics for the public Grafana instance.

Closes: #334
parent d6626844
Pipeline #7399 passed with stage
in 48 seconds
# Grafana
Our Grafana is hosted on https://monitoring.archlinux.org and is accessible for
all DevOps Staff, editing rights are restricted to users with the Devops
Role.
Our Grafana is hosted on https://monitoring.archlinux.org and is accessible only to DevOps Staff.
A public accessible instance is hosted on https://dashboards.archlinux.org with selected metrics.
A public accessible instance is hosted on https://dashboards.archlinux.org with selected metrics using prometheus "remote write" feature.
Dashboards and datasources are automatically provisioned by Grafana with Grafana's built-in [provisioning configuration](https://grafana.com/docs/grafana/latest/administration/provisioning/).
......@@ -15,3 +13,11 @@ A new dashboard can be configured in our Grafana instance to try it out and if s
* Export the dashboard to json (top left, share dashboard => exporter => save to file).
* Save the json file in `roles/grafana/files/dashboards'
* Git add the file and run the grafana playbook
## Adding new metrics to dashboards.archlinux.org
Metrics can be added to the public grafana instance if they are already collected on `monitoring.archlinux.org`
* Verify that the metrics are allowed to be made public and check with another DevOps member.
* Edit `roles/prometheus/templates/prometheus.yml.j2` and extending the `regex` of the `remote_write` block.
* Run `ansible-playbook playboks/monitoring.archlinux.org -t prometheus` to update the `remote_write` configuration.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment