dashboards: filter agents by agent and hosts by host.name, drop the hive variable
This commit is contained in:
parent
22c4d16a20
commit
7796f53874
1 changed files with 129 additions and 237 deletions
|
|
@ -14,25 +14,6 @@
|
|||
},
|
||||
"templating": {
|
||||
"list": [
|
||||
{
|
||||
"name": "hive",
|
||||
"label": "Hive",
|
||||
"type": "query",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"query": "label_values({__name__=\"system.memory.usage\"}, hive)",
|
||||
"refresh": 2,
|
||||
"includeAll": true,
|
||||
"allValue": ".*",
|
||||
"multi": true,
|
||||
"current": {
|
||||
"text": "All",
|
||||
"value": "$__all"
|
||||
},
|
||||
"sort": 1
|
||||
},
|
||||
{
|
||||
"name": "host",
|
||||
"label": "Host",
|
||||
|
|
@ -41,7 +22,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"query": "label_values({__name__=\"system.memory.usage\", hive=~\"$hive\"}, \"host.name\")",
|
||||
"query": "label_values({__name__=\"system.memory.usage\"}, \"host.name\")",
|
||||
"refresh": 2,
|
||||
"includeAll": true,
|
||||
"allValue": ".*",
|
||||
|
|
@ -77,7 +58,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (state) (rate({__name__=\"system.cpu.time\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])) / scalar(sum(rate({__name__=\"system.cpu.time\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])))",
|
||||
"expr": "sum by (state) (rate({__name__=\"system.cpu.time\", \"host.name\"=~\"$host\"}[5m])) / scalar(sum(rate({__name__=\"system.cpu.time\", \"host.name\"=~\"$host\"}[5m])))",
|
||||
"legendFormat": "{{state}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -138,7 +119,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.cpu.load_average.1m\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.cpu.load_average.1m\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{host.name}} 1m"
|
||||
},
|
||||
{
|
||||
|
|
@ -147,7 +128,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.cpu.load_average.5m\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.cpu.load_average.5m\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{host.name}} 5m"
|
||||
},
|
||||
{
|
||||
|
|
@ -156,7 +137,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.cpu.load_average.15m\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.cpu.load_average.15m\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{host.name}} 15m"
|
||||
}
|
||||
],
|
||||
|
|
@ -212,7 +193,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (state) ({__name__=\"system.memory.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\", state=~\"used|cached|free\"})",
|
||||
"expr": "sum by (state) ({__name__=\"system.memory.usage\", \"host.name\"=~\"$host\", state=~\"used|cached|free\"})",
|
||||
"legendFormat": "{{state}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -272,7 +253,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (device) ({__name__=\"system.paging.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\", state=\"used\"})",
|
||||
"expr": "sum by (device) ({__name__=\"system.paging.usage\", \"host.name\"=~\"$host\", state=\"used\"})",
|
||||
"legendFormat": "{{device}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -328,7 +309,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (direction, type) (rate({__name__=\"system.paging.operations\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"expr": "sum by (direction, type) (rate({__name__=\"system.paging.operations\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"legendFormat": "{{direction}} {{type}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -384,7 +365,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.disk.io\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.disk.io\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"legendFormat": "{{device}} {{direction}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -440,7 +421,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.disk.operations\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.disk.operations\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"legendFormat": "{{device}} {{direction}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -496,7 +477,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.network.io\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.network.io\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"legendFormat": "{{device}} {{direction}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -552,7 +533,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.network.errors\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"expr": "sum by (device, direction) (rate({__name__=\"system.network.errors\", \"host.name\"=~\"$host\"}[5m]))",
|
||||
"legendFormat": "{{device}} {{direction}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -608,7 +589,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (mountpoint) ({__name__=\"system.filesystem.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\", state=\"used\"}) / sum by (mountpoint) ({__name__=\"system.filesystem.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\", state=~\"used|free\"})",
|
||||
"expr": "sum by (mountpoint) ({__name__=\"system.filesystem.usage\", \"host.name\"=~\"$host\", state=\"used\"}) / sum by (mountpoint) ({__name__=\"system.filesystem.usage\", \"host.name\"=~\"$host\", state=~\"used|free\"})",
|
||||
"legendFormat": "{{mountpoint}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -665,7 +646,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "max by (\"host.name\") ({__name__=\"hyperhive.hive.nix_store.utilization\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "max by (\"host.name\") ({__name__=\"hyperhive.hive.nix_store.utilization\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{host.name}}",
|
||||
"instant": true
|
||||
}
|
||||
|
|
@ -733,7 +714,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.uptime\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "max by (\"host.name\") ({__name__=\"system.uptime\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{host.name}}",
|
||||
"instant": true
|
||||
}
|
||||
|
|
@ -791,7 +772,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (\"host.name\") ({__name__=\"system.processes.count\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "sum by (\"host.name\") ({__name__=\"system.processes.count\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{host.name}}",
|
||||
"instant": true
|
||||
}
|
||||
|
|
@ -849,7 +830,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "sum by (status) ({__name__=\"system.processes.count\", hive=~\"$hive\", \"host.name\"=~\"$host\"})",
|
||||
"expr": "sum by (status) ({__name__=\"system.processes.count\", \"host.name\"=~\"$host\"})",
|
||||
"legendFormat": "{{status}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -909,7 +890,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "topk(10, sum by (\"container.name\") ({__name__=\"container.memory.usage\", hive=~\"$hive\", \"host.name\"=~\"$host\"}))",
|
||||
"expr": "topk(10, sum by (\"container.name\") ({__name__=\"container.memory.usage\", \"host.name\"=~\"$host\"}))",
|
||||
"legendFormat": "{{container.name}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -965,7 +946,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "topk(10, sum by (\"container.name\") (rate({__name__=\"container.cpu.time\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])))",
|
||||
"expr": "topk(10, sum by (\"container.name\") (rate({__name__=\"container.cpu.time\", \"host.name\"=~\"$host\"}[5m])))",
|
||||
"legendFormat": "{{container.name}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -1021,7 +1002,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "avg by (resource) (rate({__name__=\"hyperhive.hive.pressure.stall\", kind=\"some\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])) / 1000000",
|
||||
"expr": "avg by (resource) (rate({__name__=\"hyperhive.hive.pressure.stall\", kind=\"some\", \"host.name\"=~\"$host\"}[5m])) / 1000000",
|
||||
"legendFormat": "{{resource}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -1077,7 +1058,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "avg by (resource) (rate({__name__=\"hyperhive.hive.pressure.stall\", kind=\"full\", resource!=\"cpu\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])) / 1000000",
|
||||
"expr": "avg by (resource) (rate({__name__=\"hyperhive.hive.pressure.stall\", kind=\"full\", resource!=\"cpu\", \"host.name\"=~\"$host\"}[5m])) / 1000000",
|
||||
"legendFormat": "{{resource}}"
|
||||
}
|
||||
],
|
||||
|
|
@ -1133,7 +1114,7 @@
|
|||
"type": "prometheus",
|
||||
"uid": "@datasourceUid@"
|
||||
},
|
||||
"expr": "topk(10, sum by (\"container.name\") (rate({__name__=\"hyperhive.container.memory.pressure.stall\", kind=\"some\", hive=~\"$hive\", \"host.name\"=~\"$host\"}[5m])) / 1000000)",
|
||||
"expr": "topk(10, sum by (\"container.name\") (rate({__name__=\"hyperhive.container.memory.pressure.stall\", kind=\"some\", \"host.name\"=~\"$host\"}[5m])) / 1000000)",
|
||||
"legendFormat": "{{container.name}}"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue