10 cfg = config.services.prometheus.exporters.artifactory;
11 inherit (lib) mkOption types concatStringsSep;
16 scrapeUri = mkOption {
18 default = "http://localhost:8081/artifactory";
20 URI on which to scrape JFrog Artifactory.
24 artiUsername = mkOption {
27 Username for authentication against JFrog Artifactory API.
31 artiPassword = mkOption {
35 Password for authentication against JFrog Artifactory API.
36 One of the password or access token needs to be set.
40 artiAccessToken = mkOption {
44 Access token for authentication against JFrog Artifactory API.
45 One of the password or access token needs to be set.
52 ${pkgs.prometheus-artifactory-exporter}/bin/artifactory_exporter \
53 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
54 --artifactory.scrape-uri ${cfg.scrapeUri} \
55 ${concatStringsSep " \\\n " cfg.extraFlags}
58 "ARTI_USERNAME=${cfg.artiUsername}"
59 "ARTI_PASSWORD=${cfg.artiPassword}"
60 "ARTI_ACCESS_TOKEN=${cfg.artiAccessToken}"