Add prometheus node_exporter scraper

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-15 10:57:49 +01:00
parent 8432ca4551
commit 3142447046
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
2 changed files with 14 additions and 4 deletions

View file

@ -1,6 +1,16 @@
{ ... }: {
{ config, ... }: {
services.prometheus = {
enable = true;
port = 9001;
scrapeConfigs = [
{
job_name = "node_exporter";
static_configs = [{
targets = [
"${config.services.prometheus.exporters.node.listenAddress}:${toString config.services.prometheus.exporters.node.port}"
];
}];
}
];
};
}

View file

@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1642167199,
"narHash": "sha256-KvwIaVwoa90jn8E0PhHlpnLxRHQFKb7nfpE0t8KCokU=",
"lastModified": 1642239678,
"narHash": "sha256-dyYnB+/0ZzzbLgieaSN5HxQ1DwKwk+3mwHjSi883b8Y=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "790b76e23d6ec303916e190b5400b27e7ca82620",
"rev": "22a2be05ea9f9563f4a4eadb670a1e38adecd1ca",
"type": "github"
},
"original": {