prometheus meta scraper
This commit is contained in:
parent
49dcbd3d51
commit
810064ebbd
@ -306,6 +306,10 @@
|
|||||||
scrapeConfigs = let
|
scrapeConfigs = let
|
||||||
port = builtins.toString myData.ports.exporters.node;
|
port = builtins.toString myData.ports.exporters.node;
|
||||||
in [
|
in [
|
||||||
|
{
|
||||||
|
job_name = "prometheus";
|
||||||
|
static_configs = [{targets = ["127.0.0.1:${toString myData.ports.prometheus}"];}];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
job_name = "${config.networking.hostName}.${config.networking.domain}";
|
job_name = "${config.networking.hostName}.${config.networking.domain}";
|
||||||
static_configs = [{targets = ["127.0.0.1:${port}"];}];
|
static_configs = [{targets = ["127.0.0.1:${port}"];}];
|
||||||
|
Loading…
Reference in New Issue
Block a user