joe-elliott / grafana-local

A collection of docker-compose files designed to start cortex and loki locally

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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:

  1. Comment out Cortex/Loki block so docker-compose doesn't start it.
  2. Uncomment all extra_hosts blocks and add your machine's ip
  3. Run Cortex/Loki locally on your host machine.
  4. docker-compose up

One day I'll write a script to do this.

About

A collection of docker-compose files designed to start cortex and loki locally


Languages

Language:Shell 100.0%