VEGAS/monitoring: new datasource provisioning format

This commit is contained in:
Max Headroom 2022-12-17 20:03:51 +01:00
parent 299f87a294
commit 49e1b408be
2 changed files with 5 additions and 7 deletions

View file

@ -73,18 +73,17 @@ in
}; };
provision = { provision = {
enable = true; enable = true;
datasources = [ datasources.settings.datasources = [
{ {
name = "Prometheus"; name = "Prometheus";
# wait for https://github.com/NixOS/nixpkgs/pull/175330 uid = "PBFA97CFB590B2093";
# uid = "PBFA97CFB590B2093";
inherit (links.prometheus) url; inherit (links.prometheus) url;
type = "prometheus"; type = "prometheus";
isDefault = true; isDefault = true;
} }
{ {
name = "Loki"; name = "Loki";
# uid = "P8E80F9AEF21F6940"; uid = "P8E80F9AEF21F6940";
inherit (loki-ingest) url; inherit (loki-ingest) url;
type = "loki"; type = "loki";
} }

View file

@ -91,11 +91,10 @@ in {
PrivateTmp = true; PrivateTmp = true;
}; };
}; };
services.grafana.provision.datasources = [ services.grafana.provision.datasources.settings.datasources = [
{ {
name = "Tempo"; name = "Tempo";
# wait for https://github.com/NixOS/nixpkgs/pull/175330 uid = "P214B5B846CF3925F";
# uid = "P214B5B846CF3925F";
inherit (links.tempo) url; inherit (links.tempo) url;
type = "tempo"; type = "tempo";
jsonData = { jsonData = {