prometheus: update grafana

This commit is contained in:
Quentin Machu 2016-01-27 16:49:56 -05:00 committed by Jimmy Zelinskie
parent 35df7ca0eb
commit 0c5cdab0b1

View File

@ -125,7 +125,7 @@
"legendFormat": "", "legendFormat": "",
"metric": "clair_updater_notes_total", "metric": "clair_updater_notes_total",
"refId": "A", "refId": "A",
"step": 60 "step": 21
} }
], ],
"thresholds": "", "thresholds": "",
@ -401,7 +401,7 @@
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [], "seriesOverrides": [],
"span": 8, "span": 4,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
@ -430,6 +430,97 @@
"short" "short"
] ]
}, },
{
"aliasColors": {},
"bars": false,
"datasource": null,
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": 0,
"rightLogBase": 1,
"rightMax": null,
"rightMin": 0,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 9,
"isNew": true,
"leftYAxisLabel": "",
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"rightYAxisLabel": "",
"seriesOverrides": [
{
"alias": "Concurrent transactions",
"yaxis": 2
}
],
"span": 4,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(clair_pgsql_query_duration_milliseconds_sum{query=\"insertFeatureVersion\", subquery=\"lock\"}[$rate])) / sum(rate(clair_pgsql_query_duration_milliseconds_count{query=\"insertFeatureVersion\", subquery=\"lock\"}[$rate]))",
"intervalFactor": 2,
"legendFormat": "insertFeatureVersion wait duration",
"refId": "A",
"step": 2
},
{
"expr": "sum(rate(clair_pgsql_query_duration_milliseconds_sum{query=\"insertVulnerability\", subquery=\"lock\"}[$rate])) / sum(rate(clair_pgsql_query_duration_milliseconds_count{query=\"insertVulnerability\", subquery=\"lock\"}[$rate]))",
"intervalFactor": 2,
"legendFormat": "insertVulnerability wait duration",
"refId": "B",
"step": 2
},
{
"expr": "sum(clair_pgsql_concurrent_lock_vafv_total)",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "Concurrent transactions",
"refId": "C",
"step": 2
}
],
"timeFrom": null,
"timeShift": null,
"title": "Lock VAFV",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"ms",
"short"
]
},
{ {
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
@ -577,12 +668,13 @@
] ]
} }
], ],
"showTitle": false,
"title": "PostgreSQL" "title": "PostgreSQL"
}, },
{ {
"collapse": false, "collapse": false,
"editable": true, "editable": true,
"height": "250px", "height": 271,
"panels": [ "panels": [
{ {
"aliasColors": {}, "aliasColors": {},
@ -597,22 +689,19 @@
"leftMin": 0, "leftMin": 0,
"rightLogBase": 1, "rightLogBase": 1,
"rightMax": null, "rightMax": null,
"rightMin": 0, "rightMin": null,
"threshold1": null, "threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)", "threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null, "threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)" "threshold2Color": "rgba(234, 112, 112, 0.22)"
}, },
"id": 9, "id": 10,
"isNew": true, "isNew": true,
"leftYAxisLabel": "",
"legend": { "legend": {
"alignAsTable": false,
"avg": false, "avg": false,
"current": false, "current": false,
"max": false, "max": false,
"min": false, "min": false,
"rightSide": false,
"show": true, "show": true,
"total": false, "total": false,
"values": false "values": false
@ -625,44 +714,23 @@
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"rightYAxisLabel": "", "seriesOverrides": [],
"seriesOverrides": [ "span": 10,
{
"alias": "Concurrent transactions",
"yaxis": 2
}
],
"span": 12,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
{ {
"expr": "sum(rate(clair_pgsql_query_duration_milliseconds_sum{query=\"insertFeatureVersion\", subquery=\"lock\"}[$rate])) / sum(rate(clair_pgsql_query_duration_milliseconds_count{query=\"insertFeatureVersion\", subquery=\"lock\"}[$rate]))", "expr": "sum(rate(clair_api_query_duration_milliseconds_sum[$rate])) by (query, subquery) / sum(rate(clair_api_query_duration_milliseconds_count[$rate])) by (query)",
"intervalFactor": 2, "intervalFactor": 2,
"legendFormat": "insertFeatureVersion wait duration", "legendFormat": "{{query}}",
"metric": "",
"refId": "A", "refId": "A",
"step": 2 "step": 2
},
{
"expr": "sum(rate(clair_pgsql_query_duration_milliseconds_sum{query=\"insertVulnerability\", subquery=\"lock\"}[$rate])) / sum(rate(clair_pgsql_query_duration_milliseconds_count{query=\"insertVulnerability\", subquery=\"lock\"}[$rate]))",
"intervalFactor": 2,
"legendFormat": "insertVulnerability wait duration",
"refId": "B",
"step": 2
},
{
"expr": "sum(clair_pgsql_concurrent_lock_vafv_total)",
"hide": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": "Concurrent transactions",
"refId": "C",
"step": 2
} }
], ],
"timeFrom": null, "timeFrom": null,
"timeShift": null, "timeShift": null,
"title": "Lock VAFV", "title": "API - Query Duration",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"value_type": "cumulative" "value_type": "cumulative"
@ -674,13 +742,75 @@
"ms", "ms",
"short" "short"
] ]
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"datasource": null,
"decimals": null,
"editable": true,
"error": false,
"format": "percent",
"id": 11,
"interval": null,
"isNew": true,
"links": [],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"span": 2,
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": true
},
"targets": [
{
"expr": "sum(rate(clair_api_query_duration_milliseconds_bucket{le=\"300\", query=\"GETLayers\"}[$rate])) / sum(rate(clair_api_query_duration_milliseconds_count{query=\"GETLayers\"}[$rate])) * 100",
"intervalFactor": 2,
"legendFormat": "",
"refId": "A",
"step": 21
} }
], ],
"thresholds": "0,90,95",
"title": "GETLayers [< 300 ms @ TP95]",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"showTitle": false,
"title": "PostgreSQL" "title": "PostgreSQL"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [],
"title": "New row"
} }
], ],
"time": { "time": {
"from": "now-30m", "from": "now-15m",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
@ -717,8 +847,8 @@
"auto_count": 5, "auto_count": 5,
"current": { "current": {
"tags": [], "tags": [],
"text": "15s", "text": "5m",
"value": "15s" "value": "5m"
}, },
"datasource": null, "datasource": null,
"hideLabel": false, "hideLabel": false,
@ -739,7 +869,7 @@
"value": "5s" "value": "5s"
}, },
{ {
"selected": true, "selected": false,
"text": "15s", "text": "15s",
"value": "15s" "value": "15s"
}, },
@ -754,7 +884,7 @@
"value": "1m" "value": "1m"
}, },
{ {
"selected": false, "selected": true,
"text": "5m", "text": "5m",
"value": "5m" "value": "5m"
}, },
@ -846,6 +976,6 @@
}, },
"refresh": "5s", "refresh": "5s",
"schemaVersion": 8, "schemaVersion": 8,
"version": 17, "version": 23,
"links": [] "links": []
} }