Grafana with VictoriaLogs plugin on NixOS

· 107 words · 1 minute read

VictoriaLogs looks like an interesting alternative to Grafana Loki. But it would be nice to still query it via the Grafana Dashboard along with all the rest. It takes a couple of specific steps to install the appropriate plugin, especially on NixOS.

The README for the plugin does document a couple of alternative ways to install the plugin, but none for NixOS. A proper way would be to create a declarative plugin that works well together with nixpkgs. But here’s how to have it work without that:

services.grafana.settings.plugins = {
  allow_loading_unsigned_plugins = "victorialogs-datasource";
};

And then manual installation:

grafana cli --pluginUrl \
    https://github.com/VictoriaMetrics/victorialogs-datasource/releases/download/v0.10.0/victorialogs-datasource-v0.10.0.zip \
    plugins install victorialogs-datasource