reformat and restructure
This commit is contained in:
parent
cbb12c73e7
commit
dc6b3805f6
20 changed files with 173 additions and 158 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
services.prometheus = {
|
||||
|
|
@ -11,12 +16,16 @@
|
|||
scrape_interval = "15s";
|
||||
scheme = "https";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
static_configs = [{ targets = [ "matrix.berlin.ccc.de:443" ]; }];
|
||||
static_configs = [ { targets = [ "matrix.berlin.ccc.de:443" ]; } ];
|
||||
}
|
||||
{
|
||||
job_name = "postgres";
|
||||
scrape_interval = "15s";
|
||||
static_configs = [{ targets = [ "sql.berlin.ccc.de:${toString config.services.prometheus.exporters.postgres.port}" ]; }];
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "sql.berlin.ccc.de:${toString config.services.prometheus.exporters.postgres.port}" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "node";
|
||||
|
|
@ -53,7 +62,7 @@
|
|||
scrape_interval = "15s";
|
||||
static_configs = [
|
||||
{
|
||||
targets = ["ellsberg.berlin.ccc.de"];
|
||||
targets = [ "ellsberg.berlin.ccc.de" ];
|
||||
}
|
||||
];
|
||||
metrics_path = "/pve";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue