Skip to content

A simple docker compose setup to bootstrap grafana and prometheus to monitor local processes while developing

License

Notifications You must be signed in to change notification settings

fredjeck/docker-grafana-prometheus

Repository files navigation

Grafana and Docker for local monitoring

This is a simple docker compose environment allowing to run a Grafana+Prometheus instance locally to monitor local process while developing.

First, create a file named .env with the following content at the same location as the docker-compose.yml file to define the credentials which will be used for your grafana accesses

ADMIN_USER=admin  
ADMIN_PASSWORD=admin

For instance, if you have a Prometheus enabled application locally on port 5016, add the following snippet to prometheus/configuration/prometheus.yml

  - job_name: 'dotnet'
    scrape_interval: 5s
    static_configs:
      - targets: ['host.docker.internal:5016']

This repository is hugely a simplification based on https://github.com/stefanprodan/dockprom

About

A simple docker compose setup to bootstrap grafana and prometheus to monitor local processes while developing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published