Skip to content
Snippets Groups Projects
json-exporter-monitor.yaml 1023 B
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: json-exporter
  namespace: monitoring-system
spec:
  releaseName: json-exporter
  chart:
    spec:
      chart: prometheus-json-exporter
      sourceRef:
        kind: HelmRepository
        name: prometheus-community
        namespace: monitoring-system
      version: 0.6.1
  interval: 5m
  valuesFrom:
    - kind: ConfigMap
      name: json-exporter-base-values
      valuesKey: values.yaml
    - kind: Secret
      name: json-exporter-override-values
      valuesKey: values-overrides.yaml
      optional: false
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: json-exporter-base-values
  namespace: monitoring-system
data:
  values.yaml: |
    serviceMonitor:
      enabled: true
      targets:
        - name: co2signal
          url: https://api.co2signal.com/v1/latest?countryCode=DE
          interval: 300s
    resources:
      requests:
        cpu: 10m
        memory: 64Mi
      limits:
        cpu: 500m
        memory: 256Mi