Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
change legend
Browse files Browse the repository at this point in the history
  • Loading branch information
xudifsd committed Nov 13, 2018
1 parent 4518e24 commit 7afe559
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"current": false,
"max": false,
"min": false,
"show": false,
"show": true,
"total": false,
"values": false
},
Expand All @@ -58,10 +58,10 @@
"steppedLine": false,
"targets": [
{
"expr": "avg by (name)(service_cpu_percent{name=\"$service_name\"})",
"expr": "service_cpu_percent{name=\"$service_name\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{name}}",
"legendFormat": "{{'{{'}}instance{{'}}'}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -134,10 +134,10 @@
"steppedLine": false,
"targets": [
{
"expr": "avg by (name)(service_mem_usage_byte{name=\"$service_name\"})",
"expr": "service_mem_usage_byte{name=\"$service_name\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{name}}",
"legendFormat": "{{'{{'}}instance{{'}}'}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -222,18 +222,18 @@
"steppedLine": false,
"targets": [
{
"expr": "avg by (name)(irate(service_net_in_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s]))",
"expr": "irate(service_net_in_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "Inbound",
"legendFormat": "{{'{{'}}instance{{'}}'}} Inbound",
"refId": "A"
},
{
"expr": "avg by (name)(irate(service_net_out_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s]))",
"expr": "irate(service_net_out_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Outbound",
"legendFormat": "{{'{{'}}instance{{'}}'}} Outbound",
"refId": "B"
}
],
Expand Down Expand Up @@ -306,18 +306,18 @@
"steppedLine": false,
"targets": [
{
"expr": "avg by (name)(irate(service_block_in_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s]))",
"expr": "irate(service_block_in_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s])",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": "Read",
"legendFormat": "{{'{{'}}instance{{'}}'}} Read",
"refId": "A"
},
{
"expr": "avg by (name)(irate(service_block_out_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s]))",
"expr": "irate(service_block_out_byte{name=\"$service_name\"}[{{clusterinfo['prometheusinfo']['scrape_interval']|default(30) * 10}}s])",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Write",
"legendFormat": "{{'{{'}}instance{{'}}'}} Write",
"refId": "B"
}
],
Expand Down

0 comments on commit 7afe559

Please sign in to comment.