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 = {
enable = true;
datasources = [
datasources.settings.datasources = [
{
name = "Prometheus";
# wait for https://github.com/NixOS/nixpkgs/pull/175330
# uid = "PBFA97CFB590B2093";
uid = "PBFA97CFB590B2093";
inherit (links.prometheus) url;
type = "prometheus";
isDefault = true;
}
{
name = "Loki";
# uid = "P8E80F9AEF21F6940";
uid = "P8E80F9AEF21F6940";
inherit (loki-ingest) url;
type = "loki";
}

View file

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