Fixed some prometheus settings.
This commit is contained in:
parent
2665a2c0e5
commit
f7f0039f9c
1 changed files with 27 additions and 0 deletions
|
|
@ -97,6 +97,33 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.prometheus = {
|
||||||
|
enable = true;
|
||||||
|
port = 9001;
|
||||||
|
|
||||||
|
exporters.node = {
|
||||||
|
enabledCollectors = [
|
||||||
|
"ethtool"
|
||||||
|
"softirqs"
|
||||||
|
"systemd"
|
||||||
|
"tcpstat"
|
||||||
|
];
|
||||||
|
enable = true;
|
||||||
|
port = 9002;
|
||||||
|
};
|
||||||
|
globalConfig.scrape_interval = "5s"; # "1m"
|
||||||
|
scrapeConfigs = [
|
||||||
|
{
|
||||||
|
job_name = "traefik";
|
||||||
|
static_configs = [
|
||||||
|
{
|
||||||
|
targets = ["localhost:8080"];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# See: https://github.com/grafana/alloy/blob/bbe11b0f6a3bd3391108b2d27122c654c535dd8d/docs/sources/set-up/migrate/from-promtail.md
|
# See: https://github.com/grafana/alloy/blob/bbe11b0f6a3bd3391108b2d27122c654c535dd8d/docs/sources/set-up/migrate/from-promtail.md
|
||||||
environment.etc."alloy/config.alloy" = {
|
environment.etc."alloy/config.alloy" = {
|
||||||
text = ''
|
text = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue