Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 2.29 KB

File metadata and controls

51 lines (30 loc) · 2.29 KB

Grafana Dashboards

Dashboards for KnowWhereGraph service monitoring

Monitoring & Access

The grafana deployment can be found on port `3000`` of the server that it's deployed on.

Setting Up

Set the username and password in the docker-compose file; use these to sign into the dashboard. The data connection to prometheus and dashboard integrations are automatic and will be set up when the service is started.

The username and password for prometheus also need to be set in provisioning/datasources/all.yml.

Note: Folders that are mounted to the grafana container should have permissions set from sudo chown -R 472:472. Eg: sudo chown -R 472:472 persistent_config/.

Development

Some important notes:

  1. There are dashboard JSON definitions. These are JSON files that are the actual dashboard controls.
  2. There are dashboard yaml definitions. These are yaml files that point to the JSON definitions.
  3. The two definitions are mounted in different locations (check the docker-compose)
  4. There is a persistent_config folder that's created by the Grafana process. This can be deleted between deployments
  5. There is a config folder that contains important dashboard and Grafana config. Don't delete this

Adding Dashboards

New dashboards should be added to the provisioning/dashboards folder and the sources (if needed) should be documented in this Readme, in the Dashboard Sources section.

Dashboard Sources

The dashboards are taken from pre-designed packages, which are available on the Grafana Labs Portal. The dashboard sources are linked below.

Data Sources

Grafana makes use of two data sources

Prometheus

Prometheus stores the metrics data and requires the prometheus user/pass to connect. This is set in the datasource yaml file, and the credentials should match the prometheus docker-compose credentials.

Loki

Loki is the log data source. The communication with this service is unauthenticated.