{"id":13579027,"url":"https://github.com/bcremer/docker-telegraf-influx-grafana-stack","last_synced_at":"2026-01-27T03:08:42.107Z","repository":{"id":40356066,"uuid":"148681078","full_name":"bcremer/docker-telegraf-influx-grafana-stack","owner":"bcremer","description":"Docker Compose Setup for Telegraf / InfluxDB / Grafana (TIG)","archived":false,"fork":false,"pushed_at":"2024-07-29T10:06:30.000Z","size":331,"stargazers_count":162,"open_issues_count":0,"forks_count":101,"subscribers_count":6,"default_branch":"latest","last_synced_at":"2025-10-20T09:57:43.051Z","etag":null,"topics":["docker","grafana","influxdb","metrics","monitoring","php","statsd","telegraf","tig"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/bcremer.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":"2018-09-13T18:33:29.000Z","updated_at":"2025-08-20T06:55:41.000Z","dependencies_parsed_at":"2024-11-05T17:35:34.411Z","dependency_job_id":"9c863307-c155-44cd-8219-2ff8011bdf19","html_url":"https://github.com/bcremer/docker-telegraf-influx-grafana-stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bcremer/docker-telegraf-influx-grafana-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcremer%2Fdocker-telegraf-influx-grafana-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcremer%2Fdocker-telegraf-influx-grafana-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcremer%2Fdocker-telegraf-influx-grafana-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcremer%2Fdocker-telegraf-influx-grafana-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcremer","download_url":"https://codeload.github.com/bcremer/docker-telegraf-influx-grafana-stack/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcremer%2Fdocker-telegraf-influx-grafana-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28798661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"online","status_checked_at":"2026-01-27T02:00:07.755Z","response_time":168,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","grafana","influxdb","metrics","monitoring","php","statsd","telegraf","tig"],"created_at":"2024-08-01T15:01:35.920Z","updated_at":"2026-01-27T03:08:42.092Z","avatar_url":"https://github.com/bcremer.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Example Docker Compose project for Telegraf, InfluxDB and Grafana\n\nThis an example project to show the TIG (Telegraf, InfluxDB and Grafana) stack.\n\n![Example Screenshot](./example.png?raw=true \"Example Screenshot\")\n\n## Start the stack with docker compose\n\n```bash\n$ docker-compose up\n```\n\n## Services and Ports\n\n### Grafana\n- URL: http://localhost:3000 \n- User: admin \n- Password: admin \n\n### Telegraf\n- Port: 8125 UDP (StatsD input)\n\n### InfluxDB\n- Port: 8086 (HTTP API)\n- User: admin \n- Password: admin \n- Database: influx\n\n\nRun the influx client:\n\n```bash\n$ docker-compose exec influxdb influx -execute 'SHOW DATABASES'\n```\n\nRun the influx interactive console:\n\n```bash\n$ docker-compose exec influxdb influx\n\nConnected to http://localhost:8086 version 1.8.0\nInfluxDB shell version: 1.8.0\n\u003e\n```\n\n[Import data from a file with -import](https://docs.influxdata.com/influxdb/v1.8/tools/shell/#import-data-from-a-file-with-import)\n\n```bash\n$ docker-compose exec -w /imports influxdb influx -import -path=data.txt -precision=s\n```\n\n## Run the PHP Example\n\nThe PHP example generates random example metrics. The random metrics are beeing sent via UDP to the telegraf agent using the StatsD protocol.\n\nThe telegraf agents aggregates the incoming data and perodically persists the data into the InfluxDB database.\n\nGrafana connects to the InfluxDB database and is able to visualize the incoming data.\n\n```bash\n$ cd php-example\n$ composer install\n$ php example.php\nSending Random metrics. Use Ctrl+C to stop.\n..........................^C\nRuntime:\t0.88382697105408 Seconds\nOps:\t\t27 \nOps/s:\t\t30.548965899738 \nKilled by Ctrl+C\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcremer%2Fdocker-telegraf-influx-grafana-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcremer%2Fdocker-telegraf-influx-grafana-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcremer%2Fdocker-telegraf-influx-grafana-stack/lists"}