···
pidFile = "/run/longview.pid";
11
-
#location http://127.0.0.1/server-status?auto
10
+
apacheConf = optionalString (cfg.apacheStatusUrl != "") ''
11
+
location ${cfg.apacheStatusUrl}?auto
15
-
#password example_password
13
+
mysqlConf = optionalString (cfg.mysqlUser != "") ''
14
+
username ${cfg.mysqlUser}
15
+
password ${cfg.mysqlPassword}
18
-
#location http://127.0.0.1/nginx_status
17
+
nginxConf = optionalString (cfg.nginxStatusUrl != "") ''
18
+
location ${cfg.nginxStatusUrl}
···
38
+
example = "01234567-89AB-CDEF-0123456789ABCDEF";
Longview API key. To get this, look in Longview settings which
are found at https://manager.linode.com/longview/.
45
+
apacheStatusUrl = mkOption {
48
+
example = "http://127.0.0.1/server-status";
50
+
The Apache status page URL. If provided, Longview will
51
+
gather statistics from this location. This requires Apache
52
+
mod_status to be loaded and enabled.
56
+
nginxStatusUrl = mkOption {
59
+
example = "http://127.0.0.1/nginx_status";
61
+
The Nginx status page URL. Longview will gather statistics
62
+
from this URL. This requires the Nginx stub_status module to
63
+
be enabled and configured at the given location.
67
+
mysqlUser = mkOption {
71
+
The user for connecting to the MySQL database. If provided,
72
+
Longview will connect to MySQL and collect statistics about
77
+
mysqlPassword = mkOption {
80
+
The password corresponding to mysqlUser.