Skip to content

Instantly share code, notes, and snippets.

@bobrik
Created October 5, 2018 18:18
Show Gist options
  • Select an option

  • Save bobrik/c36037ec2c529926fa3833a9e6d0d031 to your computer and use it in GitHub Desktop.

Select an option

Save bobrik/c36037ec2c529926fa3833a9e6d0d031 to your computer and use it in GitHub Desktop.

Revisions

  1. bobrik created this gist Oct 5, 2018.
    61 changes: 61 additions & 0 deletions write-histogram-grafana-panel.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,61 @@
    {
    "cards": {
    "cardPadding": null,
    "cardRound": null
    },
    "color": {
    "cardColor": "#bf1b00",
    "colorScale": "sqrt",
    "colorScheme": "interpolateRdYlGn",
    "exponent": 0.25,
    "mode": "opacity"
    },
    "dataFormat": "tsbuckets",
    "datasource": "$prometheus",
    "gridPos": {
    "h": 13,
    "w": 24,
    "x": 0,
    "y": 0
    },
    "heatmap": {},
    "highlightCards": true,
    "id": 2,
    "legend": {
    "show": false
    },
    "links": [],
    "targets": [
    {
    "expr": "sum(rate(ebpf_exporter_bio_latency_seconds_bucket{node_type=~\"$type\", instance=~\"$instance\", device=~\"$device\", operation=\"write\"}[$rate])) without (instance, node_type, device)",
    "format": "heatmap",
    "interval": "$step",
    "intervalFactor": 1,
    "legendFormat": "{{ le }}",
    "refId": "A"
    }
    ],
    "title": "Write latency histogram",
    "tooltip": {
    "show": true,
    "showHistogram": true
    },
    "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
    }