Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
options,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.services.prometheus.exporters.jitsi;
|
|
inherit (lib)
|
|
mkOption
|
|
types
|
|
escapeShellArg
|
|
concatStringsSep
|
|
;
|
|
in
|
|
{
|
|
port = 9700;
|
|
extraOpts = {
|
|
url = mkOption {
|
|
type = types.str;
|
|
default = "http://localhost:8080/colibri/stats";
|
|
description = ''
|
|
Jitsi Videobridge metrics URL to monitor.
|
|
This is usually /colibri/stats on port 8080 of the jitsi videobridge host.
|
|
'';
|
|
};
|
|
interval = mkOption {
|
|
type = types.str;
|
|
default = "30s";
|
|
example = "1min";
|
|
description = ''
|
|
How often to scrape new data
|
|
'';
|
|
};
|
|
};
|
|
serviceOpts = {
|
|
serviceConfig = {
|
|
ExecStart = ''
|
|
${pkgs.prometheus-jitsi-exporter}/bin/jitsiexporter \
|
|
-url ${escapeShellArg cfg.url} \
|
|
-host ${cfg.listenAddress} \
|
|
-port ${toString cfg.port} \
|
|
-interval ${toString cfg.interval} \
|
|
${concatStringsSep " \\\n " cfg.extraFlags}
|
|
'';
|
|
};
|
|
};
|
|
}
|