1
0
Fork 0
forked from pub-solar/infra

feat(prometheus): add job to scrape nachtigall.pub.solar

This commit is contained in:
teutat3s 2023-12-06 19:51:27 +01:00
parent d5b59ea18a
commit 6c1fa290e8
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1
5 changed files with 42 additions and 4 deletions

View file

@ -5,6 +5,12 @@
flake,
...
}: {
age.secrets.nachtigall-metrics-prometheus-basic-auth-password = {
file = "${flake.self}/secrets/nachtigall-metrics-prometheus-basic-auth-password.age";
mode = "600";
owner = "prometheus";
};
services.prometheus = {
enable = true;
port = 9001;
@ -15,9 +21,13 @@
port = 9002;
};
};
globalConfig = {
scrape_interval = "10s";
scrape_timeout = "9s";
};
scrapeConfigs = [
{
job_name = "flora-6";
job_name = "http-targets";
static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
labels = {

View file

@ -1,8 +1,8 @@
{ config, flake, ... }:
{
age.secrets.nachtigall-metrics-basic-auth = {
file = "${flake.self}/secrets/nachtigall-metrics-basic-auth.age";
age.secrets.nachtigall-metrics-nginx-basic-auth = {
file = "${flake.self}/secrets/nachtigall-metrics-nginx-basic-auth.age";
mode = "600";
owner = "nginx";
};

View file

@ -0,0 +1,27 @@
age-encryption.org/v1
-> ssh-ed25519 Y0ZZaw OfW2lm8CNwkA+63jp04bIHztAyLPV+xXQnTw9mzZBxg
E1utDkQScMHCbG5+hnBCHghcHXG1RzFaBZgP8rIqP/0
-> ssh-ed25519 uYcDNw 1ctiOm2nIiOqk9emMqDiEV6A4TogX0QY3i3BpyyRLWQ
8dmOuKM/ojRmv4Lhq8w9EZVmdnfdheLfrms9AqAwqSw
-> ssh-rsa kFDS0A
RdurPDcUR4Qh49KcgWvZEXSf1cV5CQGZQ0NEaDN86EJmUGWx7lpUZK5EhYIpDMU5
hC15shUmU1Hij9s0I7K1cQ0M3icpWJYdTmOe2IYjXDNr/Z7SUetI/NgPgV32zhW+
jLl/NIoofFccFYvwgPbg+/pQcmKYAI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 baseKeys;
"grafana-smtp-password.age".publicKeys = flora6Keys ++ baseKeys;
"nachtigall-metrics-basic-auth.age".publicKeys = flora6Keys ++ nachtigallKeys ++ baseKeys;
"nachtigall-metrics-nginx-basic-auth.age".publicKeys = nachtigallKeys ++ baseKeys;
"nachtigall-metrics-prometheus-basic-auth-password.age".publicKeys = flora6Keys ++ baseKeys;
}