add grafana stuff
This commit is contained in:
parent
7896091428
commit
a1c4c7cf07
4 changed files with 124 additions and 0 deletions
48
clients/quadraticserver/stats/prometheus.nix
Normal file
48
clients/quadraticserver/stats/prometheus.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
listenAddress = "127.0.0.7";
|
||||
|
||||
globalConfig.scrape_interval = "10s";
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
static_configs = [
|
||||
{
|
||||
targets = with config.services.prometheus.exporters.node; [
|
||||
"${toStringlistenAddress}:${toString port}"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
exporters.node = {
|
||||
enable = true;
|
||||
listenAddress = "127.0.0.3";
|
||||
enabledCollectors = [
|
||||
"systemd"
|
||||
"processes"
|
||||
];
|
||||
# disabledCollectors = [
|
||||
# "arp"
|
||||
# "bcache"
|
||||
# "bonding"
|
||||
# "btrfs"
|
||||
# "conntrack"
|
||||
# "dmi"
|
||||
# "edac"
|
||||
# "entropy"
|
||||
# "exec"
|
||||
# "fibrechannel"
|
||||
# "filefd"
|
||||
# "hwmon"
|
||||
# "infiniband"
|
||||
# "ipvs"
|
||||
# "mdadm"
|
||||
# "netclass"
|
||||
# ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue