Setup Prometheus and Grafana
Setup Prometheus and Grafana to collect and present FortifiedID Integrity metrics
Last updated
Setup Prometheus and Grafana to collect and present FortifiedID Integrity metrics
Last updated
The solution described below involves two new docker containers, Prometheus resp Grafana, running on the same host as the integrity container.
Edit the docker yml file for integrity. Export port 7081 and make sure the JVM is started with JVM_CONFIG=prometheus option.
Example extract
Create a prometheus file, prometheus.yml, and add this info to the file.
Follow this guide, until "Add the first dashboard": https://www.theairtips.com/post/setting-up-grafana-with-docker-compose. Change the prometheus url from http://prometheus:9090 to http://host.docker.internal:9090
Add a dashboard by importing the json from grafana_fortifiedid_integrity.json
. Modify the dashboard to suite your needs and environment.
Login to Grafana, http://<grafana_host>:3000, admin/admin. The dashbord "Integrity" should be visible.
Browse to http://<integrity_host>:7081/metrics/prometheus. A list of metrics should be presented. Check the config if npt.
Browse to http://<prometheus_host>:9090/. Go to Status->Targets. Make sure that the fid target is in state = UP. Check the config if npt.
Browse to http://<grafana_host>:3000/ and login with admin/admin. Click the cog wheel on the left panel and select Data Sources. Click on the Prometheus data source and then Save and test. Check the result of the operation. Check the config if the test was unsuccessful.