Skip to content

Commit

Permalink
telegraf: add nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Aug 14, 2023
1 parent 783f596 commit dbc4816
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/mixins/telegraf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ in
];
prometheus.metric_version = 2;
kernel_vmstat = { };
nginx.urls = lib.mkIf config.services.nginx.statusPage [
"http://localhost/nginx_status"
];
smart = lib.mkIf (!isVM) {
path_smartctl = pkgs.writeShellScript "smartctl" ''
exec /run/wrappers/bin/sudo ${pkgs.smartmontools}/bin/smartctl "$@"
Expand Down

0 comments on commit dbc4816

Please sign in to comment.