Hello,
I’m using Node Exporter Full | Grafana Labs
Once Node-Exporter is added its all working and fetching correctly.
This is my prometheus scrape example .
Now my problem is in Grafana Dropdown I can select based on instance, but I would really like to show me “instance_name” and actually query the instance.
This is my current code.
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(node_uname_info{job=\"$job\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "Hostttttt",
"multi": false,
"name": "node",
"options": [],
"query": {
"query": "label_values(node_uname_info{job=\"$job\"}, instance)",
"refId": "Prometheus-node-Variable-Query"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
Please note I have tried changeing definition and query with instance_name , but then not a single panel will work as they all expect instance and not instance_name.
Is there a way to show “Instance_name” but actually query “instance”