10 cfg = config.services.prometheus.exporters.json;
22 configFile = mkOption {
25 Path to configuration file.
32 ${pkgs.prometheus-json-exporter}/bin/json_exporter \
33 --config.file ${escapeShellArg cfg.configFile} \
34 --web.listen-address="${cfg.listenAddress}:${toString cfg.port}" \
35 ${concatStringsSep " \\\n " cfg.extraFlags}
40 (mkRemovedOptionModule [ "url" ] ''
41 This option was removed. The URL of the endpoint serving JSON
42 must now be provided to the exporter by prometheus via the url
45 In prometheus a scrape URL would look like this:
47 http://some.json-exporter.host:7979/probe?target=https://example.com/some/json/endpoint
49 For more information, take a look at the official documentation
50 (https://github.com/prometheus-community/json_exporter) of the json_exporter.
53 options.warnings = options.warnings;
54 options.assertions = options.assertions;