grafana-local
These docker-compose and associated config files can be used to start Grafana applications up easily. Simply navigate to the desired folder and run docker-compose up
and you're ready to go.
There are two stacks at present. Each stack starts up the listed applications on the ports shown below.
- Cortex
- Grafana: http://localhost:3000
- Cortex: http://localhost:9009
- Jaeger: http://localhost:16686
- Prometheus: http://localhost:9090
- Loki
- Grafana: http://localhost:3000
- Loki: http://localhost:3100
- Jaeger: http://localhost:16686
- Promtail: http://localhost:9080
After running docker-compose up
navigate to http://localhost:3000 and use Grafana to visualize the metrics/logs that are being stored. This is your primary way to see the data that Loki or Cortex are storing. Username/password is admin/admin. I'd recommend navigating to the Explore tab and checking out available metrics/log streams.
It's also fun to check Jaeger at http://localhost:16686 to see traces.
extra_hosts
You'll notice some commented out extra_hosts
blocks in the docker-compose. I use these if I want to run Cortex or Loki on my machine in a debugger and connect the dependent services to it. In this scenario:
- Comment out Cortex/Loki block so docker-compose doesn't start it.
- Uncomment all
extra_hosts
blocks and add your machine's ip - Run Cortex/Loki locally on your host machine.
docker-compose up
One day I'll write a script to do this.