Skip to content

Commit

Permalink
Merge pull request #1892 from DSD-DBS/user-happiness
Browse files Browse the repository at this point in the history
feat(grafana): Show user happiness over time
  • Loading branch information
MoritzWeber0 authored Oct 9, 2024
2 parents 72564da + aa052aa commit 40624ce
Showing 1 changed file with 98 additions and 1 deletion.
99 changes: 98 additions & 1 deletion helm/config/grafana/dashboards/feedback.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,103 @@
}
],
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus_ccm"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 10,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 10,
"x": 0,
"y": 14
},
"id": 14,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus_ccm"
},
"editorMode": "code",
"expr": "(sum(increase(feedback_count{rating=\"good\"}[$__range]) * 10) + sum(increase(feedback_count{rating=\"okay\"}[$__range]) * 5)) / sum(increase(feedback_count[$__range]))",
"instant": false,
"legendFormat": "User happiness index",
"range": true,
"refId": "A"
}
],
"title": "User Happiness Index",
"type": "timeseries"
}
],
"refresh": "",
Expand All @@ -393,6 +490,6 @@
"timezone": "",
"title": "Feedback",
"uid": "edzhg6sv97lz4c",
"version": 1,
"version": 2,
"weekStart": ""
}

0 comments on commit 40624ce

Please sign in to comment.