{ "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" } ] }, "description": "PHP-FPM aggregated data for multiple pools.", "editable": true, "fiscalYearStartMonth": 0, "gnetId": 5714, "graphTooltip": 1, "id": 6, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "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 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 3, "x": 0, "y": 0 }, "id": 23, "links": [], "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": "{{ grafana_datasource_uid }}" }, "expr": "min(php_fpm_up{instance=~\"^$host\", socket_path=~\"$pool\"})", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "\{\{socket_path\}\}", "metric": "php_fpm_start_time_seconds", "refId": "A", "step": 1 } ], "title": "Status", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "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": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "percentunit" }, "overrides": [] }, "gridPos": { "h": 5, "w": 21, "x": 3, "y": 0 }, "id": 22, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum by (socket_path) (php_fpm_active_processes{instance=~\"^$host\", socket_path=~\"$pool\"}) / sum by (socket_path) ( php_fpm_max_active_processes{instance=~\"^$host\", socket_path=~\"$pool\"})", "format": "time_series", "intervalFactor": 1, "legendFormat": "\{\{ socket_path \}\}", "refId": "A" } ], "title": "Pool Usage", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "description": "Total number of accepted connections", "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": "smooth", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "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": 7, "w": 24, "x": 0, "y": 5 }, "id": 1, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum by (socket_path) (rate(php_fpm_accepted_connections_total{instance=~\"^$host\", socket_path=~\"$pool\"} [$__rate_interval]))", "format": "time_series", "interval": "", "intervalFactor": 2, "legendFormat": "\{\{socket_path\}\}", "refId": "A", "step": 2 } ], "title": "Accepted Connections Rate", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "description": "Number of requests that exceed request_slowlog_timeout", "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": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 12 }, "id": 8, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum by (socket_path) (rate(php_fpm_slow_requests{instance=~\"^$host\", socket_path=~\"$pool\"} [$__rate_interval]))", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 2, "legendFormat": "\{\{ socket_path \}\} ", "refId": "A", "step": 2 } ], "title": "Slow Requests Rate", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "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": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 19 }, "id": 18, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum(php_fpm_active_processes{instance=~\"^$host\", socket_path=~\"$pool\"}) by (socket_path )", "format": "time_series", "instant": false, "interval": "", "intervalFactor": 2, "legendFormat": "\{\{ socket_path \}\} ", "metric": "php_fpm_active_processes", "refId": "B", "step": 2 } ], "title": "Active processes", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "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": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 27 }, "id": 2, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum by (socket_path) (php_fpm_max_active_processes{instance=~\"^$host\", socket_path=~\"$pool\"})", "format": "time_series", "hide": false, "interval": "", "intervalFactor": 2, "legendFormat": "\{\{ socket_path \}\} ", "refId": "A", "step": 2 } ], "title": "Max active processes", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "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": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 35 }, "id": 20, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum by (socket_path) (php_fpm_max_children_reached{instance=~\"^$host\", socket_path=~\"$pool\"})", "format": "time_series", "hide": false, "intervalFactor": 2, "legendFormat": "\{\{ socket_path \}\} ", "metric": "php_fpm_max_children_reached", "refId": "D", "step": 2 } ], "title": "Max children reached", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "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": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 24, "x": 0, "y": 43 }, "id": 19, "links": [], "options": { "legend": { "calcs": [ "last", "mean" ], "displayMode": "table", "placement": "right", "showLegend": true, "sortBy": "Mean", "sortDesc": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "9.0.0-beta2", "targets": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "expr": "sum by (socket_path) (php_fpm_idle_processes{instance=~\"^$host\", socket_path=~\"$pool\"})", "format": "time_series", "interval": "", "intervalFactor": 2, "legendFormat": "\{\{ socket_path \}\} ", "metric": "php_fpm_idle_processes", "refId": "C", "step": 2 } ], "title": "Idle processes", "type": "timeseries" } ], "refresh": "1m", "revision": 1, "schemaVersion": 38, "style": "dark", "tags": [ "php-fpm" ], "templating": { "list": [ { "allFormat": "glob", "current": { "selected": true, "text": "All", "value": "$__all" }, "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "definition": "", "hide": 0, "includeAll": false, "label": "Host", "multi": true, "name": "host", "options": [], "query": { "query": "label_values(php_fpm_accepted_connections_total, instance)", "refId": "prometheus-Host-Variable-Query" }, "refresh": 1, "regex": "{{ grafana_dashboard_regex | default('') }}", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": { "selected": false, "text": "All", "value": "$__all" }, "datasource": { "type": "prometheus", "uid": "{{ grafana_datasource_uid }}" }, "definition": "label_values(php_fpm_accepted_connections_total{instance=~\"$host\"}, socket_path)", "hide": 0, "includeAll": true, "label": "Pool", "multi": true, "name": "pool", "options": [], "query": { "query": "label_values(php_fpm_accepted_connections_total{instance=~\"$host\"}, socket_path)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-24h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "browser", "title": "PHP-FPM", "uid": "D6TvmAZik", "version": 7, "weekStart": "" }