1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-14 11:37:31 +00:00
monitoring-mixins-website/assets/aerospike/dashboards/aerospike-logs.json
2024-12-10 03:41:40 +00:00

329 lines
9.5 KiB
JSON

{
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": false,
"keepTime": true,
"tags": [
"aerospike-mixin"
],
"targetBlank": false,
"title": "Other Aerospike Dashboards",
"type": "dashboards",
"url": ""
}
],
"panels": [
{
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"description": "Logs volume grouped by \"level\" label.",
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "bars",
"fillOpacity": 50,
"stacking": {
"mode": "normal"
}
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": "(E|e)merg|(F|f)atal|(A|a)lert|(C|c)rit.*"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "(E|e)(rr.*|RR.*)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "(W|w)(arn.*|ARN.*|rn|RN)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "(N|n)(otice|ote)|(I|i)(nf.*|NF.*)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "dbg.*|DBG.*|(D|d)(EBUG|ebug)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "(T|t)(race|RACE)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "light-blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": "logs"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "text",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"maxDataPoints": 100,
"options": {
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"expr": "sum by (level) (count_over_time({job=~\"integrations/aerospike\",job=~\"$job\",aerospike_cluster=~\"$aerospike_cluster\",instance=~\"$instance\",context=~\"$context\",level=~\"$level\"}\n|~ \"$regex_search\"\n\n[$__auto]))\n",
"legendFormat": "{{ level }}"
}
],
"title": "Logs volume",
"transformations": [
{
"id": "renameByRegex",
"options": {
"regex": "Value",
"renamePattern": "logs"
}
}
],
"type": "timeseries"
},
{
"datasource": {
"type": "datasource",
"uid": "-- Mixed --"
},
"gridPos": {
"h": 18,
"w": 24,
"x": 0,
"y": 18
},
"id": 2,
"options": {
"dedupStrategy": "exact",
"enableLogDetails": true,
"prettifyLogMessage": true,
"showTime": false,
"wrapLogMessage": true
},
"pluginVersion": "v11.0.0",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"expr": "{job=~\"integrations/aerospike\",job=~\"$job\",aerospike_cluster=~\"$aerospike_cluster\",instance=~\"$instance\",context=~\"$context\",level=~\"$level\"} \n|~ \"$regex_search\"\n\n\n"
}
],
"title": "Logs",
"type": "logs"
}
],
"refresh": "1m",
"schemaVersion": 39,
"tags": [
"aerospike-mixin"
],
"templating": {
"list": [
{
"label": "Loki data source",
"name": "loki_datasource",
"query": "loki",
"regex": "",
"type": "datasource"
},
{
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"includeAll": true,
"label": "Job",
"multi": true,
"name": "job",
"query": "label_values({job=~\"integrations/aerospike\"}, job)",
"refresh": 2,
"sort": 1,
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"includeAll": true,
"label": "Aerospike_cluster",
"multi": true,
"name": "aerospike_cluster",
"query": "label_values({job=~\"integrations/aerospike\",job=~\"$job\"}, aerospike_cluster)",
"refresh": 2,
"sort": 1,
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"includeAll": true,
"label": "Instance",
"multi": true,
"name": "instance",
"query": "label_values({job=~\"integrations/aerospike\",job=~\"$job\",aerospike_cluster=~\"$aerospike_cluster\"}, instance)",
"refresh": 2,
"sort": 1,
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"includeAll": true,
"label": "Context",
"multi": true,
"name": "context",
"query": "label_values({job=~\"integrations/aerospike\",job=~\"$job\",aerospike_cluster=~\"$aerospike_cluster\",instance=~\"$instance\"}, context)",
"refresh": 2,
"sort": 1,
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"includeAll": true,
"label": "Level",
"multi": true,
"name": "level",
"query": "label_values({job=~\"integrations/aerospike\",job=~\"$job\",aerospike_cluster=~\"$aerospike_cluster\",instance=~\"$instance\",context=~\"$context\"}, level)",
"refresh": 2,
"sort": 1,
"type": "query"
},
{
"current": {
"selected": false,
"text": "",
"value": ""
},
"label": "Regex search",
"name": "regex_search",
"options": [
{
"selected": true,
"text": "",
"value": ""
}
],
"query": "",
"type": "textbox"
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timezone": "utc",
"title": "Aerospike logs",
"uid": "aerospike-logs"
}