{"id":17659717,"url":"https://github.com/yoriiis/monitoring-box","last_synced_at":"2026-04-29T21:33:09.236Z","repository":{"id":150790563,"uuid":"240908999","full_name":"yoriiis/monitoring-box","owner":"yoriiis","description":":whale: Monitoring box with Docker, Grafana, Telegraf and InfluxDB :chart_with_upwards_trend:","archived":false,"fork":false,"pushed_at":"2020-03-24T19:53:41.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T12:41:19.512Z","etag":null,"topics":["dashboard","docker","docker-compose","grafana","influxdb","monitoring","nginx-proxy","notifier","slack","telegraf"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoriiis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-16T14:49:53.000Z","updated_at":"2020-08-05T21:25:21.000Z","dependencies_parsed_at":"2023-05-01T13:06:21.315Z","dependency_job_id":null,"html_url":"https://github.com/yoriiis/monitoring-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoriiis%2Fmonitoring-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoriiis%2Fmonitoring-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoriiis%2Fmonitoring-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoriiis%2Fmonitoring-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoriiis","download_url":"https://codeload.github.com/yoriiis/monitoring-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307928,"owners_count":20756478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dashboard","docker","docker-compose","grafana","influxdb","monitoring","nginx-proxy","notifier","slack","telegraf"],"created_at":"2024-10-23T16:08:03.361Z","updated_at":"2026-04-29T21:33:04.217Z","avatar_url":"https://github.com/yoriiis.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# monitoring-box\n\nRuns a suite of services for a full-fledged monitoring using Compose. Uses a bunch of a community-built Docker images.\n\n## Services\n\n- [Nginx proxy](https://hub.docker.com/r/jwilder/nginx-proxy/dockerfile)\n- [Grafana](https://hub.docker.com/r/grafana/grafana/)\n- [InfluxDB](https://hub.docker.com/_/influxdb)\n- [Telegraf](https://hub.docker.com/_/telegraf)\n\n## Getting started\n\n### Prerequisite and dependencies\n\nInstall all dependencies list below on the server:\n\n- [Nginx](https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04-quickstart)\n- [Certbot](https://certbot.eff.org)\n- [Docker \u0026 Docker Compose](https://www.digitalocean.com/community/tutorials/comment-installer-et-utiliser-docker-sur-ubuntu-18-04-fr)\n- [GIT](https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-18-04-quickstart)\n\n### Clone the repository\n\nClone the repository on the server in the `home` directory.\n\n### Grafana provisioning\n\nGrafana provisioning is enabled for datasource, dashboards and alert notifications with the `./config/grafana/` directory. On up, Grafana will mount datasource, dashboards and alert notifications from this folder.\n\n\u003e More informations is available on the Grafana [provisionning documentation](https://grafana.com/docs/grafana/latest/administration/provisioning/)\n\n#### Dashboard\n\nThe project includes a dashboard example from [Grafana labs](https://grafana.com/grafana/dashboards/928).\n\n#### Notifiers\n\nReplace `\u003cSLACK_WEB_HOOK\u003e` by your personnal [Slack webhook](https://api.slack.com/messaging/webhooks#getting_started) in the `./config/grafana/notifiers.yml` file.\n\n### Change permissions\n\nChange permissions of `/grafana` directory to add the secific user ID `472` as the \u003ca href=\"https://grafana.com/docs/installation/docker/#user-id-changes\" title=\"Grafana documentation\"\u003eGrafana installation documentation\u003c/a\u003e.\n\n```\nchown 472:472 grafana\n```\n\nChange permissions of `/grafana` directory to authorize Grafana to write in the folder.\n\n```\n# drwxrwxr-x\nsudo chmod 775 -R grafana/\n```\n\n### Edit the .env file\n\nBy default `.env` file is not versioned, run the following command to duplicate `.env.dist` and fill the file:\n\n```\ncp .env.dist .env\n```\n\nUpdate corresponding variables:\n\n- `RESTART_MODE` - Docker restart mode\n- `TIME_ZONE` - Time zone of containers\n- `HOST_NAME` - Domain attach to the server\n\nLike the following example:\n\n```\nRESTART_MODE=unless-stopped\nTIME_ZONE=Europe/Paris\nHOST_NAME=domain.com\n```\n\n## InfluxDB commands\n\nTelegraf need an InfluxDB database with a specific retention policy.\n\nStart InfluxDB CLI:\n\n```\ncd ./monitoring-box\ndocker exec -it monitoring-influxdb influx\n```\n\nCreate the InfluxDB database:\n\n```\nCREATE DATABASE monitoring_influx_db\n```\n\nCreate the retention `oneweek` use by Telegraf and InfluxDB:\n\n```\nCREATE RETENTION POLICY \"oneweek\" ON \"monitoring_influx_db\" DURATION 1w REPLICATION 1 DEFAULT\n```\n\nCheck retentions\n\n```\nSHOW RETENTION POLICIES ON monitoring_influx_db\n```\n\n## Start the Docker Compose 🚀\n\nSimply start all the services with the command below, which uses the `docker-compose.yml` file by default.\n\n```bash\n# -d option let you run containers in the background\ndocker-compose up -d\n```\n\n## Licence 🤞\n\n`monitoring-box` is licensed under the [MIT License](http://opensource.org/licenses/MIT).\n\nCreated with ♥ by [@yoriiis](http://github.com/yoriiis).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoriiis%2Fmonitoring-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoriiis%2Fmonitoring-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoriiis%2Fmonitoring-box/lists"}