Monitoring / ner_dashboard.json
Louay KAHOULI
monitoring ner
8438d95
Raw
History Blame Contribute Delete
8.66 kB
{
"__inputs": [],
"__requires": [],
"annotations": { "list": [] },
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "red", "value": 0 },
{ "color": "green", "value": 1 }
]
},
"mappings": [
{ "options": { "0": { "text": "DOWN" }, "1": { "text": "UP" } }, "type": "value" }
]
}
},
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 0 },
"id": 1,
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "textMode": "auto", "colorMode": "background" },
"title": "🟢 Disponibilité API NER",
"type": "stat",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_availability",
"legendFormat": "Status",
"refId": "A"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"unit": "ms",
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": 0 },
{ "color": "yellow", "value": 500 },
{ "color": "red", "value": 2000 }
]
}
}
},
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 0 },
"id": 2,
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "textMode": "auto", "colorMode": "background" },
"title": "⚡ Latence HTTP (ms)",
"type": "stat",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_http_latency_ms",
"legendFormat": "Latence",
"refId": "A"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"unit": "ms",
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": 0 },
{ "color": "yellow", "value": 300 },
{ "color": "red", "value": 1000 }
]
}
}
},
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 0 },
"id": 3,
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "textMode": "auto", "colorMode": "background" },
"title": "🧠 Temps traitement NER (ms)",
"type": "stat",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_response_time_ms",
"legendFormat": "NER",
"refId": "A"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "blue", "value": 0 }
]
}
}
},
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 0 },
"id": 4,
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "textMode": "auto", "colorMode": "background" },
"title": "🏷️ Entités extraites",
"type": "stat",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_entities_count",
"legendFormat": "Entités",
"refId": "A"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "thresholds" },
"thresholds": {
"mode": "absolute",
"steps": [
{ "color": "green", "value": 0 },
{ "color": "orange", "value": 0.05 },
{ "color": "red", "value": 0.2 }
]
},
"unit": "percentunit"
}
},
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 0 },
"id": 5,
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto", "textMode": "auto", "colorMode": "background" },
"title": "❌ Taux d'erreur",
"type": "stat",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "rate(ner_errors_total[5m]) / (rate(ner_requests_total[5m]) + 0.0001)",
"legendFormat": "Erreurs",
"refId": "A"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"unit": "ms"
}
},
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 },
"id": 6,
"options": { "tooltip": { "mode": "single" } },
"title": "📈 Latence HTTP dans le temps",
"type": "timeseries",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_http_latency_ms",
"legendFormat": "Latence HTTP",
"refId": "A"
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_response_time_ms",
"legendFormat": "Traitement NER",
"refId": "B"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" }
}
},
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 },
"id": 7,
"options": { "tooltip": { "mode": "single" } },
"title": "📊 Entités extraites & Disponibilité",
"type": "timeseries",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_entities_count",
"legendFormat": "Entités extraites",
"refId": "A"
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_availability",
"legendFormat": "Disponibilité",
"refId": "B"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"unit": "short"
}
},
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 12 },
"id": 8,
"options": { "tooltip": { "mode": "single" } },
"title": "🔢 Total requêtes & Erreurs cumulées",
"type": "timeseries",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_requests_total",
"legendFormat": "Requêtes totales",
"refId": "A"
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "ner_errors_total",
"legendFormat": "Erreurs totales",
"refId": "B"
}
]
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"fieldConfig": {
"defaults": {
"color": { "mode": "palette-classic" },
"unit": "ms"
}
},
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 12 },
"id": 9,
"options": { "tooltip": { "mode": "single" } },
"title": "📉 Latence moyenne sur 5 min",
"type": "timeseries",
"targets": [
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "avg_over_time(ner_http_latency_ms[5m])",
"legendFormat": "Moy. Latence HTTP",
"refId": "A"
},
{
"datasource": { "type": "prometheus", "uid": "prometheus" },
"expr": "avg_over_time(ner_response_time_ms[5m])",
"legendFormat": "Moy. Traitement NER",
"refId": "B"
}
]
}
],
"refresh": "30s",
"schemaVersion": 38,
"tags": ["ner", "magento", "b2b", "c10"],
"time": { "from": "now-1h", "to": "now" },
"timepicker": {},
"timezone": "browser",
"title": "🛒 Magento NER API — Monitoring C10",
"uid": "magento-ner-c10",
"version": 1
}