Add prometheus node_exporter scraper
This commit is contained in:
parent
8432ca4551
commit
3142447046
2 changed files with 14 additions and 4 deletions
|
@ -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}"
|
||||
];
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue