Skip to content

Commit 014ae83

Browse files
authored
hosting(grafana): fix users metrics query (#183)
* hosting(grafana): fix users metrics query * ci: fix gh-script to post tf output
1 parent be57556 commit 014ae83

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

.github/workflows/terraform_apply.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ jobs:
4747
4848
const body = `terraform apply: ${APPLY_RESULT}
4949
<details>
50-
<summary>apply output</summary>
51-
\`\`\`
52-
${APPLY_STDOUT}
53-
\`\`\`
50+
<summary>apply output</summary>
51+
\`\`\`\n
52+
${APPLY_STDOUT}
53+
\`\`\`
5454
</details>`
5555
5656
github.rest.issues.createComment({

.github/workflows/terraform_plan.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
4747
const body = `terraform plan: ${PLAN_RESULT}
4848
<details>
49-
<summary>plan output</summary>
50-
\`\`\`
51-
${PLAN_STDOUT}
52-
\`\`\`
49+
<summary>plan output</summary>
50+
\`\`\`\n
51+
${PLAN_STDOUT}
52+
\`\`\`
5353
</details>`
5454
5555
github.rest.issues.createComment({

hosting/terraform/grafana/dashboards/synd-api.json

+6-9
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
"uid": "grafanacloud-logs"
300300
},
301301
"editorMode": "code",
302-
"expr": "count(count(count_over_time({service_name=\"synd-api\", service_namespace=\"syndicationd\"} | operation = \"FetchEntries\" and result = \"success\"[1w])) by (attributes_enduser_id))",
302+
"expr": "count(count(count_over_time({service_name=\"synd-api\", service_namespace=\"syndicationd\"} | operation = \"FetchEntries\" and result = \"success\"[1w])) by (enduser_id))",
303303
"queryType": "range",
304304
"refId": "A"
305305
}
@@ -949,8 +949,7 @@
949949
"mode": "absolute",
950950
"steps": [
951951
{
952-
"color": "green",
953-
"value": null
952+
"color": "green"
954953
}
955954
]
956955
}
@@ -1046,8 +1045,7 @@
10461045
"mode": "absolute",
10471046
"steps": [
10481047
{
1049-
"color": "green",
1050-
"value": null
1048+
"color": "green"
10511049
},
10521050
{
10531051
"color": "red",
@@ -1159,8 +1157,7 @@
11591157
"mode": "absolute",
11601158
"steps": [
11611159
{
1162-
"color": "green",
1163-
"value": null
1160+
"color": "green"
11641161
}
11651162
]
11661163
}
@@ -1220,13 +1217,13 @@
12201217
"list": []
12211218
},
12221219
"time": {
1223-
"from": "now-2d",
1220+
"from": "now-12h",
12241221
"to": "now"
12251222
},
12261223
"timepicker": {},
12271224
"timezone": "browser",
12281225
"title": "synd-api",
12291226
"uid": "cdd2yfdz497uoc",
1230-
"version": 47,
1227+
"version": 48,
12311228
"weekStart": ""
12321229
}

0 commit comments

Comments
 (0)