prometheus meta scraper

This commit is contained in:
Motiejus Jakštys 2023-09-06 16:38:21 +03:00
parent 49dcbd3d51
commit 810064ebbd

View File

@ -306,6 +306,10 @@
scrapeConfigs = let
port = builtins.toString myData.ports.exporters.node;
in [
{
job_name = "prometheus";
static_configs = [{targets = ["127.0.0.1:${toString myData.ports.prometheus}"];}];
}
{
job_name = "${config.networking.hostName}.${config.networking.domain}";
static_configs = [{targets = ["127.0.0.1:${port}"];}];