Skip to content

Commit

Permalink
Turn on metrics for the services that support it.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellw committed Nov 25, 2023
1 parent 26aa821 commit 1505590
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions apps/base/posthog/posthog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ spec:
# This is used to e.g. generate shareable links to Dashboards.
siteUrl: "posthog.ops.cluster.compose.ai"

pgbouncer:
_pgbouncer:
hpa:
enabled: true
exporter:
enabled: true

events:
hpa:
Expand Down Expand Up @@ -140,23 +142,20 @@ spec:
cert-manager.io/cluster-issuer: cert-manager-global

postgresql:
# TODO
persistence:
# -- Enable persistence using PVC.
enabled: true
# -- PVC Storage Request for PostgreSQL volume.
size: 10Gi

kafka:
# TODO
persistence:
# - Enable data persistence using PVC.
enabled: true
# -- PVC Storage Request for Kafka data volume.
size: 20Gi

clickhouse:
# TODO
persistence:
# -- Enable data persistence using PVC.
enabled: true
Expand All @@ -178,12 +177,19 @@ spec:
size: 20Gi

## -- ClickHouse pod(s) annotation.
# TODO
podAnnotations:
# Uncomment those lines if you want Prometheus server to scrape ClickHouse pods metrics.
# prometheus.io/scrape: "true"
# prometheus.io/path: /metrics
# prometheus.io/port: "9363"
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "9363"
settings:
# Uncomment those lines if you want to enable the built-in Prometheus HTTP endpoint in ClickHouse.
prometheus/endpoint: /metrics
prometheus/port: 9363
prometheus/metrics: true
prometheus/events: true
prometheus/asynchronous_metrics: true


backup:
# https://posthog.com/docs/self-host/runbook/clickhouse/backup
Expand All @@ -206,5 +212,18 @@ spec:
region:
# -- Name of an existing Kubernetes secret object containing the `access_key_id` and `secret_access_key`. The secret has to contain the keys `root-user` and `root-password`).
existingSecret:

zookeeper:
metrics:
enabled: true

prometheus-kafka-exporter:
enabled: true

prometheus-postgres-exporter:
enabled: true

prometheus-redis-exporter:
enabled: true

# TODO Add all prometheus alerts and scraping for prometheus + loki

0 comments on commit 1505590

Please sign in to comment.