Change Dashboard Variable From IP to Node Name

  • What are you trying to achieve?

    • I’m using Victoria Metrics. I’m trying to use node names instead of IP addresses as variables in my dashboards.
  • How are you trying to achieve it?

    • I’m using Scrape Config to achieve this. Here’s an example:
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMScrapeConfig
metadata:
  name: vm-scrape-config
spec:
  relabelConfigs:
  - action: replace
    sourceLabels:
    - __meta_kubernetes_node_name  
    targetLabel: instance  
  • What happened?
    • Nothing. The variable didnt change.

Thanks !

1 Like

Related reddit thread Reddit - Dive into anything