From 101708e9d2a8ea970ed671ce1cc233627c5b9e13 Mon Sep 17 00:00:00 2001 From: Arunprasad Rajkumar Date: Mon, 28 Nov 2022 11:14:52 +0530 Subject: [PATCH] Expose avalanche service monitor interval Exposing this field would be useful to increase the number of samples being ingested into prometheus without incrasing the number of series. Signed-off-by: Arunprasad Rajkumar --- charts/avalanche/Chart.yaml | 2 +- charts/avalanche/templates/service-monitor.yaml | 2 +- charts/avalanche/values.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/avalanche/Chart.yaml b/charts/avalanche/Chart.yaml index e1663320..a7b80bec 100644 --- a/charts/avalanche/Chart.yaml +++ b/charts/avalanche/Chart.yaml @@ -4,7 +4,7 @@ apiVersion: v2 name: avalanche description: A Helm chart run avalanche for benchmarking Prometheus and remote write storage backends. -version: 0.7.0 +version: 0.8.0 home: https://github.com/timescale/helm-charts diff --git a/charts/avalanche/templates/service-monitor.yaml b/charts/avalanche/templates/service-monitor.yaml index 00f4a5ce..294ead80 100644 --- a/charts/avalanche/templates/service-monitor.yaml +++ b/charts/avalanche/templates/service-monitor.yaml @@ -7,7 +7,7 @@ metadata: {{ include "avalanche-helm.labels" . | indent 4 }} spec: endpoints: - - interval: 30s + - interval: {{ .Values.serviceMonitor.interval }} port: metrics path: /metrics selector: diff --git a/charts/avalanche/values.yaml b/charts/avalanche/values.yaml index 77f8b42b..0021f81d 100644 --- a/charts/avalanche/values.yaml +++ b/charts/avalanche/values.yaml @@ -51,6 +51,7 @@ labels: {} # generated as load and intended for benchmarking. serviceMonitor: enabled: false + interval: 30s # Number of fake ServiceMonitor to be created to simulate fake Prometheus # targets. This will be useful to generate more series without scaling