{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 14, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "red", "index": 0, "text": "KO" }, "1": { "color": "green", "index": 1, "text": "OK" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 4, "x": 0, "y": 0 }, "id": 10, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.4.0-102000pre", "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "min(opcache_enabled{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "", "range": true, "refId": "A" } ], "title": "Opcache enabled", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 9, "w": 10, "x": 4, "y": 0 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "sum(opcache_memory_usage_used_memory{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "used memory", "range": true, "refId": "A" } ], "title": "Cache Size", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 9, "w": 10, "x": 14, "y": 0 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "sum(opcache_statistics_hits{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "hits", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "sum(opcache_statistics_misses{job=\"opcache\", instance=~\"$host\"})", "hide": false, "interval": "", "legendFormat": "misses", "range": true, "refId": "B" } ], "title": "Hits/Misses", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [ { "options": { "0": { "color": "green", "index": 1, "text": "OK" }, "1": { "color": "red", "index": 0, "text": "KO" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 4, "x": 0, "y": 3 }, "id": 13, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.4.0-102000pre", "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "min(opcache_cache_full{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "", "range": true, "refId": "A" } ], "title": "Cache full", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 10 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 3, "w": 4, "x": 0, "y": 6 }, "id": 14, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "9.4.0-102000pre", "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "avg(opcache_memory_usage_wasted_memory{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "", "range": true, "refId": "A" } ], "title": "Memory wasted", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "percentage", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 40 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 8, "w": 4, "x": 0, "y": 9 }, "id": 6, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "pluginVersion": "9.4.0-102000pre", "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "avg(opcache_statistics_hit_rate{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "", "range": true, "refId": "A" } ], "title": "Hit rate", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 4, "y": 9 }, "id": 12, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "sum(opcache_statistics_num_cached_scripts{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "cached scripts", "range": true, "refId": "A" } ], "title": "Cached scripts", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "normal" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 14, "y": 9 }, "id": 8, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "editorMode": "code", "exemplar": true, "expr": "sum(opcache_statistics_num_cached_keys{job=\"opcache\", instance=~\"$host\"})", "interval": "", "legendFormat": "cached keys", "range": true, "refId": "A" } ], "title": "Cached keys", "type": "timeseries" } ], "refresh": "1m", "revision": 1, "schemaVersion": 38, "style": "dark", "tags": [ "php-fpm", "opcache" ], "templating": { "list": [ { "current": { "selected": true, "text": [ "emzprdback01", "emzprdback02", "emzprdfront01", "emzprdfront02", "emzprdfront03" ], "value": [ "emzprdback01", "emzprdback02", "emzprdfront01", "emzprdfront02", "emzprdfront03" ] }, "datasource": { "type": "prometheus", "uid": "yPhvsDP7k" }, "definition": "label_values(opcache_exporter_build_info{job=\"opcache\"}, instance)", "hide": 0, "includeAll": false, "label": "Host", "multi": true, "name": "host", "options": [], "query": { "query": "label_values(opcache_exporter_build_info{job=\"opcache\"}, instance)", "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-24h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Opcache", "uid": "suDqlaAnk", "version": 8, "weekStart": "" }