0

I created a configmap target-json-cm.

Below is my prometheus values.yaml configuration:

prometheusSpec:
     configMaps: ['target-cm']
      scrape_configs:
      - job_name: 'node'
        file_sd_configs:
         - files:
           - '/etc/prometheus/configmaps/target-cm/targets.json'

targets.json file contains the prometheus target endpoint.

I can see the content of file also . In the prometheus pod also file targets.json is mounted and is available.

kubectl get configmap target-cm -o yaml -n monitoring

But i can't see the jobs and endpoints in the prometheus targets. Please Help.

0 Answers0