"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":"yPhvsDP7k"
},
"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":"yPhvsDP7k"
},
"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":"yPhvsDP7k"
},
"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":"yPhvsDP7k"
},
"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":"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":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":"yPhvsDP7k"
},
"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":"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":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":"yPhvsDP7k"
},
"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":"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":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":"yPhvsDP7k"
},
"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":"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":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":"yPhvsDP7k"
},
"expr":"sum by (socket_path) (php_fpm_idle_processes{instance=~\"^$host\", socket_path=~\"$pool\"})",