example Grafana dashboard + nim-metrics bump [skip ci]

This commit is contained in:
Ștefan Talpalaru 2019-10-02 02:40:53 +02:00
parent 26ee138ea5
commit 36d1afe131
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
2 changed files with 326 additions and 1 deletions

View File

@ -0,0 +1,325 @@
{
"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": 1,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 14,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "process_resident_memory_bytes{instance=\"localhost:9093\",job=\"nimbus\"}",
"yaxis": 2
},
{
"alias": "process_virtual_memory_bytes{instance=\"localhost:9093\",job=\"nimbus\"}",
"yaxis": 2
},
{
"alias": "nim_gc_mem_bytes{instance=\"localhost:9093\",job=\"nimbus\"}",
"yaxis": 2
},
{
"alias": "nim_gc_mem_occupied_bytes{instance=\"localhost:9093\",job=\"nimbus\"}",
"yaxis": 2
},
{
"alias": "RSS",
"yaxis": 2
},
{
"alias": "virtual mem",
"yaxis": 2
},
{
"alias": "Nim GC mem total",
"yaxis": 2
},
{
"alias": "Nim GC mem used",
"yaxis": 2
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(process_cpu_seconds_total[2s]) * 100",
"legendFormat": "CPU usage %",
"refId": "A"
},
{
"expr": "process_open_fds",
"legendFormat": "open file descriptors",
"refId": "C"
},
{
"expr": "process_resident_memory_bytes",
"legendFormat": "RSS",
"refId": "D"
},
{
"expr": "nim_gc_mem_bytes",
"legendFormat": "Nim GC mem total",
"refId": "F"
},
{
"expr": "nim_gc_mem_occupied_bytes",
"legendFormat": "Nim GC mem used",
"refId": "G"
},
{
"expr": "connected_peers",
"legendFormat": "connected peers",
"refId": "H"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Nimbus",
"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": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"gridPos": {
"h": 5,
"w": 8,
"x": 0,
"y": 14
},
"id": 4,
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [],
"max": 100,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
}
]
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.5",
"targets": [
{
"expr": "connected_peers",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "peers",
"type": "gauge"
},
{
"gridPos": {
"h": 5,
"w": 8,
"x": 8,
"y": 14
},
"id": 6,
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [],
"max": 2147483648,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
}
],
"unit": "bytes"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.5",
"targets": [
{
"expr": "process_resident_memory_bytes",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "RSS mem",
"type": "gauge"
},
{
"gridPos": {
"h": 5,
"w": 8,
"x": 16,
"y": 14
},
"id": 8,
"options": {
"fieldOptions": {
"calcs": [
"lastNotNull"
],
"defaults": {
"mappings": [],
"max": 200,
"min": 0,
"thresholds": [
{
"color": "green",
"value": null
}
],
"unit": "percent"
},
"override": {},
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.3.5",
"targets": [
{
"expr": "rate(process_cpu_seconds_total[2s]) * 100",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "CPU usage",
"type": "gauge"
}
],
"refresh": "5s",
"schemaVersion": 19,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-15m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Nimbus",
"uid": "mmSk-ShZk",
"version": 23
}

2
vendor/nim-metrics vendored

@ -1 +1 @@
Subproject commit d4492f0d0ae9d2c46cc3dde2d947bc175ae420de Subproject commit 4557d8b5343a76a5cfdceb7acb93c6f987ed3bec