Configuring Prometheus and Grafana
The config dev environment includes Prometheus and Grafana containers that are configured to monitor the deployment of i2 Analyze. You can use the config dev environment to configure the general Prometheus and Grafana configuration. For example you can modify the alerts that can be sent from Prometheus or modify the dashboards in Grafana.
Configuring Prometheus
The scrape configurations for i2 Analyze and Liberty are configured for you in the config dev environment. This allows you to focus on configuring the behavior of Prometheus.
For more information about what you can configure, see Prometheus Docs.
To modify the Prometheus configuration, edit the configs/<config-name>/configuration/prometheus/prometheus.yml
file.
To update the deployment with the configuration, run the following command from the scripts
directory:
deploy -c <config_name>
To view the Prometheus UI, connect to https://prometheus.eia:9090
. Log in using the user name prometheus
and the password from the dev-environment-secrets/generated-secrets/prometheus/admin_PASSWORD
file.
Configuring Grafana dashboards
In the config dev environment, Prometheus is already configured as a data source in Grafana. This allows you to focus on configuring the Grafana dashboards.
To view the Grafana UI, connect to https://grafana.eia:3500/dashboards
. Log in using the user name grafana
and the password from the dev-environment-secrets/generated-secrets/grafana/admin_PASSWORD
file.
In the UI you can create or modify dashboards. For more information about Grafana dashboards, see About Grafana dashboards.
After you create or modify a dashboard, export it and copy the JSON file into the configs/<config-name>/configuration/grafana/dashboards
folder. For more information, see Exporting a dashboard
To update the deployment with the modified dashboards, run the following command:
deploy -c <config_name>