Ready-made compose files #
Five stacks, each one complete. Pick the file whose name says what you want,
put two lines in a .env beside it, and start it:
printf 'GITHUB_TOKEN=github_pat_...\nGITHUB_USER=your-login\n' > .env
docker compose -f compose.influxdb-grafana.yaml up -d
| File | What comes up |
|---|---|
compose.collector.yaml |
the collector on its own, writing to its log |
compose.influxdb.yaml |
the collector and InfluxDB 3 |
compose.influxdb-grafana.yaml |
those two and Grafana, dashboard already in it |
compose.postgres.yaml |
the collector and PostgreSQL |
compose.postgres-grafana.yaml |
those two and Grafana, dashboard already in it |
Each one carries its own configuration inline, so there is no second file to write. With Grafana, the collector publishes the dashboard when it starts and points it at the store beside it: nothing to import, no datasource to fill in. Every combination was brought up against the real images when these files were added, for 2.4.0; nothing brings them up since, and what holds them now is the check below.
The Docker page shows the same files with a picker, which is the easier way in if you are reading the documentation rather than the repository.
These files are generated. cmd/gen_compose writes them and make check-compose fails when what is committed is not what the generator
produces, so edit the generator rather than the YAML.