Configure Promethus Scrape Intefval
This commit is contained in:
parent
058fc0b667
commit
ff8ad94913
1 changed files with 15 additions and 2 deletions
|
|
@ -61,8 +61,9 @@ in {
|
|||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
http_port = 3005;
|
||||
enforce_domain = true;
|
||||
http_addr = "100.71.227.33";
|
||||
http_port = 3000;
|
||||
#enforce_domain = true;
|
||||
enable_gzip = true;
|
||||
domain = "grafana.prg-radio.org";
|
||||
|
||||
|
|
@ -87,6 +88,18 @@ in {
|
|||
"systemd"
|
||||
"tcpstat"
|
||||
];
|
||||
|
||||
globalConfig.scrape_interval = "10s"; # "1m"
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
static_configs = [
|
||||
{
|
||||
targets = ["localhost:${toString config.services.prometheus.exporters.node.port}"];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
#services.loki = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue