"query":"select mean(\"active_servers\") AS active_servers, mean(\"backup_servers\") AS backup_servers FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Sum HTTP 2xx",
"queries":[
{
"query":"SELECT non_negative_derivative(last(\"http_response.2xx\"), 1s) AS \"2xx\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Sum HTTP 4xx",
"queries":[
{
"query":"SELECT non_negative_derivative(last(\"http_response.4xx\"), 1s) AS \"4xx\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Sum HTTP 5xx",
"queries":[
{
"query":"SELECT non_negative_derivative(last(\"http_response.5xx\"), 1s) AS \"5xx\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
"query":"SELECT mean(\"req_rate\") AS \"requests_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Frontend Sessions/Second ",
"queries":[
{
"query":"SELECT non_negative_derivative(max(\"rate\")) AS \"sessions_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Frontend Session Usage %",
"queries":[
{
"query":"SELECT non_negative_derivative(max(\"scur\")) / non_negative_derivative(max(\"slim\")) * 100 AS \"session_usage_percent\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
"query":"SELECT non_negative_derivative(max(\"dreq\")) AS \"denials_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
"query":"SELECT non_negative_derivative(max(\"ereq\")) AS \"errors_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Frontend Bytes/Second",
"queries":[
{
"query":"SELECT non_negative_derivative(max(\"bin\")) AS \"bytes_in_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
},
{
"query":"SELECT non_negative_derivative(max(\"bout\")) AS \"bytes_out_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Backend Average Response Time (ms)",
"queries":[
{
"query":"SELECT max(\"rtime\") AS \"response_time\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
"query":"SELECT non_negative_derivative(max(\"econ\")) AS \"errors_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
"query":"SELECT non_negative_derivative(max(\"qcur\")) AS \"queued_per_second\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
},
{
"w":4,
"h":4,
"name":"HAProxy – Backend Average Request Queue Time (ms)",
"queries":[
{
"query":"SELECT max(\"qtime\") AS \"queue_time\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
"query":"SELECT max(\"eresp\") AS \"error_response_rate\" FROM \":db:\".\":rp:\".\"haproxy\" WHERE time > :dashboardTime: AND \"host\" = :host: GROUP BY time(:interval:)"
}
],
"type":"line",
"axes":{
"x":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
},
"y2":{
"prefix":"",
"suffix":"",
"base":"10",
"scale":"linear",
"label":"",
"bounds":["",""]
}
}
}
],
"templates":[
{
"tempVar":":host:",
"id":"",
"type":"tagValues",
"label":"",
"values":[],
"query":{
"influxql":"SHOW TAG VALUES ON :database: FROM :measurement: WITH KEY=:tagKey:",