1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-14 11:37:31 +00:00
monitoring-mixins-website/assets/haproxy/dashboards/haproxy-server.json
Vitaly Zhuravlev b3b400137a Add jsonnet-libs mixins
Add blackbox exporter
Add mysql exporter
2024-05-04 12:01:41 +00:00

599 lines
16 KiB
JSON

{
"editable": true,
"graphTooltip": 0,
"panels": [
{
"collapse": true,
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 0,
"showTitle": true,
"title": "Requests",
"titleSize": "h6",
"type": "row"
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "HTTP responses per second. There will be no data for servers using tcp mode.",
"fieldConfig": {
"defaults": {
"unit": "reqps"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 0
},
"hiddenSeries": false,
"id": 1,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(haproxy_server_http_responses_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}:{{code}}",
"refID": "A"
}
],
"title": "HTTP Response",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Attempted connections per second",
"fieldConfig": {
"defaults": {
"unit": "connps"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 0
},
"hiddenSeries": false,
"id": 2,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(haproxy_server_connection_attempts_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}",
"refID": "A"
}
],
"title": "Connection",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"unit": "bytes"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 0
},
"hiddenSeries": false,
"id": 3,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "/.*out.*/",
"transform": "negative-Y"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(haproxy_server_bytes_in_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}:{{server}}:in",
"refID": "A"
},
{
"expr": "rate(haproxy_server_bytes_out_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}:{{server}}:out",
"refID": "B"
}
],
"title": "Bytes in/out",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph"
},
{
"collapse": true,
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 1
},
"id": 4,
"showTitle": true,
"title": "Errors",
"titleSize": "h6",
"type": "row"
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Response errors per second",
"fieldConfig": {
"defaults": {
"unit": "errps"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 1
},
"hiddenSeries": false,
"id": 5,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "rate(haproxy_server_response_errors_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}",
"refID": "A"
}
],
"title": "HTTP Response",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Connection errors per second",
"fieldConfig": {
"defaults": {
"unit": "errps"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 1
},
"hiddenSeries": false,
"id": 6,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "rate(haproxy_server_connection_errors_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}",
"refID": "A"
}
],
"title": "Connection",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Internal errors per second",
"fieldConfig": {
"defaults": {
"unit": "errps"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 16,
"y": 1
},
"hiddenSeries": false,
"id": 7,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "rate(haproxy_server_internal_errors_total{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}[$__rate_interval])",
"legendFormat": "{{proxy}}",
"refID": "A"
}
],
"title": "Internal",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
},
{
"collapse": true,
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 2
},
"id": 8,
"showTitle": true,
"title": "Duration",
"titleSize": "h6",
"type": "row"
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Average duration for last 1024 succesful connections",
"fieldConfig": {
"defaults": {
"unit": "s"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 0,
"y": 2
},
"hiddenSeries": false,
"id": 9,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "haproxy_server_queue_time_average_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:avg queue time",
"refID": "A"
},
{
"expr": "haproxy_server_connect_time_average_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:avg connect time",
"refID": "B"
},
{
"expr": "haproxy_server_response_time_average_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:avg response time",
"refID": "C"
},
{
"expr": "haproxy_server_total_time_average_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:avg total time",
"refID": "D"
}
],
"title": "Average duration",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
},
{
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Max duration for last 1024 succesful connections",
"fieldConfig": {
"defaults": {
"unit": "s"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 8,
"x": 8,
"y": 2
},
"hiddenSeries": false,
"id": 10,
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"percentage": false,
"points": false,
"renderer": "flot",
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "haproxy_server_max_queue_time_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:max queue time",
"refID": "A"
},
{
"expr": "haproxy_server_max_connect_time_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:max connect time",
"refID": "B"
},
{
"expr": "haproxy_server_max_response_time_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:max response time",
"refID": "C"
},
{
"expr": "haproxy_server_max_total_time_seconds{instance=~\"$instance\",job=~\"$job\",proxy=~\"$backend\",server=~\"$server\"}",
"legendFormat": "{{proxy}}:max total time",
"refID": "D"
}
],
"title": "Max duration",
"tooltip": {
"value_type": "individual"
},
"transparent": false,
"type": "graph",
"yaxes": [
{
"min": 0
},
{
"min": 0
}
]
}
],
"schemaVersion": 25,
"style": "dark",
"tags": [ ],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "prometheus",
"value": "prometheus"
},
"hide": 0,
"includeAll": false,
"label": "Data Source",
"multi": false,
"name": "datasource",
"query": "prometheus",
"refresh": 1,
"skipUrlSync": false,
"type": "datasource"
},
{
"datasource": "$datasource",
"definition": "label_values(haproxy_process_start_time_seconds, job)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "job",
"query": "label_values(haproxy_process_start_time_seconds, job)",
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query",
"useTags": false
},
{
"datasource": "$datasource",
"definition": "label_values(haproxy_process_start_time_seconds{job=~\"$job\"}, instance)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "instance",
"query": "label_values(haproxy_process_start_time_seconds{job=~\"$job\"}, instance)",
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query",
"useTags": false
},
{
"datasource": "$datasource",
"definition": "label_values(haproxy_backend_status{job=~\"$job\",instance=~\"$instance\"}, proxy)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "backend",
"query": "label_values(haproxy_backend_status{job=~\"$job\",instance=~\"$instance\"}, proxy)",
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query",
"useTags": false
},
{
"datasource": "$datasource",
"definition": "label_values(haproxy_server_status{job=~\"$job\",instance=~\"$instance\"}, server)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "server",
"query": "label_values(haproxy_server_status{job=~\"$job\",instance=~\"$instance\"}, server)",
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"hidden": false,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"title": "HAProxy / Server",
"uid": "HAProxyServer"
}