Skip to content

Commit

Permalink
fixed datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Feb 24, 2024
1 parent d39dc62 commit 40a3ec9
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions modules/obs/grafana.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,31 @@
provision = {
enable = true;
datasources.settings = {
deleteDatasources = [{ name = "svc-prom01"; orgId = 1; }];
datasources = [{
name = "svc-prom01";
url = "https://svc-prom01.dd-ix.net:443";
uid = "svc-prom01";
type = "prometheus";
access = "proxy";
enable = true;
}];
deleteDatasources = [
{ name = "svc-prom01"; orgId = 1; }
{ name = "svc-prom01_15s"; orgId = 1; }
{ name = "svc-prom01_1m"; orgId = 1; }
];
datasources = [
{
name = "svc-prom01_15s";
url = "https://svc-prom01.dd-ix.net:443";
uid = "svc-prom01_15s";
type = "prometheus";
access = "proxy";
enable = true;
jsonData.timeInterval = "15s";
}
{
name = "svc-prom01_1m";
url = "https://svc-prom01.dd-ix.net:443";
uid = "svc-prom01_1m";
type = "prometheus";
access = "proxy";
enable = true;
jsonData.timeInterval = "1m";
}
];
};
};
};
Expand Down

0 comments on commit 40a3ec9

Please sign in to comment.