services.prometheus.scrapeConfigs.*.dockerswarm_sd_configs.*.role
NixOS option
Role of the targets to retrieve. Must be services, tasks, or nodes.
type: one of "services", "tasks", "nodes"declared in: nixos/modules/services/monitoring/prometheus/default.nixView source on NixOS/nixpkgs →