Skip to content

Commit

Permalink
fix(o11y): received notifications metric broken (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed Jun 12, 2023
1 parent d0559a2 commit bb1e0f4
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions terraform/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,33 @@ resource "grafana_dashboard" "at_a_glance" {
"type" : "prometheus",
"uid" : grafana_data_source.prometheus.uid
},
"exemplar" : true,
"expr" : "sum(rate(received_notifications{}[1h]))",
"interval" : "",
"legendFormat" : "",
"refId" : "A"
"legendFormat" : "__auto",
"refId" : "Received"
},
{
"datasource" : {
"type" : "prometheus",
"uid" : grafana_data_source.prometheus.uid
},
"editorMode" : "code",
"expr" : "sum(increase(sent_apns_notifications{}[1h]))",
"hide" : false,
"legendFormat" : "__auto",
"range" : true,
"refId" : "SentAPNS"
},
{
"datasource" : {
"type" : "prometheus",
"uid" : grafana_data_source.prometheus.uid
},
"editorMode" : "code",
"expr" : "sum(increase(sent_fcm_notifications{}[1h]))",
"hide" : false,
"legendFormat" : "__auto",
"range" : true,
"refId" : "SentFCM"
}
],
"title" : "Notifications per Hour",
Expand Down Expand Up @@ -305,23 +327,11 @@ resource "grafana_dashboard" "at_a_glance" {
"uid" : grafana_data_source.prometheus.uid
},
"exemplar" : true,
"expr" : "sum(received_notifications{})",
"expr" : "sum(increase(received_notifications{}[1h]))",
"format" : "time_series",
"interval" : "",
"legendFormat" : "",
"refId" : "Notifications"
},
{
"datasource" : {
"type" : "prometheus",
"uid" : "S5BhqwK4z"
},
"exemplar" : true,
"expr" : "",
"hide" : false,
"interval" : "",
"legendFormat" : "",
"refId" : "Processed Notifications"
}
],
"title" : "Received Notifications",
Expand Down

0 comments on commit bb1e0f4

Please sign in to comment.