"interval":"", "legendFormat":"{{instance}} CPU使用率", "refId":"A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title":"$instance CPU使用率", "tooltip": { "shared":true, "sort": 0, "value_type":"individual" }, "type":"graph", ...
"legendFormat": "{{instance}} CPU使用率", "refId": "A" } ], "thresholds": [], "timeFrom": null, "timeRegions": [], "timeShift": null, "title": "$instance CPU使用率", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" ...
"intervalFactor": 2, "legendFormat": "In", "refId": "A", "step": 60 }, { "expr": "irate(ifHCOutOctets{job='$Job',instance='$Device',ifName='$Interface'}[5m]) * 8", "intervalFactor": 2, "legendFormat": "Out", "refId": "B", "step": 60 } ], "thresholds": [], ...
{"title":"CPU Usage","type":"graph","gridPos": {"h":8,"w":12,"x":0,"y":2},"targets": [ {"expr":"rate(node_cpu_seconds_total{mode!='idle', instance=~'$server'}[1m])","refId":"A","legendFormat":"{ {instance}}"} ],"thresholds": [ {"color":"red","value":80}...
返回到dashboards上,还需要对图表进行修改,所有的图表都按如下方法,选中一个图表,点击:Edit, 在语句栏添加{instance=~"$node",job=~"$job"},Legend format:{{instance}}{{job}},将所有图表都做更改,点击保存 此时zookeeper监控模板就可以根据条件将zookeeper按集群来拆分,方便我们查看监控图表...
Legend format 使用名称或模式控制时间序列的名称。例如,{{hostname}} 替换为标签 hostname 的标签值。 Min step Prometheus 范围查询的 step 参数以及$__interval 和$__rate_interval 变量的附加下限。该限制是绝对的,不受分辨率设置的影响。 Resolution 1/1 设置了 $__interval 变量以及 Prometheus 范围查询的 ...
"legendFormat": "主机名", "refId": "A" }, { "expr": "sum(time() - node_boot_time_seconds{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})by(instance)", "format": "table", "hide": false, "instant": true,
[],"spaceLength":10,"stack":false,"steppedLine":false,"targets":[{"expr":"(1 - avg(irate(node_cpu_seconds_total{mode='idle',nodename=~\"$nodename\",instance=~\"$instance\"}[5m])) by (instance)) * 100","interval":"","legendFormat":"{{instance}} CPU使用率","refId":"A"...
Choose where to display the legend. Bottom -Below the graph. Right -To the right of the graph. Width Control how wide the legend is when placed on the right side of the visualization. This option is only displayed if you set the legend placement toRight. ...
PlacementChoose where to display the legend.Bottomplaces the legend below the graph.Rightplaces the legend to the right of the graph. WidthControl how wide the legend is when placed on the right side of the visualization. This option is only displayed if you set the legend placement toRight....