Grafana dashboard: Grafana Image Rendering Service
Description: Monitor the Grafana Image Renderer plugin when running it as a remote rendering service.

Monitor the [Grafana Image Renderer plugin](https://grafana.com/grafana/plugins/grafana-image-renderer/) when running it as a [remote rendering service](https://github.com/grafana/grafana-image-renderer#remote-rendering-service-installation).

## Rendering service configuration

The remote rendering service doesn't per default collect and expose a Prometheus /metrics endpoint. To enable it, provide an environment variable `ENABLE_METRICS=true` when starting the rendering service.

As an alternative you can provide a configuration file, see [here](https://github.com/grafana/grafana-image-renderer/blob/master/docs/remote_rendering_using_docker.md#configuration-file) for details. With this approach, besides enable metrics, you can configure a few other things:
- Collect the default metrics (NodeJS application metrics). Enabled per default. For example, this [dashboard](https://grafana.com/grafana/dashboards/11159) can be used to monitor a NodeJS application. 
- Change what buckets to use for the `grafana_image_renderer_service_http_request_duration_seconds_bucket` metric.
- Collect [timing metrics](https://github.com/grafana/grafana-image-renderer/blob/master/default.json#L42) for every rendering request.

When metrics are enabled, you'll find the Prometheus /metrics endpoint at `http://<rendering service host>:<rendering service port>/metrics`.

## Prometheus configuration

Configure your Prometheus instance to scrape the image rendering service, e.g.

```yaml
scrape_configs:
  - job_name: 'grafana-image-rendering-service'
    static_configs:
      - targets: ['<rendering service host>:<rendering service port>']
```

{
  "__inputs": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.0.0-beta1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12203,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1588236432938,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "gridPos": {
        "h": 3,
        "w": 9,
        "x": 0,
        "y": 0
      },
      "id": 24,
      "options": {
        "content": "<h5>This dashboard measures the performance of Grafana's image rendering service. For more information on the image renderer, measurement and performance optimization, refer to the <a href=\"https://grafana.com/docs/grafana/next/image-rendering/\" target=0>Grafana docs</a>. </h5>",
        "mode": "html"
      },
      "targets": [
        {
          "refId": "A",
          "target": ""
        }
      ],
      "type": "text"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 6,
        "x": 9,
        "y": 0
      },
      "id": 3,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false,
        "ymax": null,
        "ymin": null
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "count(grafana_image_renderer_browser_info > 0)",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Instances",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 9,
        "x": 15,
        "y": 0
      },
      "id": 2,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": false,
        "ymax": null,
        "ymin": null
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "topk(1, grafana_image_renderer_browser_info)",
          "instant": true,
          "interval": "",
          "legendFormat": "{{version}}",
          "refId": "A"
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Browser version",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "name"
    },
    {
      "aliasColors": {
        "1xx": "blue",
        "2xx": "green",
        "3xx": "yellow",
        "4xx": "orange",
        "5xx": "red",
        "error": "red",
        "success": "green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "Average requests per second during past interval grouped by status codes",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 10,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 3
      },
      "hiddenSeries": false,
      "id": 5,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 0,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by (status) (label_replace(label_replace(rate(grafana_image_renderer_service_http_request_duration_seconds_count[$__rate_interval]), \"status\", \"${1}xx\", \"status_code\", \"([0-9])..\"), \"status\", \"${1}\",   \"status_code\", \"([a-z]+)\"))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{status}}",
          "refId": "A",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Requests per second (by status)",
      "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": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 3
      },
      "hiddenSeries": false,
      "id": 7,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "histogram_quantile(0.99, \n  sum without(instance,status_code)(\n    rate(grafana_image_renderer_service_http_request_duration_seconds_bucket[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "B",
          "step": 10
        },
        {
          "expr": "histogram_quantile(0.5, \n  sum without(instance,status_code)(\n    rate(grafana_image_renderer_service_http_request_duration_seconds_bucket[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "A",
          "step": 10
        },
        {
          "expr": "sum without(instance,status_code) (rate(grafana_image_renderer_service_http_request_duration_seconds_sum[$__rate_interval])) \n/ \nsum without(instance,status_code) (rate(grafana_image_renderer_service_http_request_duration_seconds_count[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Request latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "1xx": "blue",
        "2xx": "green",
        "3xx": "yellow",
        "4xx": "orange",
        "5xx": "red",
        "error": "red",
        "success": "green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "Average requests per second during past interval grouped by instance",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 0,
        "y": 12
      },
      "hiddenSeries": false,
      "id": 9,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by (instance) (rate(grafana_image_renderer_service_http_request_duration_seconds_count[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{instance}}",
          "refId": "A",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Requests per second (by instance)",
      "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": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "cards": {
        "cardPadding": null,
        "cardRound": null
      },
      "color": {
        "cardColor": "#b4ff00",
        "colorScale": "sqrt",
        "colorScheme": "interpolateSpectral",
        "exponent": 0.5,
        "min": null,
        "mode": "spectrum"
      },
      "dataFormat": "tsbuckets",
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 12,
        "x": 12,
        "y": 12
      },
      "heatmap": {},
      "hideZeroBuckets": false,
      "highlightCards": true,
      "id": 11,
      "legend": {
        "show": true
      },
      "reverseYBuckets": false,
      "targets": [
        {
          "expr": "sum(rate(grafana_image_renderer_service_http_request_duration_seconds_bucket[$__interval]) * $__interval_ms / 1000) by (le)",
          "format": "heatmap",
          "interval": "1m",
          "intervalFactor": 2,
          "legendFormat": "{{le}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Request latency distribution",
      "tooltip": {
        "show": true,
        "showHistogram": false
      },
      "type": "heatmap",
      "xAxis": {
        "show": true
      },
      "xBucketNumber": null,
      "xBucketSize": null,
      "yAxis": {
        "decimals": 1,
        "format": "s",
        "logBase": 1,
        "max": null,
        "min": null,
        "show": true,
        "splitFactor": null
      },
      "yBucketBound": "auto",
      "yBucketNumber": null,
      "yBucketSize": null
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "Number of concurrent requests grouped by instance",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 21
      },
      "hiddenSeries": false,
      "id": 20,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum by (instance) (grafana_image_renderer_http_request_in_flight)",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "{{instance}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Requests in flight (by instance)",
      "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": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "unit": "s"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 21
      },
      "hiddenSeries": false,
      "id": 22,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"launch\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"launch\"}[$__rate_interval]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "launch",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"newPage\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"newPage\"}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "newPage",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"prepare\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"prepare\"}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "prepare",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"navigate\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"navigate\"}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "navigate",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"panelsRendered\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"panelsRendered\"}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "panelsRendered",
          "refId": "E"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"screenshot\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"screenshot\"}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "screenshot",
          "refId": "F"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance,status_code) (rate(grafana_image_renderer_service_http_request_duration_seconds_sum[$__rate_interval])) \n/ \nsum without(instance,status_code) (rate(grafana_image_renderer_service_http_request_duration_seconds_count[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Request latency (avg)",
          "refId": "G"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Request latency compared to steps latency (avg)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transformations": [
        {
          "id": "calculateField",
          "options": {
            "alias": "Steps latency (sum of avg)",
            "mode": "reduceRow",
            "reduce": {
              "include": [
                "launch",
                "newPage",
                "prepare",
                "navigate",
                "panelsRendered",
                "screenshot"
              ],
              "reducer": "sum"
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "launch": true,
              "navigate": true,
              "newPage": true,
              "panelsRendered": true,
              "prepare": true,
              "screenshot": true
            },
            "indexByName": {},
            "renameByName": {}
          }
        }
      ],
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "The duration of launching the Chromium browser. This is null for \"clustered\" or \"reusable\" modes.",
      "fieldConfig": {
        "defaults": {
          "links": [],
          "unit": "s"
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 0,
        "y": 29
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "histogram_quantile(0.99, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"launch\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "B",
          "step": 10
        },
        {
          "expr": "histogram_quantile(0.5, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"launch\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "A",
          "step": 10
        },
        {
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"launch\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"launch\"}[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Launch latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "The duration of opening a Chromium incognito page. This is null for \"clustered\" mode.",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 4,
        "y": 29
      },
      "hiddenSeries": false,
      "id": 13,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "histogram_quantile(0.99, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"newPage\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "B",
          "step": 10
        },
        {
          "expr": "histogram_quantile(0.5, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"newPage\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "A",
          "step": 10
        },
        {
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"newPage\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"newPage\"}[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "New page latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "The duration of preparing the Chromium page (setting the viewport, the cookie, the timezone and the extra HTTP headers if needed).",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 8,
        "y": 29
      },
      "hiddenSeries": false,
      "id": 18,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "histogram_quantile(0.99, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"prepare\"}[$__rate_interval])\n  )\n)",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "histogram_quantile(0.5, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"prepare\"}[$__rate_interval])\n  )\n)",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"prepare\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"prepare\"}[$__rate_interval]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Prepare page latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "The duration of navigating to the Grafana page (including waiting for all network requests to end).",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 12,
        "y": 29
      },
      "hiddenSeries": false,
      "id": 14,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "histogram_quantile(0.99, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"navigate\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "B",
          "step": 10
        },
        {
          "expr": "histogram_quantile(0.5, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"navigate\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "A",
          "step": 10
        },
        {
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"navigate\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"navigate\"}[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Navigate latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "The duration of waiting for the panel(s) to be rendered. ",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 16,
        "y": 29
      },
      "hiddenSeries": false,
      "id": 15,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "histogram_quantile(0.99, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"panelsRendered\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "B",
          "step": 10
        },
        {
          "expr": "histogram_quantile(0.5, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"panelsRendered\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "A",
          "step": 10
        },
        {
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"panelsRendered\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"panelsRendered\"}[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Panels rendered latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "description": "The duration of taking the screenshot of the page. ",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 20,
        "y": 29
      },
      "hiddenSeries": false,
      "id": 16,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "histogram_quantile(0.99, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"screenshot\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "99th percentile",
          "refId": "B",
          "step": 10
        },
        {
          "expr": "histogram_quantile(0.5, \n  sum without(instance)(\n    rate(grafana_image_renderer_step_duration_seconds_bucket{step=\"screenshot\"}[$__rate_interval])\n  )\n)",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "50th percentile",
          "refId": "A",
          "step": 10
        },
        {
          "expr": "sum without(instance) (rate(grafana_image_renderer_step_duration_seconds_sum{step=\"screenshot\"}[$__rate_interval])) \n/ \nsum without(instance) (rate(grafana_image_renderer_step_duration_seconds_count{step=\"screenshot\"}[$__rate_interval]))",
          "format": "time_series",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Average",
          "refId": "C",
          "step": 10
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Screenshot latency",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "s",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": 0,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 24,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Datasource",
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Grafana Image Rendering Service",
  "uid": "MyDXqFsZk",
  "version": 4,
  "description": "Monitor the Grafana Image Renderer plugin when running it as a remote rendering service."
}