{"id":17780691,"url":"https://github.com/captainigl00/grafana-influxdb-docker-compose","last_synced_at":"2025-08-12T18:33:42.584Z","repository":{"id":259054425,"uuid":"876126242","full_name":"CaptainIgl00/grafana-influxdb-docker-compose","owner":"CaptainIgl00","description":"Automatic configuration of Grafana and InfluxDB","archived":false,"fork":false,"pushed_at":"2024-10-21T15:29:48.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-28T05:34:06.067Z","etag":null,"topics":["dashboard","docker","docker-compose","grafana","grafana-influxdb","influxdb","template"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaptainIgl00.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":"2024-10-21T12:51:05.000Z","updated_at":"2024-10-21T15:29:51.000Z","dependencies_parsed_at":"2024-10-22T05:44:02.138Z","dependency_job_id":null,"html_url":"https://github.com/CaptainIgl00/grafana-influxdb-docker-compose","commit_stats":null,"previous_names":["captainigl00/grafana-influxdb-docker-compose"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIgl00%2Fgrafana-influxdb-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIgl00%2Fgrafana-influxdb-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIgl00%2Fgrafana-influxdb-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainIgl00%2Fgrafana-influxdb-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainIgl00","download_url":"https://codeload.github.com/CaptainIgl00/grafana-influxdb-docker-compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229701798,"owners_count":18110216,"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","grafana-influxdb","influxdb","template"],"created_at":"2024-10-27T03:03:32.909Z","updated_at":"2024-12-14T12:22:38.757Z","avatar_url":"https://github.com/CaptainIgl00.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003eReal-Time Data Visualization Stack\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://www.influxdata.com/images/influxdata_full_navy-a7ca2ff4.svg\" alt=\"Logo InfluxDB\" height=\"100\"\u003e\n  \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003cimg src=\"https://www.docker.com/wp-content/uploads/2022/03/Moby-logo.png\" alt=\"Logo Docker\" height=\"100\"\u003e\n  \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n  \u003cimg src=\"https://grafana.com/static/assets/img/grafana_logo.svg\" alt=\"Logo Grafana\" height=\"100\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/CaptainIgl00/grafana-influxdb-docker-compose/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Licence-GPL%203.0-blue.svg\" alt=\"Licence\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/CaptainIgl00/grafana-influxdb-docker-compose/releases\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/CaptainIgl00/grafana-influxdb-docker-compose\" alt=\"Last Version\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n\nThis project sets up a complete **monitoring environment** using **Docker Compose** to orchestrate **InfluxDB** and **Grafana**. It allows for **collecting**, **storing**, and **visualizing real-time metric data**. The configuration includes automatic initialization of InfluxDB and automatic configuration of Grafana with pre-configured data sources and dashboards.\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Project Structure](#project-structure)\n- [Troubleshooting](#troubleshooting)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Prerequisites\n\n- Docker installed on your machine.\n- Docker Compose installed (version 3.7 or higher recommended).\n\n## Installation\n\n1. Clone the Repository\n\n```bash\ngit clone https://github.com/CaptainIgl00/grafana-influxdb-docker-compose.git\ncd grafana-influxdb-docker-compose\n```\n\n2. Modify the .env file with your own information\n\n```env\nINFLUXDB_DATABASE=db\nINFLUXDB_USERNAME=user\nINFLUXDB_ORG=org\nINFLUXDB_PASSWORD=userpassword\nINFLUXDB_TOKEN='token'\n\nGRAFANA_USERNAME=admin\nGRAFANA_PASSWORD=adminpassword\n```\n**Note**: Make sure to replace the values with your own information. Avoid using special characters such as quotes in the passwords to prevent interpretation issues.\n\n3. Run the Docker Compose file\n\n```bash\ndocker-compose up -d\n```\n\n4. Access Grafana at http://localhost:3000 and InfluxDB at http://localhost:8086\n\n## Usage\n\nIn order to add **custom dashboards**, you can use the Grafana interface.\n\n1. Create or Export a Dashboard\n    - Create a new dashboard in Grafana.\n    - Export it as JSON via Share \u003e Export \u003e Save to file.\n\n2. Add the Dashboard to the Project\n\n    - Place the exported JSON file into the grafana-dashboards/ folder.\n\n3. Next time you start the project, the dashboard will be automatically added to Grafana.\n\n## Project Structure\n\n```\ngrafana-influxdb-docker-compose/\n├── docker-compose.yml           # Docker Compose file\n├── .env                         # InfluxDB and Grafana credentials\n├── grafana-dashboards/          # Folder for custom dashboards\n│    └── Example Dashboard.json  # Example dashboard\n│\n└── grafana-provisioning/        # Folder for Grafana provisioning\n    ├── datasources/\n    │   └── datasource.yml       # Configures InfluxDB as the default data source\n    │\n    └── dashboards/\n        └── dashboard.yml        # Automatically loads dashboards from grafana-dashboards/\n```\n\n## Troubleshooting\n\n### Connection Issues with InfluxDB\n\n- Verify that the environment variables are correctly defined in the .env file.\n\n- Ensure that the init-influxdb service ran successfully by checking the logs:\n\n```bash\ndocker-compose up\n```\n\n### Dashboards or Data Sources Not Loaded\n\n- Check that the provisioning files are correctly placed in grafana-provisioning/datasources/ and grafana-provisioning/dashboards/.\n\n- Review Grafana logs for any errors:\n\n```bash\ndocker-compose logs -f grafana-influxdb-docker-compose-grafana-1\n```\n\n- Make sure that the InfluxDB token doesn't contain special characters that could be badly interpreted.\n\n### Environment Variables Not Expanded in YAML Files\n\n- Ensure that variables are referenced using the `${VARIABLE}` syntax in the provisioning YAML files.\n\n- The environment variables must be exported within the Grafana container. You can verify them with:\n\n```bash\ndocker exec -it grafana-influxdb-docker-compose-grafana-1 env | grep GF_\n```\n\n## Contributing\n\nContributions are welcome! If you find bugs or have suggestions for improvement, feel free to open an issue or a pull request.\n\n## License\n\nThis project is licensed under the GPL-3.0 License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainigl00%2Fgrafana-influxdb-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptainigl00%2Fgrafana-influxdb-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptainigl00%2Fgrafana-influxdb-docker-compose/lists"}