diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2025-12-30 22:38:48 +0100 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2025-12-30 22:40:38 +0100 |
| commit | fd2aebc7304316ad983ed4bce022be29e183de6c (patch) | |
| tree | 2479a05f3becee9d86705a840ac04c3b29552893 | |
| parent | ddb8d562648e8b659bf2a4d787ea18d46724ab71 (diff) | |
sagittarius: disable clickhouse (perf)
| -rw-r--r-- | hosts/sagittarius/web/observability.nix | 57 |
1 files changed, 41 insertions, 16 deletions
diff --git a/hosts/sagittarius/web/observability.nix b/hosts/sagittarius/web/observability.nix index dd9808c..f622822 100644 --- a/hosts/sagittarius/web/observability.nix +++ b/hosts/sagittarius/web/observability.nix @@ -4,6 +4,7 @@ let grafana-cfg = config.services.grafana; prometheus-cfg = config.services.prometheus; + # clickhouse-cfg = config.services.clickhouse; in { services.opentelemetry-collector = { @@ -48,13 +49,42 @@ in send_timestamps = true; enable_open_metrics = true; }; + # clickhouse = { + # endpoint = "tcp://localhost:${toString clickhouse-cfg.serverConfig.tcp_port}"; + # database = "otel"; + # username = "otel"; + # password = ""; + # async_insert = true; + # ttl = "72h"; + # compress = "lz4"; + # create_schema = true; + # logs_table_name = "otel_logs"; + # traces_table_name = "otel_traces"; + # timeout = "5s"; + # metrics_tables = { + # gauge.name = "otel_metrics_gauge"; + # sum.name = "otel_metrics_sum"; + # summary.name = "otel_metrics_summary"; + # histogram.name = "otel_metrics_histogram"; + # exponential_histogram.name = "otel_metrics_exp_histogram"; + # }; + # retry_on_failure = { + # enabled = true; + # initial_interval = "5s"; + # max_interval = "30s"; + # max_elapsed_time = "300s"; + # }; + # }; }; service = { extensions = [ ]; pipelines = { traces = { receivers = [ "otlp" ]; - exporters = [ "debug" ]; + exporters = [ + "debug" + # "clickhouse" + ]; }; metrics = { receivers = [ @@ -64,12 +94,14 @@ in exporters = [ "debug" "prometheus" + # "clickhouse" ]; }; logs = { receivers = [ "otlp" ]; exporters = [ "debug" + # "clickhouse" ]; }; }; @@ -122,21 +154,14 @@ in }; }; - services.clickhouse = { - enable = true; - usersConfig = { - otel = { - profile = "analytics"; - password_sha256_hex = "bf07f7edecb3a2ee3e91f468964c1ef0e03d724d87af08fe8cec0552887b5b68"; - access_management = false; - default_database = "otel"; - }; - }; - serverConfig = { - http_port = 8123; - tcp_port = 9000; - }; - }; + # services.clickhouse = { + # enable = true; + # # NOTE: manually created the "otel" user and database + # serverConfig = { + # http_port = 8123; + # tcp_port = 9000; + # }; + # }; services.nginx.virtualHosts."grafana.sorre.xyz" = { forceSSL = true; |
