{
    "annotations": {
        "list": [
            {
                "builtIn": 1,
                "datasource": {
                    "type": "grafana",
                    "uid": "-- Grafana --"
                },
                "enable": true,
                "hide": true,
                "iconColor": "rgba(0, 211, 255, 1)",
                "name": "Annotations & Alerts",
                "type": "dashboard"
            }
        ]
    },
    "description": "Different metrics from ProcessMaker",
    "editable": true,
    "fiscalYearStartMonth": 0,
    "graphTooltip": 0,
    "id": 1,
    "links": [],
    "panels": [
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Visual representation of cache performance showing the hit and miss rates for screens.",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "mappings": [],
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    }
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 0
            },
            "id": 1,
            "options": {
                "displayMode": "gradient",
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": false
                },
                "maxVizHeight": 300,
                "minVizHeight": 16,
                "minVizWidth": 8,
                "namePlacement": "auto",
                "orientation": "auto",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showUnfilled": true,
                "sizing": "auto",
                "valueMode": "color"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "expr": "max(processmaker_cache_hits_total{cache_key=~\"pid_.*\"})",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "legendFormat": "Hits",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "expr": "max(processmaker_cache_misses_total{cache_key=~\"pid_.*\"})",
                    "fullMetaSearch": false,
                    "hide": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "legendFormat": "Misses",
                    "range": true,
                    "refId": "B",
                    "useBackend": false
                }
            ],
            "title": "Screen Cache Hit/Miss Rates",
            "type": "bargauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Visual representation of cache performance showing the hit and miss rates for settings.",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "mappings": [],
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    }
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 0
            },
            "id": 2,
            "options": {
                "displayMode": "gradient",
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": false
                },
                "maxVizHeight": 300,
                "minVizHeight": 16,
                "minVizWidth": 8,
                "namePlacement": "auto",
                "orientation": "auto",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "showUnfilled": true,
                "sizing": "auto",
                "valueMode": "color"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "expr": "max(processmaker_cache_hits_total{cache_key=~\"setting_.*\"})",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "legendFormat": "Hits",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                },
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "expr": "max(processmaker_cache_misses_total{cache_key=~\"setting_.*\"})",
                    "fullMetaSearch": false,
                    "hide": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "legendFormat": "Misses",
                    "range": true,
                    "refId": "B",
                    "useBackend": false
                }
            ],
            "title": "Settings Cache Hit/Miss Rates",
            "type": "bargauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Visual representation of cache performance showing the hit and miss rates for screens.",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "mappings": [],
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    }
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 8
            },
            "id": 3,
            "options": {
                "minVizHeight": 75,
                "minVizWidth": 75,
                "orientation": "auto",
                "reduceOptions": {
                    "calcs": [
                        "sum"
                    ],
                    "fields": "",
                    "values": false
                },
                "showThresholdLabels": false,
                "showThresholdMarkers": true,
                "sizing": "auto"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "expr": "topk(5, processmaker_cache_memory_bytes{label=~\"screen.*\"})",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "interval": "",
                    "legendFormat": "{{label}}",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Screen Cache Sizes",
            "type": "gauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Count the number of completed tasks by time",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "axisBorderShow": false,
                        "axisCenteredZero": false,
                        "axisColorMode": "text",
                        "axisLabel": "",
                        "axisPlacement": "auto",
                        "barAlignment": 0,
                        "barWidthFactor": 0.6,
                        "drawStyle": "line",
                        "fillOpacity": 0,
                        "gradientMode": "none",
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "viz": false
                        },
                        "insertNulls": false,
                        "lineInterpolation": "linear",
                        "lineWidth": 1,
                        "pointSize": 5,
                        "scaleDistribution": {
                            "type": "linear"
                        },
                        "showPoints": "auto",
                        "spanNulls": false,
                        "stacking": {
                            "group": "A",
                            "mode": "none"
                        },
                        "thresholdsStyle": {
                            "mode": "off"
                        }
                    },
                    "mappings": [],
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    }
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 8
            },
            "id": 4,
            "interval": "5m",
            "options": {
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": true
                },
                "tooltip": {
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "expr": "sum(processmaker_activity_completed_total)",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "legendFormat": "Tasks completed",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Tasks Completed",
            "type": "timeseries"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Time a task was completed",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "fieldMinMax": false,
                    "mappings": [],
                    "min": 0,
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    },
                    "unit": "ms"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 16
            },
            "id": 6,
            "interval": "15s",
            "options": {
                "displayMode": "gradient",
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": false
                },
                "maxVizHeight": 300,
                "minVizHeight": 16,
                "minVizWidth": 8,
                "namePlacement": "auto",
                "orientation": "horizontal",
                "reduceOptions": {
                    "calcs": [],
                    "fields": "",
                    "values": false
                },
                "showUnfilled": true,
                "sizing": "auto",
                "valueMode": "color"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "avg without(activity_id) (processmaker_activity_execution_time_seconds_sum{element_type=\"task\"})",
                    "format": "time_series",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "interval": "",
                    "legendFormat": "{{activity_name}} (process={{process_id}})",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Task Execution Time",
            "type": "bargauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Top Slowest Tasks",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "fieldMinMax": false,
                    "mappings": [],
                    "min": 0,
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    },
                    "unit": "ms"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 16
            },
            "id": 5,
            "interval": "15s",
            "options": {
                "minVizHeight": 75,
                "minVizWidth": 75,
                "orientation": "auto",
                "reduceOptions": {
                    "calcs": [],
                    "fields": "",
                    "values": false
                },
                "showThresholdLabels": false,
                "showThresholdMarkers": true,
                "sizing": "auto"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "topk(10, avg(processmaker_activity_execution_time_seconds_sum{element_type=\"task\"}) by (process_id, activity_name))",
                    "format": "time_series",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "interval": "",
                    "legendFormat": "{{activity_name}} (process={{process_id}})",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Top Slowest Tasks",
            "type": "gauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Average task time completition",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "axisBorderShow": false,
                        "axisCenteredZero": false,
                        "axisColorMode": "text",
                        "axisLabel": "",
                        "axisPlacement": "auto",
                        "barAlignment": 0,
                        "barWidthFactor": 0.6,
                        "drawStyle": "line",
                        "fillOpacity": 6,
                        "gradientMode": "none",
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "viz": false
                        },
                        "insertNulls": false,
                        "lineInterpolation": "smooth",
                        "lineStyle": {
                            "dash": [
                                10,
                                10
                            ],
                            "fill": "dash"
                        },
                        "lineWidth": 3,
                        "pointSize": 5,
                        "scaleDistribution": {
                            "type": "linear"
                        },
                        "showPoints": "never",
                        "spanNulls": true,
                        "stacking": {
                            "group": "A",
                            "mode": "none"
                        },
                        "thresholdsStyle": {
                            "mode": "off"
                        }
                    },
                    "fieldMinMax": false,
                    "mappings": [],
                    "min": 0,
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    },
                    "unit": "ms"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 24
            },
            "id": 7,
            "interval": "15s",
            "options": {
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": true
                },
                "tooltip": {
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "avg(processmaker_activity_execution_time_seconds_sum{element_type=\"task\"})",
                    "format": "time_series",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "interval": "",
                    "legendFormat": "Average task time completion",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Average Task Completion Time chart",
            "type": "timeseries"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Shows task completion distribution by activity and process to highlight execution patterns and identify key task volumes.",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "viz": false
                        }
                    },
                    "fieldMinMax": false,
                    "mappings": []
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 24
            },
            "id": 8,
            "interval": "5m",
            "options": {
                "displayLabels": [
                    "percent"
                ],
                "legend": {
                    "displayMode": "list",
                    "placement": "right",
                    "showLegend": true
                },
                "pieType": "pie",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "tooltip": {
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "builder",
                    "exemplar": false,
                    "expr": "sum(processmaker_activity_completed_total) by (activity_name, process_id)",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "legendFormat": "{{activity_name}} (process={{process_id}})",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Completion Count by Task and Process",
            "type": "piechart"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Time a task was completed",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "fieldMinMax": false,
                    "mappings": [],
                    "min": 0,
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    },
                    "unit": "ms"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 32
            },
            "id": 9,
            "interval": "15s",
            "options": {
                "displayMode": "gradient",
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": false
                },
                "maxVizHeight": 300,
                "minVizHeight": 16,
                "minVizWidth": 8,
                "namePlacement": "auto",
                "orientation": "horizontal",
                "reduceOptions": {
                    "calcs": [],
                    "fields": "",
                    "values": false
                },
                "showUnfilled": true,
                "sizing": "auto",
                "valueMode": "color"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "avg without(activity_id) (processmaker_activity_execution_time_seconds_sum{element_type=\"scriptTask\"})",
                    "format": "time_series",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "interval": "",
                    "legendFormat": "{{activity_name}} (process={{process_id}})",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Script Task Execution Time",
            "type": "bargauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Average task time completition",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "axisBorderShow": false,
                        "axisCenteredZero": false,
                        "axisColorMode": "text",
                        "axisLabel": "",
                        "axisPlacement": "auto",
                        "barAlignment": 0,
                        "barWidthFactor": 0.6,
                        "drawStyle": "line",
                        "fillOpacity": 6,
                        "gradientMode": "none",
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "viz": false
                        },
                        "insertNulls": false,
                        "lineInterpolation": "smooth",
                        "lineStyle": {
                            "dash": [
                                10,
                                10
                            ],
                            "fill": "dash"
                        },
                        "lineWidth": 3,
                        "pointSize": 5,
                        "scaleDistribution": {
                            "type": "linear"
                        },
                        "showPoints": "never",
                        "spanNulls": true,
                        "stacking": {
                            "group": "A",
                            "mode": "none"
                        },
                        "thresholdsStyle": {
                            "mode": "off"
                        }
                    },
                    "fieldMinMax": false,
                    "mappings": [],
                    "min": 0,
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    },
                    "unit": "ms"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 32
            },
            "id": 10,
            "interval": "15s",
            "options": {
                "legend": {
                    "calcs": [],
                    "displayMode": "list",
                    "placement": "bottom",
                    "showLegend": true
                },
                "tooltip": {
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "avg(processmaker_activity_execution_time_seconds_sum{element_type=\"scriptTask\"}) by (activity_name, process_id, )",
                    "format": "time_series",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "interval": "",
                    "legendFormat": "{{activity_name}} / {{process_id}}",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Script Task Completion Time series",
            "type": "timeseries"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Top Slowest Tasks",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "thresholds"
                    },
                    "fieldMinMax": false,
                    "mappings": [],
                    "min": 0,
                    "thresholds": {
                        "mode": "absolute",
                        "steps": [
                            {
                                "color": "green",
                                "value": null
                            },
                            {
                                "color": "red",
                                "value": 80
                            }
                        ]
                    },
                    "unit": "ms"
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 40
            },
            "id": 11,
            "interval": "15s",
            "options": {
                "minVizHeight": 75,
                "minVizWidth": 75,
                "orientation": "auto",
                "reduceOptions": {
                    "calcs": [],
                    "fields": "",
                    "values": false
                },
                "showThresholdLabels": false,
                "showThresholdMarkers": true,
                "sizing": "auto"
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "topk(10, avg(processmaker_activity_execution_time_seconds_sum{element_type=\"scriptTask\"}) by (process_id, activity_name))",
                    "format": "time_series",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "interval": "",
                    "legendFormat": "{{activity_name}} (process={{process_id}})",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Top Slowest Script Tasks",
            "type": "gauge"
        },
        {
            "datasource": {
                "type": "prometheus",
                "uid": "de96jy15v6qrkc"
            },
            "description": "Shows task completion distribution by activity and process to highlight execution patterns and identify key task volumes.",
            "fieldConfig": {
                "defaults": {
                    "color": {
                        "mode": "palette-classic"
                    },
                    "custom": {
                        "hideFrom": {
                            "legend": false,
                            "tooltip": false,
                            "viz": false
                        }
                    },
                    "fieldMinMax": false,
                    "mappings": []
                },
                "overrides": []
            },
            "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 40
            },
            "id": 12,
            "interval": "5m",
            "options": {
                "displayLabels": [
                    "percent"
                ],
                "legend": {
                    "displayMode": "list",
                    "placement": "right",
                    "showLegend": true
                },
                "pieType": "pie",
                "reduceOptions": {
                    "calcs": [
                        "lastNotNull"
                    ],
                    "fields": "",
                    "values": false
                },
                "tooltip": {
                    "mode": "single",
                    "sort": "none"
                }
            },
            "pluginVersion": "11.4.0",
            "targets": [
                {
                    "datasource": {
                        "type": "prometheus",
                        "uid": "de96jy15v6qrkc"
                    },
                    "disableTextWrap": false,
                    "editorMode": "code",
                    "exemplar": false,
                    "expr": "sum by(activity_name, process_id) (processmaker_script_task_completed_total)",
                    "fullMetaSearch": false,
                    "includeNullMetadata": true,
                    "instant": false,
                    "legendFormat": "{{activity_name}} (process={{process_id}})",
                    "range": true,
                    "refId": "A",
                    "useBackend": false
                }
            ],
            "title": "Completion Count by Task and Process",
            "type": "piechart"
        }
    ],
    "preload": false,
    "schemaVersion": 40,
    "tags": [],
    "templating": {
        "list": []
    },
    "time": {
        "from": "now-30d",
        "to": "now"
    },
    "timepicker": {},
    "timezone": "browser",
    "title": "ProcessMaker Dashboard",
    "uid": "be96wxsnlmn7kc",
    "version": 49,
    "weekStart": ""
}