Skip to content

Commit

Permalink
add enable option to exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed May 19, 2024
1 parent 5d7d2a3 commit 6c6a4ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos-module/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ in
};

options.services.prometheus.exporters.r09-receiver = with lib; {
enable = mkEnableOption (lib.mdDoc "the prometheus ${name} exporter");
port = mkOption {
type = types.port;
default = 9020;
Expand Down Expand Up @@ -107,6 +108,7 @@ in
};

# provide the prometheus exporter information for scraping
services.prometheus.exporters.r09-receiver.enable = true;
services.prometheus.exporters.r09-receiver.port = cfg.PrometheusPort;

users.groups."${cfg.group}" = { };
Expand Down

0 comments on commit 6c6a4ec

Please sign in to comment.