···
pidFile = "/run/longview.pid";
+
apacheConf = optionalString (cfg.apacheStatusUrl != "") ''
+
location ${cfg.apacheStatusUrl}?auto
+
mysqlConf = optionalString (cfg.mysqlUser != "") ''
+
username ${cfg.mysqlUser}
+
password ${cfg.mysqlPassword}
+
nginxConf = optionalString (cfg.nginxStatusUrl != "") ''
+
location ${cfg.nginxStatusUrl}
···
+
example = "01234567-89AB-CDEF-0123456789ABCDEF";
Longview API key. To get this, look in Longview settings which
are found at https://manager.linode.com/longview/.
+
apacheStatusUrl = mkOption {
+
example = "http://127.0.0.1/server-status";
+
The Apache status page URL. If provided, Longview will
+
gather statistics from this location. This requires Apache
+
mod_status to be loaded and enabled.
+
nginxStatusUrl = mkOption {
+
example = "http://127.0.0.1/nginx_status";
+
The Nginx status page URL. Longview will gather statistics
+
from this URL. This requires the Nginx stub_status module to
+
be enabled and configured at the given location.
+
The user for connecting to the MySQL database. If provided,
+
Longview will connect to MySQL and collect statistics about
+
mysqlPassword = mkOption {
+
The password corresponding to mysqlUser.