On 08 Nov 13:33, Victor Ivanov wrote:
>
> Hello!
>
> Is there a way to see th final adderss value that prometheus will use to
> talk to the instance?
>
> I tried using DigitalOcean SD with additional relabelling
>
> ```
> relabel_configs:
> - source_labels: [__meta_digitalocean_private_ipv4]
> regex: '(10\.133\.\d+\.\d+)'
> target_label: __address__
> replacement: '{$1}:9100'
> - source_labels: [__meta_digitalocean_droplet_name]
> target_label: instance
> regex: '(.+)'
> replacement: '${1}:9100'
> ```
>
> and no matter what I try I see 0 when I ask for up{job="node"} metric
>
> I also have the same server added via file_sd and they are available.
> Also, these two sets of servers should not intersect because for file_sd
> droplets instance is their private ip4 address, and for DigitalOcean_SD
> droplets instance should be droplet name (something like
>
nginx-1.example.com)
> 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