services/prometheus: Ingest data from PromDapter on Samhain's VM

This commit is contained in:
kat witch 2021-05-05 17:05:17 +01:00
parent 1ff53944f1
commit 99da1a04e4
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 11 additions and 2 deletions

View file

@ -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;