You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
168 lines
3.8 KiB
168 lines
3.8 KiB
{ |
|
"__inputs": [ |
|
{ |
|
"name": "DS_KAFKA", |
|
"label": "kafka", |
|
"description": "", |
|
"type": "datasource", |
|
"pluginId": "hamedkarbasi93-kafka-datasource", |
|
"pluginName": "Kafka" |
|
} |
|
], |
|
"__elements": {}, |
|
"__requires": [ |
|
{ |
|
"type": "grafana", |
|
"id": "grafana", |
|
"name": "Grafana", |
|
"version": "11.2.2" |
|
}, |
|
{ |
|
"type": "datasource", |
|
"id": "hamedkarbasi93-kafka-datasource", |
|
"name": "Kafka", |
|
"version": "0.2.0" |
|
}, |
|
{ |
|
"type": "panel", |
|
"id": "timeseries", |
|
"name": "Time series", |
|
"version": "" |
|
} |
|
], |
|
"annotations": { |
|
"list": [ |
|
{ |
|
"builtIn": 1, |
|
"datasource": { |
|
"type": "grafana", |
|
"uid": "-- Grafana --" |
|
}, |
|
"enable": true, |
|
"hide": true, |
|
"iconColor": "rgba(0, 211, 255, 1)", |
|
"name": "Annotations & Alerts", |
|
"type": "dashboard" |
|
} |
|
] |
|
}, |
|
"editable": true, |
|
"fiscalYearStartMonth": 0, |
|
"graphTooltip": 0, |
|
"id": null, |
|
"links": [], |
|
"panels": [ |
|
{ |
|
"datasource": { |
|
"type": "hamedkarbasi93-kafka-datasource", |
|
"uid": "${DS_KAFKA}" |
|
}, |
|
"description": "Infelizmente o plugin do Kafka não é oficial e só consegue ler JSONs com estrutura básica de chave: valor. \n\nDemais encadeamentos serão ignorados.", |
|
"fieldConfig": { |
|
"defaults": { |
|
"color": { |
|
"mode": "palette-classic" |
|
}, |
|
"custom": { |
|
"axisBorderShow": false, |
|
"axisCenteredZero": false, |
|
"axisColorMode": "text", |
|
"axisLabel": "", |
|
"axisPlacement": "auto", |
|
"barAlignment": 0, |
|
"barWidthFactor": 0.6, |
|
"drawStyle": "line", |
|
"fillOpacity": 0, |
|
"gradientMode": "none", |
|
"hideFrom": { |
|
"legend": false, |
|
"tooltip": false, |
|
"viz": false |
|
}, |
|
"insertNulls": false, |
|
"lineInterpolation": "linear", |
|
"lineWidth": 1, |
|
"pointSize": 5, |
|
"scaleDistribution": { |
|
"type": "linear" |
|
}, |
|
"showPoints": "auto", |
|
"spanNulls": false, |
|
"stacking": { |
|
"group": "A", |
|
"mode": "none" |
|
}, |
|
"thresholdsStyle": { |
|
"mode": "off" |
|
} |
|
}, |
|
"mappings": [], |
|
"thresholds": { |
|
"mode": "absolute", |
|
"steps": [ |
|
{ |
|
"color": "green", |
|
"value": null |
|
}, |
|
{ |
|
"color": "red", |
|
"value": 80 |
|
} |
|
] |
|
} |
|
}, |
|
"overrides": [] |
|
}, |
|
"gridPos": { |
|
"h": 8, |
|
"w": 12, |
|
"x": 0, |
|
"y": 0 |
|
}, |
|
"id": 1, |
|
"options": { |
|
"legend": { |
|
"calcs": [], |
|
"displayMode": "list", |
|
"placement": "bottom", |
|
"showLegend": true |
|
}, |
|
"tooltip": { |
|
"mode": "single", |
|
"sort": "none" |
|
} |
|
}, |
|
"targets": [ |
|
{ |
|
"autoOffsetReset": "latest", |
|
"datasource": { |
|
"type": "hamedkarbasi93-kafka-datasource", |
|
"uid": "${DS_KAFKA}" |
|
}, |
|
"partition": 0, |
|
"refId": "A", |
|
"timestampMode": "now", |
|
"topicName": "prometheus-events", |
|
"withStreaming": true |
|
} |
|
], |
|
"title": "Teste Kafka", |
|
"type": "timeseries" |
|
} |
|
], |
|
"schemaVersion": 39, |
|
"tags": [], |
|
"templating": { |
|
"list": [] |
|
}, |
|
"time": { |
|
"from": "now-6h", |
|
"to": "now" |
|
}, |
|
"timepicker": {}, |
|
"timezone": "browser", |
|
"title": "Teste Kafka", |
|
"uid": "fe0yj7ufd2xogf", |
|
"version": 1, |
|
"weekStart": "" |
|
} |