mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
services/prometheus: Ingest data from PromDapter on Samhain's VM
This commit is contained in:
parent
1ff53944f1
commit
99da1a04e4
2 changed files with 11 additions and 2 deletions
|
|
@ -13,10 +13,17 @@ let
|
|||
in {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
scrapeConfigs = [{
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "boline";
|
||||
static_configs = [{ targets = [ "boline.net.kittywit.ch:8002" ]; }];
|
||||
}] ++ mapAttrsToList (hostName: prom: {
|
||||
}
|
||||
{
|
||||
job_name = "samhain-vm";
|
||||
metrics_path = "/metrics";
|
||||
static_configs = [{ targets = [ "samhain.net.kittywit.ch:10445" ]; }];
|
||||
}
|
||||
] ++ mapAttrsToList (hostName: prom: {
|
||||
job_name = "${hostName}-nd";
|
||||
metrics_path = "/api/v1/allmetrics";
|
||||
honor_labels = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue