Skip to content

Commit

Permalink
add more metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 23, 2023
1 parent 8de9845 commit cfd9a89
Showing 1 changed file with 219 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,225 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 3,
"id": 2,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 3,
"panels": [],
"title": "Overview",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "promz2394"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 1,
"x": 0,
"y": 1
},
"id": 4,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.1.4",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "promz2394"
},
"editorMode": "code",
"expr": "sum(logprep_number_of_errors_total)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Errors",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "promz2394"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 1,
"x": 1,
"y": 1
},
"id": 5,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.1.4",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "promz2394"
},
"editorMode": "code",
"expr": "sum(logprep_number_of_warnings_total)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Warnings",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "promz2394"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1000
},
{
"color": "yellow",
"value": 1000
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 24,
"x": 0,
"y": 4
},
"id": 6,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.1.4",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "promz2394"
},
"editorMode": "code",
"expr": "count by (type)(logprep_number_of_processed_events_total{component=\"rule\"})",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Number of Rules per Processor",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -89,7 +304,7 @@
"h": 9,
"w": 8,
"x": 0,
"y": 0
"y": 7
},
"id": 1,
"options": {
Expand Down Expand Up @@ -182,7 +397,6 @@
}
},
"mappings": [],
"noValue": "0",
"thresholds": {
"mode": "absolute",
"steps": [
Expand All @@ -204,7 +418,7 @@
"h": 9,
"w": 8,
"x": 0,
"y": 9
"y": 16
},
"id": 2,
"options": {
Expand Down Expand Up @@ -267,6 +481,6 @@
"timezone": "",
"title": "Logprep Version 0.0.1",
"uid": "b1d9c144-d9a7-4a9c-a6c4-6929eec1c776",
"version": 3,
"version": 1,
"weekStart": ""
}

0 comments on commit cfd9a89

Please sign in to comment.