Skip to content

Instantly share code, notes, and snippets.

@steveandroulakis
Last active September 28, 2023 18:51
Show Gist options
  • Select an option

  • Save steveandroulakis/786ccfdd9f93535035aca743a049e9b6 to your computer and use it in GitHub Desktop.

Select an option

Save steveandroulakis/786ccfdd9f93535035aca743a049e9b6 to your computer and use it in GitHub Desktop.
Grafana Dashboard: Billable Actions from Temporal Server
{
"__inputs": [
{
"name": "DS_TEMPORALMETRICS",
"label": "TemporalMetrics",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.7.1"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
}
],
"annotations": {
"list": [
{
"$$hashKey": "object:71",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEMPORALMETRICS}",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(action{action_type=~\"grpc_StartWorkflowExecution|grpc_QueryWorkflow|grpc_SignalWorkflowExecution|grpc_ResetWorkflowExecution|grpc_SignalWithStartWorkflowExecution|grpc_RecordActivityTaskHeartbeat|grpc_RecordActivityTaskHeartbeatbyID|command_RecordMarker_LocalActivity|command_RecordMarker_core_local_activity|command_RecordMarker_core_local_activity|command_RecordMarker_MutableSideEffect|command_RecordMarker_SideEffect|command_RecordMarker_Version|command_ScheduleActivityTask|command_ContinueAsNewWorkflowExecution|command_StartTimer|command_UpsertWorkflowSearchAttributes|command_StartChildWorkflowExecution|command_SignalExternalWorkflowExecution|activity_retry\"}[2m])) by (exported_namespace)",
"interval": "",
"legendFormat": "{{exported_namespace}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Actions (Billable) by namespace",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_TEMPORALMETRICS}",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"hiddenSeries": false,
"id": 3,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(action{action_type=~\"grpc_StartWorkflowExecution|grpc_QueryWorkflow|grpc_SignalWorkflowExecution|grpc_ResetWorkflowExecution|grpc_SignalWithStartWorkflowExecution|grpc_RecordActivityTaskHeartbeat|grpc_RecordActivityTaskHeartbeatbyID|command_RecordMarker_LocalActivity|command_RecordMarker_core_local_activity|command_RecordMarker_core_local_activity|command_RecordMarker_MutableSideEffect|command_RecordMarker_SideEffect|command_RecordMarker_Version|command_ScheduleActivityTask|command_ContinueAsNewWorkflowExecution|command_StartTimer|command_UpsertWorkflowSearchAttributes|command_StartChildWorkflowExecution|command_SignalExternalWorkflowExecution|activity_retry\"}[2m])) by (action_type)",
"interval": "",
"legendFormat": "{{action_type}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Actions (Billable) by action_type",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:77",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:78",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": false,
"schemaVersion": 22,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "2023-09-28T16:16:59.279Z",
"to": "2023-09-28T16:18:58.604Z"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Actions (billable)",
"uid": "9QP1i1ZSz",
"variables": {
"list": []
},
"version": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment