Ad Widget

Collapse

Display name uniqueness across multiple cloud accounts and projects.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billfor
    Junior Member
    • Jul 2020
    • 2

    #1

    Display name uniqueness across multiple cloud accounts and projects.

    It would be nice to have something at the agent level that could be used to set the displayname to a unique value based on metadata within the cloud environment. We have difficulty with Zabbix because it requires the display name to be unique. In multicloud you often have the same hostname across different accounts (AWS) or projects (GCP), and then you have to invent something to prevent collisions. I see that there are a bunch of scripts that help, but they seem to require access keys or credentials to the cloud environment. Technically I think the metadata is a better route to go because it does not require special access.

    Something like this in in the agent config (AWS example):
    ​​​​​​

    relabel_configs:

    - source_labels:

    - '__meta_ec2_tag_Name'

    target_label: 'instance'

    - source_labels:

    - '__meta_ec2_account'

    target_label: 'account'

    - source_labels:

    - '__meta_ec2_tag_role'

    target_label: 'role'
Working...