- Create Flask application
- Add prometheus wsgi middleware to route /metrics requests, little addon that is required for getting the /metrics endpoint
- Create Dockerfile
- Create the docker-compose.yml file
- Let it run! (docker-compose up --build)
- Add the Prometheus data source to Grafana a. You need to set the Prometheus server URL to http://prometheus:9090 and not http://localhsot:9090. When you're inside the Grafana container and you try to access localhost or 127.0.0.1, you're referencing the Grafana container itself, not the host machine or other containers. Therefore, you can't access the Prometheus service by using localhost. When you're using http://prometheus:9090, Grafana will work with Docker's internal DNS resolve.
- Create custom dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
MadMowgli/OpenStackExample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example project for a simple Flask application that implements the Prometheus client library and works together with Prometheus and Grafana using Docker Compose.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published