Skip to content

Commit 227d987

Browse files
remove space in label
1 parent adb8fc6 commit 227d987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apiconnect_net.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ def fish(self):
5959
"health_status",
6060
health,
6161
labels={
62-
"component": "{} {}".format(customResource['plural'][:-1], item['metadata']['name']),
62+
"component": "{}_{}".format(customResource['plural'][:-1], item['metadata']['name']),
6363
**self.health_label
6464
})
6565

6666
self.trawler.set_gauge(
6767
'apiconnect',
6868
"{}_status".format(customResource['plural']),
69-
1 if condition['status'] == "true" else 0,
69+
1 if condition['status'] else 0,
7070
labels={
7171
"type": condition['type'],
7272
"name": item['metadata']['name'],

0 commit comments

Comments
 (0)