Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
126368: drt: add workload-large case for datadog command r=vidit-bhat a=vidit-bhat

Previously, we did not have a case for workload-large (currently called drt-large-workload) for the datadog command. This was inadequate since we could not push logs from these workload nodes. This PR adds the case which enables us to push logs to DataDog.

Epic: none

Co-authored-by: Vidit Bhat <[email protected]>
  • Loading branch information
craig[bot] and vidit-bhat committed Jun 28, 2024
2 parents a456daa + d2804f0 commit 3f43958
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions scripts/drtprod
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,54 @@ processors:
- workload_tpcc.*
- workload_kv_.*
# The */datadog elements are defined in the primary configuration file.
service:
pipelines:
metrics:
receivers:
- prometheus/workload
processors:
- memory_limiter/datadog
- filter/workload
- batch/datadog
- attributes/datadog
exporters:
- datadog
EOF"
;;

"workload-large")
roachprod ssh ${cluster} -- "mkdir -p /etc/otelcol-contrib && sudo tee /etc/otelcol-contrib/config-override.yaml > /dev/null << EOF
---
receivers:
prometheus/workload:
config:
global:
scrape_interval: 30s
scrape_configs:
- job_name: workload1
honor_timestamps: false
metrics_path: /metrics
tls_config:
insecure_skip_verify: true
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- "localhost:2112"
relabel_configs:
- action: replace
replacement: 1
target_label: workload
processors:
filter/workload:
metrics:
include:
match_type: regexp
expressions:
- workload_tpcc.*
# The */datadog elements are defined in the primary configuration file.
service:
pipelines:
Expand Down

0 comments on commit 3f43958

Please sign in to comment.