You may use write_relabel config at remote write time.
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#remote_write

for example:

remote_write:
    - url: <remote_url>

      write_relabel_configs:
      - source_labels: ["__name__"]
        regex: "<my-metric1>|<my-metric2>"
        replacement: "$1"
        action: keep

On Wed, Apr 29, 2020 at 4:50 PM Kiran Ali <[email protected]> wrote:

> Hi,
>
> I want to write specific metrics of specific job to a webhook. How can i
> acheive this?
>
> --
> 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/2e33afd9-c323-41af-afeb-a38148fdaa00%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/2e33afd9-c323-41af-afeb-a38148fdaa00%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAHo%3DpzB%2B96wtipw60CRmY3ErXE4zjWr4jDVDz3nWBQP6Fs-qhA%40mail.gmail.com.

Reply via email to