more metrics
This commit is contained in:
parent
0a496eb82f
commit
0a5df1e33f
6 changed files with 46 additions and 42 deletions
|
@ -37,11 +37,20 @@ in
|
|||
enable = true;
|
||||
openFirewall = true;
|
||||
prometheusConfig = {
|
||||
global = {
|
||||
global = {
|
||||
scrape_interval = "1m";
|
||||
scrape_timeout = "30s";
|
||||
};
|
||||
scrape_configs = [
|
||||
{
|
||||
job_name = "nginx";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [ "nginx.olympus:9113" ];
|
||||
labels.app = "nginx";
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "synapse";
|
||||
metrics_path = "/_synapse/metrics";
|
||||
|
@ -50,6 +59,13 @@ in
|
|||
labels.app = "synapse";
|
||||
}];
|
||||
}
|
||||
{
|
||||
job_name = "wireguard";
|
||||
static_configs = [{
|
||||
targets = [ "wireguard.olympus:9586" ];
|
||||
labels.app = "wireguard";
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue