Skip to content

Commit

Permalink
fix: TF var syntax & metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed May 20, 2024
1 parent 431f4f9 commit 8e125b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ jobs:
TF_VAR_jwt_secret: ${{ secrets.PROD_JWT_SECRET }}
TF_VAR_image_version: ${{ inputs.image_tag }}
TF_VAR_relay_public_key: ${{ secrets.RELAY_PUBLIC_KEY }}
TF_VAR_notification_channels: NNOynGwVz
with:
environment: "prod"

Expand Down
8 changes: 4 additions & 4 deletions terraform/monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ resource "grafana_dashboard" "at_a_glance_old" {
"type" : "prometheus",
"uid" : grafana_data_source.prometheus.uid
},
"expr" : "sum(rate(received_notifications{}[1h]))",
"expr" : "sum(rate(received_notifications_total{}[1h]))",
"legendFormat" : "__auto",
"refId" : "Received"
},
Expand All @@ -143,7 +143,7 @@ resource "grafana_dashboard" "at_a_glance_old" {
"uid" : grafana_data_source.prometheus.uid
},
"editorMode" : "code",
"expr" : "sum(increase(sent_apns_notifications{}[1h]))",
"expr" : "sum(increase(sent_apns_notifications_total{}[1h]))",
"hide" : false,
"legendFormat" : "__auto",
"range" : true,
Expand All @@ -155,7 +155,7 @@ resource "grafana_dashboard" "at_a_glance_old" {
"uid" : grafana_data_source.prometheus.uid
},
"editorMode" : "code",
"expr" : "sum(increase(sent_fcm_notifications{}[1h]))",
"expr" : "sum(increase(sent_fcm_notifications_total{}[1h]))",
"hide" : false,
"legendFormat" : "__auto",
"range" : true,
Expand Down Expand Up @@ -278,7 +278,7 @@ resource "grafana_dashboard" "at_a_glance_old" {
"uid" : grafana_data_source.prometheus.uid
},
"exemplar" : true,
"expr" : "sum(increase(received_notifications{}[1h]))",
"expr" : "sum(increase(received_notifications_total{}[1h]))",
"format" : "time_series",
"interval" : "",
"legendFormat" : "",
Expand Down
1 change: 1 addition & 0 deletions terraform/vars/prod.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
notification_channels = ["NNOynGwVz"]

0 comments on commit 8e125b1

Please sign in to comment.