Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
/ quantum-grafana Public archive

An example Docker Grafana Setup for Planetary Quantum and Loki.

License

Notifications You must be signed in to change notification settings

pngmbh/quantum-grafana

Repository files navigation

This repository is no longer maintained.
Please see the new repository for more detail.
👉  https://github.com/hostwithquantum/grafana-stack

Grafana Setup for Planetary Quantum

https://www.planetary-quantum.com/

This starts up a Grafana on your Quantum cluster, to view your docker logs and some basic metrics about your Quantum cluster.

Deploy

You'll need quantum-cli.

  • cp docker-compose.example.yml docker-compose.yml, and edit it:
    • set the traefik.frontend.rule label to include the hostname of your endpoint/cluster (or your custom domain, if you want that)
    • set INITIAL_ADMIN_PASSWORD to something random
    • set QUANTUM_ENDPOINT to the name of your endpoint/cluster
  • then:
    $ QUANTUM_ENDPOINT=your-cluster-name
    $ quantum-cli stack update --create --wait --stack "grafana-$QUANTUM_ENDPOINT"
    

Basic usage

  • on the left-hand side menu choose "Explore" explore menu screenshot
  • select "Docker Logs" at the top, and click on "Logs" right next to it docker logs selection screenshot
  • select some log label via the drop-down next to the search bar log label selection
  • you should now see your logs

For metrics: go to Dashboards => Manage. There should be one pre-configured dashboard "Usage by Stack".