tsuki/prometheus: add exporters for hedgedoc and gitea
This commit is contained in:
parent
f7e25149c7
commit
5f7eb0c8a5
@ -54,6 +54,7 @@ in {
|
||||
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
session.COOKIE_SECURE = true;
|
||||
metrics.ENABLED = true;
|
||||
|
||||
oauth2_client = {
|
||||
ENABLE_AUTO_REGISTRATION = true;
|
||||
|
12
hosts/tsuki/services/grafana/prometheus-exporters/gitea.nix
Normal file
12
hosts/tsuki/services/grafana/prometheus-exporters/gitea.nix
Normal 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" ];
|
||||
}];
|
||||
}];
|
||||
}
|
@ -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" ];
|
||||
}];
|
||||
}];
|
||||
}
|
@ -2,6 +2,8 @@
|
||||
# TODO: Autogenerate port infrastructure
|
||||
|
||||
imports = [
|
||||
./prometheus-exporters/gitea.nix
|
||||
./prometheus-exporters/hedgedoc.nix
|
||||
./prometheus-exporters/matrix-synapse.nix
|
||||
./prometheus-exporters/minecraft.nix
|
||||
./prometheus-exporters/nginx.nix
|
||||
|
Loading…
Reference in New Issue
Block a user