Skip to content

A docker compose that setups up a grafana hooked up to a prometheus that can probe `/metrics` on localhost

License

Notifications You must be signed in to change notification settings

tbinetruy/compose-prometheus-grafana

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

After starting the compose file, you will be able to access:

With Prometheus scraping http://localhost:8000/metrics by default (this can be changed in the file prometheus/prometheus.yml) and Grafana configured with Prometheus as a datasource.

Volumes presist data between docker compose restarts unless you docker compose down --volumes.

Start up the compose file with:

docker compose up

# grafana    => http://localhost:3000
# prometheus => http://localhost:9090


# grafana container shell:
# - docker compose exec grafana bash

# prometheus container shell:
# - docker compose exec prometheus sh

**N.B.** You can set the password to update the `admin` user in grafana/config.monitoring, it is set to foobar by default.

About

A docker compose that setups up a grafana hooked up to a prometheus that can probe `/metrics` on localhost

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published