feat: grafana + prometheus + loki on flora-6 #77

Merged
teutat3s merged 15 commits from feat/grafana into main 2023-12-13 23:21:32 +00:00
5 changed files with 42 additions and 4 deletions
Showing only changes of commit 6c1fa290e8 - Show all commits

View file

@ -5,6 +5,12 @@
flake, 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 = { services.prometheus = {
enable = true; enable = true;
port = 9001; port = 9001;
@ -15,9 +21,13 @@
port = 9002; port = 9002;
}; };
}; };
globalConfig = {
scrape_interval = "10s";
scrape_timeout = "9s";
};
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "flora-6"; job_name = "http-targets";
static_configs = [{ static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ]; targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
labels = { labels = {

View file

@ -1,8 +1,8 @@
{ config, flake, ... }: { config, flake, ... }:
{ {
age.secrets.nachtigall-metrics-basic-auth = { age.secrets.nachtigall-metrics-nginx-basic-auth = {
file = "${flake.self}/secrets/nachtigall-metrics-basic-auth.age"; file = "${flake.self}/secrets/nachtigall-metrics-nginx-basic-auth.age";
mode = "600"; mode = "600";
owner = "nginx"; 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
hC15shUmU1H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b¥ø 3ÕŠ:å!îÓârzèòqǤ

View file

@ -67,5 +67,6 @@ in {
"grafana-keycloak-client-secret.age".publicKeys = flora6Keys ++ baseKeys; "grafana-keycloak-client-secret.age".publicKeys = flora6Keys ++ baseKeys;
"grafana-smtp-password.age".publicKeys = flora6Keys ++ 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;
} }