File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ REDPANDA_PASSWORD=super_secret_password
1414VECTOR_LOG=warn
1515VECTOR_KAFKA_USER=vector-agent
1616VECTOR_KAFKA_PASSWORD=super_secret_password
17+
18+ REDPANDA_METRICS_ENDPOINT=http://redpanda:9644/public_metrics
19+ REDPANDA_CLUSTER_NAME=databuddy-prod
20+ ENVIRONMENT=production
21+
22+ # Axiom Configuration
23+ AXIOM_DATASET=redpanda
24+ AXIOM_TOKEN=your-axiom-ingest-token
1725
1826# Console Configuration
19- CONSOLE_JWT_SIGNING_KEY=databuddy-console-jwt-secret-key -change-in-production-min-32-chars
27+ CONSOLE_JWT_SIGNING_KEY=databuddy-console-jwt-secret-kenvy -change-in-production-min-32-chars
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ sources:
2020 decoding :
2121 codec : json
2222
23+ redpanda_metrics :
24+ type : prometheus_scrape
25+ endpoints :
26+ - " ${REDPANDA_METRICS_ENDPOINT}"
27+ scrape_interval_secs : 15
28+ scrape_timeout_secs : 5
29+
2330transforms :
2431 route_analytics :
2532 type : route
@@ -34,6 +41,14 @@ transforms:
3441 email_events : ' .topic == "analytics-email-events"'
3542 blocked_traffic : ' .topic == "analytics-blocked-traffic"'
3643
44+ redpanda_metrics_transform :
45+ type : remap
46+ inputs :
47+ - redpanda_metrics
48+ source : |
49+ .tags.cluster = "${REDPANDA_CLUSTER_NAME}"
50+ .tags.env = "${ENVIRONMENT}"
51+
3752sinks :
3853 clickhouse_events :
3954 type : clickhouse
@@ -182,3 +197,11 @@ sinks:
182197 path : /var/log/vector/dead_letters.log
183198 encoding :
184199 codec : json
200+
201+ axiom_redpanda_metrics :
202+ type : axiom
203+ inputs :
204+ - redpanda_metrics_transform
205+ dataset : " ${AXIOM_DATASET}"
206+ token : " ${AXIOM_TOKEN}"
207+ compression : gzip
You can’t perform that action at this time.
0 commit comments