Skip to content

Commit

Permalink
fix: Correct serverBytes out query legend format
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Baldry <[email protected]>
  • Loading branch information
jdbaldry committed Dec 7, 2020
1 parent aee31e4 commit 03a2aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashboards/dashboards.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ local g = import 'github.com/grafana/dashboard-spec/_gen/7.0/jsonnet/grafana.lib
},
{
expr: $.queries.serverBytesOutRate,
legendFormat: 'in{instance="{{instance}}", job="{{job}}", backend="{{proxy}}", server="{{server}}"}',
legendFormat: 'out{instance="{{instance}}", job="{{job}}", backend="{{proxy}}", server="{{server}}"}',
},
]),
seriesOverrides: [{ alias: '/.*out.*/', transform: 'negative-Y' }],
Expand Down
2 changes: 1 addition & 1 deletion dashboards/haproxy-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
},
{
"expr": "rate(haproxy_server_bytes_out_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "in{instance=\"{{instance}}\", job=\"{{job}}\", backend=\"{{proxy}}\", server=\"{{server}}\"}",
"legendFormat": "out{instance=\"{{instance}}\", job=\"{{job}}\", backend=\"{{proxy}}\", server=\"{{server}}\"}",
"refID": "B"
}
],
Expand Down

0 comments on commit 03a2aa9

Please sign in to comment.