Skip to content

Commit

Permalink
Support nginx error logs in promtail scrape configs
Browse files Browse the repository at this point in the history
  • Loading branch information
karandit committed Aug 3, 2023
1 parent 1163122 commit 8815ea1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/wireguard-monitoring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,21 @@ in {
};
};

users.users.promtail.extraGroups = lib.mkIf config.services.nginx.enable [ "nginx" ];
# services.promtail.configuration.scrape_configs = [
# {
# job_name = "nginx-error-logs";
# static_configs = [{
# targets = [ "localhost" ];
# labels = {
# job = "nginx-error-logs";
# host = config.networking.hostName;
# __path__ = "/var/log/nginx/*error.log";
# };
# }];
# }
# ];

# wait for wireguard before starting node-exporter
systemd.services.prometheus-node-exporter.after = [ "wireguard-wg0.service" ];
};
Expand Down

0 comments on commit 8815ea1

Please sign in to comment.