Skip to content

adding an option to multiple resource_group when use scrape_config #12721

Answered by roidelapluie
yahavvidaa asked this question in Q&A
Discussion options

You must be logged in to vote

What about you do something like this?

    azure_sd_configs:
    - authentication_method: "ManagedIdentity"
      subscription_id: "XXXX"
      resource_group: "RG-prod-eu"
      refresh_interval: "600s"
      port: 9100
    - authentication_method: "ManagedIdentity"
      subscription_id: "XXXX"
      resource_group: "RG-prod-na"
      refresh_interval: "600s"
      port: 9100
    relabel_configs:
      -  source_labels: ["__meta_azure_machine_size"]
         target_label: "type"
         #replacement: "__meta_azure_machine_size"
      -  source_labels: ["__meta_azure_machine_location"]
         target_label: "region"
      -  source_labels: ["__meta_azure_machine_name"]
         target_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yahavvidaa
Comment options

Answer selected by yahavvidaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12719 on August 17, 2023 23:37.