diff --git a/grafana/helm-values.yaml b/grafana/helm-values.yaml index 2cf7e09..5eb65e2 100644 --- a/grafana/helm-values.yaml +++ b/grafana/helm-values.yaml @@ -54,11 +54,19 @@ datasources: datasources.yaml: apiVersion: 1 datasources: + - name: Thanos + type: prometheus + access: proxy + url: http://thanos-query.thanos.svc.cluster.local:9090 + isDefault: true + editable: true + jsonData: + timeInterval: "60s" - name: Prometheus type: prometheus access: proxy url: http://prometheus-kube-prometheus-prometheus.prometheus.svc.cluster.local:9090 - isDefault: true + isDefault: false editable: true - name: Loki type: loki diff --git a/thanos/helm-values.yaml b/thanos/helm-values.yaml index 3e96530..229758f 100644 --- a/thanos/helm-values.yaml +++ b/thanos/helm-values.yaml @@ -7,6 +7,11 @@ # - Store Gateway: reads historical data from MinIO # - Compactor: compacts and downsamples data in MinIO +# Allow non-Bitnami images (quay.io/thanos/thanos) +global: + security: + allowInsecureImages: true + # Use quay.io image to avoid Docker Hub rate limits image: registry: quay.io @@ -24,6 +29,14 @@ query: enabled: true replicaCount: 1 + # Run on master node for stability + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + nodeSelector: + node-role.kubernetes.io/control-plane: "true" + # Deduplicate metrics from multiple Prometheus replicas dnsDiscovery: enabled: true @@ -58,6 +71,14 @@ storegateway: enabled: true replicaCount: 1 + # Run on master node for stability + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + nodeSelector: + node-role.kubernetes.io/control-plane: "true" + resources: requests: cpu: 15m @@ -76,6 +97,14 @@ storegateway: compactor: enabled: true + # Run on master node for stability + tolerations: + - key: node-role.kubernetes.io/control-plane + operator: Exists + effect: NoSchedule + nodeSelector: + node-role.kubernetes.io/control-plane: "true" + # Retention settings retentionResolutionRaw: 7d # Keep raw data for 7 days retentionResolution5m: 30d # Keep 5m downsampled for 30 days