No, but your indenting is off for the static_configs. You can do what
you're trying to do with multiple static_config entries.

- job_name: f5
  static_configs:
  - targets:
    - 123.345.789.100:1234
    labels:
      location: eastcoast
  - targets:
    - 123.345.789.200:1234
    labels:
      location: westcoast

On Thu, Jul 9, 2020 at 2:54 PM Paddy Newman <[email protected]> wrote:

> Hi Everyone!
>
> I'd love to be able to do this:
>
> - job_name: f5
>   static_configs:
>   - targets:
>     - 123.345.789.100:1234
>   labels:
>     location: eastcoast
>
> - job_name: f5
>   static_configs:
>   - targets:
>     - 123.345.789.200:1234
>   labels:
>     location: westcoast
>
> ...so that I'd only have one job name. As things stand I think I have to
> use two unique job names e.g., f5-eastcoast and f5-westcoast.
>
> Has that come up before?
>
> --
> 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/8711851a-d17a-4446-bfaf-51ce9d4332aco%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/8711851a-d17a-4446-bfaf-51ce9d4332aco%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/CABbyFmrqfsLvJ_szg-MvbyGid0wC79_ZjtSr4d5gJg2vB3e%2BZQ%40mail.gmail.com.

Reply via email to