Created
September 20, 2018 10:22
-
-
Save kinnou02/d4673bea936c8b35fc544286acb06cd4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"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": 22, | |
"links": [], | |
"panels": [ | |
{ | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "DataPrometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 1, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "sum(rate(bragi_http_request_duration_seconds_count[1m])) by (handler)", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "{{handler}}", | |
"refId": "A" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "request per second", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "ops", | |
"label": null, | |
"logBase": 2, | |
"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": "DataPrometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 8, | |
"y": 0 | |
}, | |
"id": 3, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"autocomplete\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "autocomplete", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"metrics\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "metrics", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"reverse\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "reverse", | |
"refId": "C" | |
}, | |
{ | |
"expr": "histogram_quantile(0.90, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"features/:id\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "features", | |
"refId": "D" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "90th percentile", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "dtdurations", | |
"label": null, | |
"logBase": 2, | |
"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": "DataPrometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 7, | |
"w": 8, | |
"x": 16, | |
"y": 0 | |
}, | |
"id": 4, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.99, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"autocomplete\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "autocomplete", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"metrics\"}[5m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "metrics", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"reverse\"}[5m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "reverse", | |
"refId": "C" | |
}, | |
{ | |
"expr": "histogram_quantile(0.99, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"features/:id\"}[5m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "features", | |
"refId": "D" | |
} | |
], | |
"thresholds": [], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "99th percentile", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "dtdurations", | |
"label": null, | |
"logBase": 2, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": false | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"alert": { | |
"conditions": [ | |
{ | |
"evaluator": { | |
"params": [ | |
0.5 | |
], | |
"type": "gt" | |
}, | |
"operator": { | |
"type": "and" | |
}, | |
"query": { | |
"params": [ | |
"A", | |
"5m", | |
"now" | |
] | |
}, | |
"reducer": { | |
"params": [], | |
"type": "avg" | |
}, | |
"type": "query" | |
} | |
], | |
"executionErrorState": "alerting", | |
"frequency": "60s", | |
"handler": 1, | |
"name": "average response time alert", | |
"noDataState": "no_data", | |
"notifications": [ | |
{ | |
"id": 2 | |
}, | |
{ | |
"id": 4 | |
}, | |
{ | |
"id": 5 | |
} | |
] | |
}, | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "DataPrometheus", | |
"description": "Average for 1 minutes", | |
"fill": 1, | |
"gridPos": { | |
"h": 13, | |
"w": 24, | |
"x": 0, | |
"y": 7 | |
}, | |
"id": 2, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [ | |
{ | |
"alias": "ES prefix", | |
"yaxis": 1 | |
} | |
], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "avg(rate(bragi_http_request_duration_seconds_sum[1m])/rate(bragi_http_request_duration_seconds_count[1m])) by (handler)", | |
"format": "time_series", | |
"instant": false, | |
"intervalFactor": 1, | |
"legendFormat": "{{handler}}", | |
"refId": "A" | |
}, | |
{ | |
"expr": "avg(rate(bragi_elasticsearch_request_duration_seconds_sum[1m])/rate(bragi_elasticsearch_request_duration_seconds_count[1m])) by (search_type)", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "ES {{search_type}}", | |
"refId": "B" | |
} | |
], | |
"thresholds": [ | |
{ | |
"colorMode": "critical", | |
"fill": true, | |
"line": true, | |
"op": "gt", | |
"value": 0.5 | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "average response time", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"transparent": false, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "dtdurations", | |
"label": null, | |
"logBase": 2, | |
"max": null, | |
"min": "0.005", | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"alert": { | |
"conditions": [ | |
{ | |
"evaluator": { | |
"params": [ | |
0.5 | |
], | |
"type": "gt" | |
}, | |
"operator": { | |
"type": "and" | |
}, | |
"query": { | |
"params": [ | |
"A", | |
"5m", | |
"now" | |
] | |
}, | |
"reducer": { | |
"params": [], | |
"type": "avg" | |
}, | |
"type": "query" | |
}, | |
{ | |
"evaluator": { | |
"params": [ | |
0.06 | |
], | |
"type": "gt" | |
}, | |
"operator": { | |
"type": "and" | |
}, | |
"query": { | |
"params": [ | |
"C", | |
"5m", | |
"now" | |
] | |
}, | |
"reducer": { | |
"params": [], | |
"type": "avg" | |
}, | |
"type": "query" | |
} | |
], | |
"executionErrorState": "alerting", | |
"frequency": "60s", | |
"handler": 1, | |
"name": "median alert", | |
"noDataState": "no_data", | |
"notifications": [ | |
{ | |
"id": 4 | |
}, | |
{ | |
"id": 2 | |
}, | |
{ | |
"id": 5 | |
} | |
] | |
}, | |
"aliasColors": {}, | |
"bars": false, | |
"dashLength": 10, | |
"dashes": false, | |
"datasource": "DataPrometheus", | |
"fill": 1, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 20 | |
}, | |
"id": 5, | |
"legend": { | |
"avg": false, | |
"current": false, | |
"max": false, | |
"min": false, | |
"show": true, | |
"total": false, | |
"values": false | |
}, | |
"lines": true, | |
"linewidth": 1, | |
"links": [], | |
"nullPointMode": "null", | |
"percentage": false, | |
"pointradius": 5, | |
"points": false, | |
"renderer": "flot", | |
"seriesOverrides": [], | |
"spaceLength": 10, | |
"stack": false, | |
"steppedLine": false, | |
"targets": [ | |
{ | |
"expr": "histogram_quantile(0.50, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"autocomplete\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "autocomplete", | |
"refId": "A" | |
}, | |
{ | |
"expr": "histogram_quantile(0.50, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"metrics\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "metrics", | |
"refId": "B" | |
}, | |
{ | |
"expr": "histogram_quantile(0.50, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"reverse\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 2, | |
"legendFormat": "reverse", | |
"refId": "C" | |
}, | |
{ | |
"expr": "histogram_quantile(0.50, sum(rate(bragi_http_request_duration_seconds_bucket{handler=\"features/:id\"}[1m])) by (le))", | |
"format": "time_series", | |
"intervalFactor": 1, | |
"legendFormat": "features", | |
"refId": "D" | |
} | |
], | |
"thresholds": [ | |
{ | |
"colorMode": "critical", | |
"fill": true, | |
"line": true, | |
"op": "gt", | |
"value": 0.5 | |
} | |
], | |
"timeFrom": null, | |
"timeShift": null, | |
"title": "median", | |
"tooltip": { | |
"shared": true, | |
"sort": 0, | |
"value_type": "individual" | |
}, | |
"type": "graph", | |
"xaxis": { | |
"buckets": null, | |
"mode": "time", | |
"name": null, | |
"show": true, | |
"values": [] | |
}, | |
"yaxes": [ | |
{ | |
"format": "dtdurations", | |
"label": null, | |
"logBase": 2, | |
"max": null, | |
"min": null, | |
"show": true | |
}, | |
{ | |
"format": "short", | |
"label": null, | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true | |
} | |
], | |
"yaxis": { | |
"align": false, | |
"alignLevel": null | |
} | |
}, | |
{ | |
"cards": { | |
"cardPadding": null, | |
"cardRound": null | |
}, | |
"color": { | |
"cardColor": "#1f78c1", | |
"colorScale": "sqrt", | |
"colorScheme": "interpolateSpectral", | |
"exponent": 0.5, | |
"mode": "opacity" | |
}, | |
"dataFormat": "tsbuckets", | |
"datasource": "DataPrometheus", | |
"gridPos": { | |
"h": 9, | |
"w": 12, | |
"x": 0, | |
"y": 27 | |
}, | |
"heatmap": {}, | |
"highlightCards": true, | |
"id": 7, | |
"legend": { | |
"show": true | |
}, | |
"links": [], | |
"targets": [ | |
{ | |
"expr": "sum(rate(bragi_http_request_duration_seconds_bucket{handler!=\"metrics\"}[10m])) by(le)", | |
"format": "heatmap", | |
"interval": "1m", | |
"intervalFactor": 10, | |
"legendFormat": "{{le}}", | |
"refId": "A" | |
} | |
], | |
"title": "http response time", | |
"tooltip": { | |
"show": true, | |
"showHistogram": false | |
}, | |
"tooltipDecimals": 3, | |
"type": "heatmap", | |
"xAxis": { | |
"show": true | |
}, | |
"xBucketNumber": null, | |
"xBucketSize": null, | |
"yAxis": { | |
"decimals": null, | |
"format": "dtdurations", | |
"logBase": 1, | |
"max": null, | |
"min": null, | |
"show": true, | |
"splitFactor": null | |
}, | |
"yBucketBound": "auto", | |
"yBucketNumber": null, | |
"yBucketSize": null | |
} | |
], | |
"refresh": "1m", | |
"schemaVersion": 16, | |
"style": "dark", | |
"tags": [ | |
"navitia2", | |
"bragi", | |
"prod", | |
"autocompletion" | |
], | |
"templating": { | |
"list": [] | |
}, | |
"time": { | |
"from": "now-1h", | |
"to": "now" | |
}, | |
"timepicker": { | |
"refresh_intervals": [ | |
"5s", | |
"10s", | |
"30s", | |
"1m", | |
"5m", | |
"15m", | |
"30m", | |
"1h", | |
"2h", | |
"1d" | |
], | |
"time_options": [ | |
"5m", | |
"15m", | |
"1h", | |
"6h", | |
"12h", | |
"24h", | |
"2d", | |
"7d", | |
"30d" | |
] | |
}, | |
"timezone": "", | |
"title": "bragi", | |
"uid": "000000001", | |
"version": 12 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment