Skip to content

Example of running monit-grafana instance for checking containerized services in docker-compose.

License

Notifications You must be signed in to change notification settings

demetrio108/monit-grafana-example

Repository files navigation

monit-grafana-example

Example of running monit-grafana instance for checking containerized services in docker-compose.

Docker-compose file contains:

Quick start

Clone this repo and cd inside:

git clone https://github.com/demetrio108/monit-grafana-example && cd monit-grafana-example

Launch deployment:

docker-compose up

Install SimpleJSON plugin from another terminal window:

docker exec -ti grafana grafana-cli plugins install grafana-simple-json-datasource

Restart Grafana:

docker restart grafana

Login to Grafana (http://localhost:3000 admin/admin) and create new datasource with type SimpleJSON. Use URL http://monit-grafana:8080/monit_test/ and leave default values for other parameters.

Select Dashboards->Manage from menu, then click Upload button and choose sample provided dashboard monit-grafana-dashboard.json. On successfull import you should see dashboard like this:

monit example dashboard

Try stopping/starting containers

docker stop container1
docker start container1

About

Example of running monit-grafana instance for checking containerized services in docker-compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published