Oops, now I know more how Prometheus works.
This commit is contained in:
parent
0e902d7156
commit
f771863d97
1 changed files with 4 additions and 1 deletions
|
|
@ -79,6 +79,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
|
enable = true;
|
||||||
|
port = 9001;
|
||||||
|
|
||||||
exporters.node = {
|
exporters.node = {
|
||||||
enabledCollectors = [
|
enabledCollectors = [
|
||||||
"ethtool"
|
"ethtool"
|
||||||
|
|
@ -87,7 +90,7 @@ in {
|
||||||
"tcpstat"
|
"tcpstat"
|
||||||
];
|
];
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9001;
|
port = 9002;
|
||||||
};
|
};
|
||||||
globalConfig.scrape_interval = "10s"; # "1m"
|
globalConfig.scrape_interval = "10s"; # "1m"
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue