Merge pull request #303914 from SuperSandro2000/prom-port-type

nixos/prometheus: use ports type

authored by Sandro and committed by GitHub f712cc6b e0c9ecbd

+12 -12
+12 -12
nixos/modules/services/monitoring/prometheus/default.nix
··· 537 537 Refresh interval to re-read the instance list. 538 538 ''; 539 539 540 - port = mkDefOpt types.int "80" '' 540 + port = mkDefOpt types.port "80" '' 541 541 The port to scrape metrics from. If using the public IP 542 542 address, this must instead be specified in the relabeling 543 543 rule. ··· 609 609 }; 610 610 611 611 promTypes.digitalocean_sd_config = mkSdConfigModule { 612 - port = mkDefOpt types.int "80" '' 612 + port = mkDefOpt types.port "80" '' 613 613 The port to scrape metrics from. 614 614 ''; 615 615 ··· 626 626 ''; 627 627 }; 628 628 629 - port = mkDefOpt types.int "80" '' 629 + port = mkDefOpt types.port "80" '' 630 630 The port to scrape metrics from, when `role` is nodes, and for discovered 631 631 tasks and services that don't have published ports. 632 632 ''; ··· 687 687 The type of DNS query to perform. One of SRV, A, or AAAA. 688 688 ''; 689 689 690 - port = mkOpt types.int '' 690 + port = mkOpt types.port '' 691 691 The port number used if the query type is not SRV. 692 692 ''; 693 693 ··· 731 731 Refresh interval to re-read the instance list. 732 732 ''; 733 733 734 - port = mkDefOpt types.int "80" '' 734 + port = mkDefOpt types.port "80" '' 735 735 The port to scrape metrics from. If using the public IP 736 736 address, this must instead be specified in the relabeling 737 737 rule. ··· 840 840 ''; 841 841 }; 842 842 843 - port = mkDefOpt types.int "80" '' 843 + port = mkDefOpt types.port "80" '' 844 844 The port to scrape metrics from. 845 845 ''; 846 846 ··· 999 999 Refresh interval to re-read the instance list. 1000 1000 ''; 1001 1001 1002 - port = mkDefOpt types.int "80" '' 1002 + port = mkDefOpt types.port "80" '' 1003 1003 The port to scrape metrics from. If using the public IP address, this must 1004 1004 instead be specified in the relabeling rule. 1005 1005 ''; ··· 1007 1007 }; 1008 1008 1009 1009 promTypes.linode_sd_config = mkSdConfigModule { 1010 - port = mkDefOpt types.int "80" '' 1010 + port = mkDefOpt types.port "80" '' 1011 1011 The port to scrape metrics from. 1012 1012 ''; 1013 1013 ··· 1148 1148 Refresh interval to re-read the instance list. 1149 1149 ''; 1150 1150 1151 - port = mkDefOpt types.int "80" '' 1151 + port = mkDefOpt types.port "80" '' 1152 1152 The port to scrape metrics from. If using the public IP address, this must 1153 1153 instead be specified in the relabeling rule. 1154 1154 ''; ··· 1193 1193 Refresh interval to re-read the resources list. 1194 1194 ''; 1195 1195 1196 - port = mkDefOpt types.int "80" '' 1196 + port = mkDefOpt types.port "80" '' 1197 1197 The port to scrape metrics from. 1198 1198 ''; 1199 1199 }; ··· 1231 1231 ''; 1232 1232 }; 1233 1233 1234 - port = mkDefOpt types.int "80" '' 1234 + port = mkDefOpt types.port "80" '' 1235 1235 The port to scrape metrics from. 1236 1236 ''; 1237 1237 ··· 1307 1307 If omitted all containers owned by the requesting account are scraped. 1308 1308 ''; 1309 1309 1310 - port = mkDefOpt types.int "9163" '' 1310 + port = mkDefOpt types.port "9163" '' 1311 1311 The port to use for discovery and metric scraping. 1312 1312 ''; 1313 1313