Parameters

The parent key for all of the following parameters is json_exporter.

namespace

type

string

default

syn-json-exporter

The namespace in which to deploy this component.

Example

namespace: example-namespace

helm_values

type

dict

default

See class/defaults.yml

All helm_values are passed to the Helm chart.

See the helm chart values for more information.

Example

helm_values:
  prometheusRule:
    enabled: true
    additionalLabels:
      monitoring.syn.tools/infra: "true"
  serviceMonitor:
    enabled: true
    defaults:
      labels:
        monitoring.syn.tools/infra: "true"
    targets:
      - name: example
        url: http://example.com/healthz
        labels: {}
        interval: 60s
        scrapeTimeout: 60s
        additionalMetricsRelabels: {}
        module: example_module
  configuration:
    config: |
      ---
      modules:
        default:
          metrics:
            - name: example_global_value
              path: "{ .counter }"
              help: Example of a top-level global value scrape in the json
              labels:
                environment: beta
                location: "planet-{.location}"

            - name: example_value
              type: object
              help: Example of sub-level value scrapes from a json
              path: '{.values[?(@.state == "ACTIVE")]}'
              labels:
                environment: beta
                id: '{.id}'
              values:
                active: 1
                count: '{.count}'
                boolean: '{.some_boolean}'

          headers:
            X-Dummy: my-test-header