Skip to content

Commit 6754f68

Browse files
committed
add email section to clark dashboard
1 parent a91e99d commit 6754f68

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

grafana/provisioning/dashboards/clark.dashboard.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,24 @@
5353
],
5454
unit=NUMBER_FORMAT,
5555
)
56+
wrapper.DefineRow("Emails")
57+
wrapper.AddPanel(
58+
title="Emails sent",
59+
queries=[
60+
ExpressionAndLegendPair(
61+
'email_sent{job="clark-email"}',
62+
"{{type}}",
63+
)
64+
],
65+
unit=NUMBER_FORMAT,
66+
)
67+
wrapper.AddPanel(
68+
title="Refresh token last updated",
69+
queries=[
70+
ExpressionAndLegendPair(
71+
'time() - google_cloud_refresh_token_last_updated{job="clark-email"}',
72+
)
73+
],
74+
unit=NUMBER_FORMAT,
75+
)
5676
dashboard = wrapper.Render()

0 commit comments

Comments
 (0)