Use "glance_api" as the backend name
"glance_api" is used instead of "glance-api" as the backend name in the haproxy
configuration. Ideally, we should not rely on names defined in the user
configuration, but we have no solution for this right now.
Change-Id: I55bd987b30190f700a7ee3108952362db03951cf
diff --git a/glance/files/grafana_influxdb.json b/glance/files/grafana_influxdb.json
index 6a62e1d..9b8a81c 100644
--- a/glance/files/grafana_influxdb.json
+++ b/glance/files/grafana_influxdb.json
@@ -1171,7 +1171,7 @@
"groupByTags": [],
"measurement": "haproxy_backend_servers",
"policy": "default",
- "query": "SELECT last(\"value\") FROM \"haproxy_backend_servers\" WHERE \"environment_label\" =~ /^$environment$/ AND \"backend\" = 'glance-api' AND \"state\" = 'up' AND $timeFilter GROUP BY time($interval) fill(null)",
+ "query": "SELECT last(\"value\") FROM \"haproxy_backend_servers\" WHERE \"environment_label\" =~ /^$environment$/ AND \"backend\" = 'glance_api' AND \"state\" = 'up' AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
@@ -1197,7 +1197,7 @@
},
{
"key": "backend",
- "value": "glance-api"
+ "value": "glance_api"
},
{
"condition": "AND",
@@ -1411,7 +1411,7 @@
"groupByTags": [],
"measurement": "haproxy_backend_servers",
"policy": "default",
- "query": "SELECT last(\"value\") FROM \"haproxy_backend_servers\" WHERE \"environment_label\" =~ /^$environment$/ AND \"backend\" = 'glance-api' AND \"state\" = 'down' AND $timeFilter GROUP BY time($interval) fill(null)",
+ "query": "SELECT last(\"value\") FROM \"haproxy_backend_servers\" WHERE \"environment_label\" =~ /^$environment$/ AND \"backend\" = 'glance_api' AND \"state\" = 'down' AND $timeFilter GROUP BY time($interval) fill(null)",
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
@@ -1437,7 +1437,7 @@
},
{
"key": "backend",
- "value": "glance-api"
+ "value": "glance_api"
},
{
"condition": "AND",