fix grafana

This commit is contained in:
Kopatz
2024-04-20 11:22:12 +02:00
parent e63962eb43
commit 68b29a44bf

View File

@@ -35,6 +35,8 @@ in
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
type = "prometheus";
isDefault = true;
# This has to match the prometheus scrape interval, otherwise the $__rate_interval variable wont work.
jsonData.timeInterval = "60s";
}
{
name = "loki";
@@ -69,6 +71,7 @@ in
services.prometheus = {
enable = true;
port = 9000;
globalConfig.scrape_interval = "1m";
#stateDir = "../../${base}/prometheus";
exporters = {
node = {