Skip to content

Commit

Permalink
Set intervalFactor to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo F committed Dec 17, 2021
1 parent e4a93ca commit 68e95ff
Show file tree
Hide file tree
Showing 6 changed files with 742 additions and 742 deletions.
16 changes: 8 additions & 8 deletions prometheus/apache-exporter-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
{
"expr": "apache_uptime_seconds_total{instance=~\"$host:$port\"}",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"refId": "A",
"step": 240
}
Expand Down Expand Up @@ -173,15 +173,15 @@
{
"expr": "count(apache_up{instance=~\"$host:$port\"} == 1)",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Apache Up",
"refId": "A",
"step": 240
},
{
"expr": "scalar(count(apache_up{instance=~\"$host:$port\"} == 0))",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Apache Down",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -271,7 +271,7 @@
{
"expr": "rate(apache_sent_kilobytes_total{instance=~\"$host:$port\"}[5m])",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Kilobytes Sent",
"refId": "A",
"step": 240
Expand Down Expand Up @@ -349,7 +349,7 @@
{
"expr": "rate(apache_accesses_total{instance=~\"$host:$port\"}[5m])",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Accesses",
"refId": "A",
"step": 240
Expand Down Expand Up @@ -440,7 +440,7 @@
{
"expr": "apache_scoreboard{instance=~\"$host:$port\"}",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "{{ state }}",
"refId": "A",
"step": 240
Expand Down Expand Up @@ -530,7 +530,7 @@
{
"expr": "apache_workers{instance=~\"$host:$port\"}\n",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "{{ state }}",
"refId": "A",
"step": 240
Expand Down Expand Up @@ -608,7 +608,7 @@
{
"expr": "apache_cpuload{instance=~\"$host:$port\"}",
"format": "time_series",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Load",
"refId": "A",
"step": 240
Expand Down
66 changes: 33 additions & 33 deletions prometheus/haproxy-2-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,21 +303,21 @@
{
"expr": "sum(rate(haproxy_frontend_bytes_out_total{proxy=~\"$frontend\",instance=\"$host\"}[$__rate_interval])*8) by (instance)",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "OUT Front",
"refId": "B",
"step": 240
},
{
"expr": "sum(rate(haproxy_backend_bytes_in_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])*8) by (instance)",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "IN Back",
"refId": "C",
"step": 240
},
{
"expr": "sum(rate(haproxy_backend_bytes_out_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])*8) by (instance)",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "OUT Back",
"refId": "D",
"step": 240
Expand Down Expand Up @@ -587,23 +587,23 @@
{
"expr": "sum(rate(haproxy_frontend_requests_denied_total{proxy=~\"$frontend\",instance=\"$host\"}[$__rate_interval])) by (instance)",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Front request denied",
"refId": "F",
"step": 240
},
{
"expr": "sum(rate(haproxy_backend_redispatch_warnings_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])) by (instance)",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Back redispatch warnings",
"refId": "D",
"step": 240
},
{
"expr": "sum(rate(haproxy_backend_retry_warnings_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])) by (instance)",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Back retry warnings",
"refId": "E",
"step": 240
Expand All @@ -620,7 +620,7 @@
{
"expr": "sum(haproxy_backend_current_queue{proxy=~\"$backend\",instance=\"$host\"}) by (instance)",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Back queued requests",
"refId": "G",
"step": 240
Expand Down Expand Up @@ -883,15 +883,15 @@
"expr": "count(haproxy_frontend_status{instance=\"$host\"} == 1)",
"hide": false,
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Front Up",
"refId": "A",
"step": 240
},
{
"expr": "count(haproxy_backend_status{instance=\"$host\"} ==1)",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Back Up",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -1011,7 +1011,7 @@
"targets": [
{
"expr": "time() - haproxy_process_start_time_seconds{instance=\"$host\"}",
"intervalFactor": 2,
"intervalFactor": 1,
"refId": "A",
"step": 240
}
Expand Down Expand Up @@ -1117,7 +1117,7 @@
{
"expr": "rate(haproxy_frontend_bytes_out_total{proxy=~\"$frontend\",instance=\"$host\"}[$__rate_interval])*8",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "OUT {{ proxy }}",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -1242,7 +1242,7 @@
{
"expr": "rate(haproxy_backend_bytes_out_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])*8",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "OUT {{ proxy }}",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -1492,7 +1492,7 @@
{
"expr": "rate(haproxy_backend_connection_errors_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Error {{ proxy }}",
"refId": "A",
"step": 240
Expand Down Expand Up @@ -1711,7 +1711,7 @@
{
"expr": "rate(haproxy_backend_connection_reuses_total{proxy=~\"$backend\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Reuses {{ proxy }}",
"refId": "C",
"step": 240
Expand Down Expand Up @@ -2070,7 +2070,7 @@
{
"expr": "rate(haproxy_backend_requests_denied_total{proxy=~\"$frontend\", instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Denied {{ proxy }}",
"refId": "C",
"step": 240
Expand Down Expand Up @@ -2199,15 +2199,15 @@
{
"expr": "rate(haproxy_frontend_request_errors_total{proxy=~\"$frontend\", instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Error {{ proxy }}",
"refId": "B",
"step": 240
},
{
"expr": "rate(haproxy_frontend_requests_denied_total{proxy=~\"$frontend\", instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Denied {{ proxy }}",
"refId": "C",
"step": 240
Expand Down Expand Up @@ -2558,15 +2558,15 @@
{
"expr": "rate(haproxy_backend_retry_warnings_total{proxy=~\"$backend\", instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Retry {{ proxy }}",
"refId": "B",
"step": 240
},
{
"expr": "rate(haproxy_backend_response_errors_total{proxy=~\"$backend\", instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Error {{ proxy }}",
"refId": "C",
"step": 240
Expand Down Expand Up @@ -4263,7 +4263,7 @@
{
"expr": "haproxy_backend_limit_sessions{proxy=~\"$backend\",instance=\"$host\"}",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Limit {{ proxy }}",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -4380,7 +4380,7 @@
{
"expr": "haproxy_frontend_limit_sessions{proxy=~\"$frontend\",instance=\"$host\"}",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Limit {{ proxy }}",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -4600,7 +4600,7 @@
{
"expr": "haproxy_frontend_limit_session_rate{proxy=~\"$frontend\",instance=\"$host\"}",
"interval": "",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Limit {{ proxy }}",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -7177,7 +7177,7 @@
"expr": "rate(haproxy_server_bytes_out_total{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])*8",
"hide": false,
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "OUT {{ proxy }} / {{ server }}",
"refId": "B",
"step": 240
Expand Down Expand Up @@ -7292,15 +7292,15 @@
{
"expr": "rate(haproxy_server_used_connections_current{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "In use {{ proxy }} / {{ server }}{{ proxy }}",
"refId": "A",
"step": 240
},
{
"expr": "rate(haproxy_server_idle_connections_current{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Estimated {{ proxy }} / {{ server }}{{ proxy }}",
"refId": "C",
"step": 240
Expand Down Expand Up @@ -7425,7 +7425,7 @@
{
"expr": "rate(haproxy_server_connection_errors_total{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Error {{ proxy }} / {{ server }}",
"refId": "A",
"step": 240
Expand Down Expand Up @@ -7534,7 +7534,7 @@
{
"expr": "rate(haproxy_server_connection_reuses_total{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Reuses {{ proxy }} / {{ server }}",
"refId": "C",
"step": 240
Expand Down Expand Up @@ -7654,31 +7654,31 @@
{
"expr": "rate(haproxy_server_idle_connections_current{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Available idle connections {{ proxy }} / {{ server }}",
"refId": "C",
"step": 240
},
{
"expr": "rate(haproxy_server_idle_connections_limit{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Limit available idle connections {{ proxy }} / {{ server }}{{ proxy }}",
"refId": "A",
"step": 240
},
{
"expr": "rate(haproxy_server_safe_idle_connections_current{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Number of safe idle connections {{ proxy }} / {{ server }}{{ proxy }}",
"refId": "B",
"step": 240
},
{
"expr": "rate(haproxy_server_unsafe_idle_connections_current{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Number of unsafe idle connections {{ proxy }} / {{ server }}{{ proxy }}",
"refId": "D",
"step": 240
Expand Down Expand Up @@ -7907,7 +7907,7 @@
"expr": "rate(haproxy_server_redispatch_warnings_total{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"hide": false,
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Redispatch {{ proxy }} / {{ server }}",
"refId": "B",
"step": 240
Expand All @@ -7926,7 +7926,7 @@
"expr": "rate(haproxy_server_response_errors_total{proxy=~\"$backend\",server=~\"$server\",instance=\"$host\"}[$__rate_interval])",
"hide": false,
"interval": "$interval",
"intervalFactor": 2,
"intervalFactor": 1,
"legendFormat": "Error {{ proxy }} / {{ server }}",
"refId": "C",
"step": 240
Expand Down
Loading

0 comments on commit 68e95ff

Please sign in to comment.