tsuki/prometheus: add exporters for hedgedoc and gitea

This commit is contained in:
Oystein Kristoffer Tveit 2023-07-28 22:09:43 +02:00
parent f7e25149c7
commit 5f7eb0c8a5
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
4 changed files with 27 additions and 0 deletions

View File

@ -54,6 +54,7 @@ in {
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true; session.COOKIE_SECURE = true;
metrics.ENABLED = true;
oauth2_client = { oauth2_client = {
ENABLE_AUTO_REGISTRATION = true; ENABLE_AUTO_REGISTRATION = true;

View File

@ -0,0 +1,12 @@
{ ... }:
{
# Gitea already exports at /metrics
services.prometheus.scrapeConfigs = [{
job_name = "gitea";
scrape_interval = "15s";
metrics_path = "/metrics/gitea";
static_configs = [{
targets = [ "localhost" ];
}];
}];
}

View File

@ -0,0 +1,12 @@
{ ... }:
{
# Hedgedoc already exports at /metrics
services.prometheus.scrapeConfigs = [{
job_name = "hedgedoc";
scrape_interval = "15s";
metrics_path = "/metrics/hedgedoc";
static_configs = [{
targets = [ "localhost" ];
}];
}];
}

View File

@ -2,6 +2,8 @@
# TODO: Autogenerate port infrastructure # TODO: Autogenerate port infrastructure
imports = [ imports = [
./prometheus-exporters/gitea.nix
./prometheus-exporters/hedgedoc.nix
./prometheus-exporters/matrix-synapse.nix ./prometheus-exporters/matrix-synapse.nix
./prometheus-exporters/minecraft.nix ./prometheus-exporters/minecraft.nix
./prometheus-exporters/nginx.nix ./prometheus-exporters/nginx.nix