Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit b1a20da

Browse files
committed
Add ability to collect Apache SSL metrics
1 parent 39f1c86 commit b1a20da

2 files changed

Lines changed: 300 additions & 143 deletions

File tree

apache_status/conf.d/apache_status.pyconf

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ modules {
33
name = "apache_status"
44
language = "python"
55
param url {
6-
value = "http://localhost/server-status?auto"
6+
value = "http://localhost:7070/server-status"
77
}
88

99
param virtual_host {
@@ -15,11 +15,16 @@ modules {
1515
value = "apache"
1616
}
1717

18+
param collect_ssl {
19+
value = False
20+
}
21+
22+
1823
}
1924
}
2025

2126
collection_group {
22-
collect_every = 20
27+
collect_every = 30
2328
time_threshold = 90
2429

2530
metric {
@@ -90,13 +95,21 @@ collection_group {
9095

9196
metric {
9297
name = "ap_rps"
93-
title = "Request per second"
98+
title = "Requests per second"
9499
value_threshold = 0.0
95100
}
96-
101+
97102
metric {
98-
name = "ap_requests"
99-
title = "Requests"
103+
name = "ap_cpuload"
104+
title = "Pct of time CPU utilized"
100105
value_threshold = 0.0
101-
}
106+
}
107+
108+
# Uncomment if you are collecting SSL metrics
109+
# metric {
110+
# name_match = "apssl_(.+)"
111+
# value_threshold = 0.0
112+
# }
113+
114+
102115
}

0 commit comments

Comments
 (0)