fake-log-generator/fake-logs-dashboard.json
2025-05-31 13:05:15 +02:00

65 lines
1.3 KiB
JSON

{
"dashboard": {
"id": null,
"title": "Fake Log Generator Dashboard",
"timezone": "browser",
"schemaVersion": 36,
"version": 1,
"refresh": "10s",
"panels": [
{
"type": "logs",
"title": "Logs r\u00e9cents (Loki)",
"targets": [
{
"expr": "{job=\"fake_logs\"}",
"refId": "A"
}
],
"options": {
"dedupStrategy": "none",
"showTime": true,
"showLabels": true
},
"gridPos": {
"x": 0,
"y": 0,
"w": 24,
"h": 10
}
},
{
"type": "stat",
"title": "Nombre total de logs",
"targets": [
{
"expr": "count_over_time({job=\"fake_logs\"}[1m])",
"refId": "B"
}
],
"gridPos": {
"x": 0,
"y": 10,
"w": 6,
"h": 6
}
},
{
"type": "piechart",
"title": "R\u00e9partition par code HTTP",
"targets": [
{
"expr": "count_over_time({job=\"fake_logs\"} |= \"HTTP\" | regexp \"\\\" ([0-9]{3}) \" | unwrap code [1m]) by (code)",
"refId": "C"
}
],
"gridPos": {
"x": 6,
"y": 10,
"w": 9,
"h": 6
}
}
]
}
}