aboutsummaryrefslogtreecommitdiff
path: root/tharos/prometheus.nix
diff options
context:
space:
mode:
authorValentin <valentin@fricklerhandwerk.de>2026-10-26 13:25:22 +0100
committerValentin <valentin@fricklerhandwerk.de>2026-10-26 13:25:22 +0100
commitde1861c163a1dcefdae7967a2d2bbabf08616cbd (patch)
tree4d2d3e05970d1af3a4575ae31aff6eceb2327494 /tharos/prometheus.nix
parent3cd1852d44cc436e406526378f55affdaa6370be (diff)
Ressourcenverbrauch von Prometheus-Abfragen begrenzt
Diffstat (limited to 'tharos/prometheus.nix')
-rw-r--r--tharos/prometheus.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/tharos/prometheus.nix b/tharos/prometheus.nix
index 4bcd5d0..a5011ea 100644
--- a/tharos/prometheus.nix
+++ b/tharos/prometheus.nix
@@ -7,6 +7,11 @@
services.prometheus = {
enable = true;
listenAddress = "127.0.0.1";
+ extraFlags = [
+ "--query.max-samples=1000000"
+ "--query.max-concurrency=2"
+ "--query.timeout=10s"
+ ];
exporters.node = {
enable = true;
listenAddress = "127.0.0.1";