Hi,

I have a file_sd_config defined in Prometheus configuration file
(/tmp/test.json)
in that, I have 3-4 scrape targets as defined below:

cat /tmp/test.json

{        "targets": [            "x:123"        ],        "labels": {
          "job": "1",            "element_name": "x",
"__metrics_path__": "/x/test"        }

        "targets": [

            "y:123"        ],        "labels": {            "job":
"2",            "element_name": "y",            "__metrics_path__":
"/y/test"        }

        "targets": [

            "3:123"        ],        "labels": {            "job":
"3",            "element_name": "z",            "__metrics_path__":
"/z/test"        }

    }

Now, I want prometheus to read only from job 2,3 and drop 1, do we
have a provision to do that in file_sd_config?

How can I achieve this? please let me know.


thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAOrgXNJu0w7BQzObXL-wznT6ezspxU0BiT%3D1ksRNntH9eE2HYg%40mail.gmail.com.

Reply via email to