Skip to content

Commit

Permalink
hosting(grafana): fix users metrics query (#183)
Browse files Browse the repository at this point in the history
* hosting(grafana): fix users metrics query

* ci: fix gh-script to post tf output
  • Loading branch information
ymgyt authored Oct 29, 2024
1 parent be57556 commit 014ae83
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/terraform_apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
const body = `terraform apply: ${APPLY_RESULT}
<details>
<summary>apply output</summary>
\`\`\`
${APPLY_STDOUT}
\`\`\`
<summary>apply output</summary>
\`\`\`\n
${APPLY_STDOUT}
\`\`\`
</details>`
github.rest.issues.createComment({
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/terraform_plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
const body = `terraform plan: ${PLAN_RESULT}
<details>
<summary>plan output</summary>
\`\`\`
${PLAN_STDOUT}
\`\`\`
<summary>plan output</summary>
\`\`\`\n
${PLAN_STDOUT}
\`\`\`
</details>`
github.rest.issues.createComment({
Expand Down
15 changes: 6 additions & 9 deletions hosting/terraform/grafana/dashboards/synd-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
"uid": "grafanacloud-logs"
},
"editorMode": "code",
"expr": "count(count(count_over_time({service_name=\"synd-api\", service_namespace=\"syndicationd\"} | operation = \"FetchEntries\" and result = \"success\"[1w])) by (attributes_enduser_id))",
"expr": "count(count(count_over_time({service_name=\"synd-api\", service_namespace=\"syndicationd\"} | operation = \"FetchEntries\" and result = \"success\"[1w])) by (enduser_id))",
"queryType": "range",
"refId": "A"
}
Expand Down Expand Up @@ -949,8 +949,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand Down Expand Up @@ -1046,8 +1045,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -1159,8 +1157,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
}
]
}
Expand Down Expand Up @@ -1220,13 +1217,13 @@
"list": []
},
"time": {
"from": "now-2d",
"from": "now-12h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "synd-api",
"uid": "cdd2yfdz497uoc",
"version": 47,
"version": 48,
"weekStart": ""
}

0 comments on commit 014ae83

Please sign in to comment.