Skip to content

Draft: nongnu: Add grafana-bin

Petr Hodina requested to merge phodina/nonguix:patch/grafana into master

These commits add Grafana dashboard to the Guix.

Unfortunately, the code is written in Go and has huge dependency list that even fails to import with the Go Guix importer.

So for time being I opted to use the statically build binary which is easy to deploy.

However, I ran into a nasty issue as I packaged the binary for 3 platforms - x86_64, armhf and aarch64.

  • I thought the supported-system field would always pick the right platform based on the current architecture but that's not the case. Any idea how to solve this?

Another feature waiting to be implemented is the service. This the place where the config for Grafana should be created. For simplicity I added phase to the package and created the dirs under var myself.

  • I have question regarding the configuration fields - what sounds reasonable? Probably port, database to use, SSL certificates, extra-config?

And when to create this file? During activation?

  • Also how to coordinate with upstream to get it build from source. Not even Nix builds it - uses also the statically build binary.
Edited by Petr Hodina

Merge request reports