Skip to content

Commit

Permalink
use direct metric export instead of prometheus scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
matthagenbuch authored Sep 6, 2024
1 parent ab5483b commit eb7b1c0
Showing 1 changed file with 17 additions and 26 deletions.
43 changes: 17 additions & 26 deletions config/collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ receivers:
generator:
path: "${TOPO_FILE}"
inline: "${TOPO_INLINE}"
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 5s
static_configs:
- targets: ['localhost:8888']
relabel_configs:
- replacement: "telemetry-generator"
target_label: "service"
action: replace

processors:
batch:
Expand All @@ -34,15 +23,7 @@ exporters:
"lightstep-access-token": "${LS_ACCESS_TOKEN}"
sending_queue:
num_consumers: 20
queue_size: 10000
# export internal metrics to monitoring project
otlp/2:
endpoint: "${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_INTERNAL}"
tls:
insecure_skip_verify: true
insecure: "${OTEL_INSECURE}"
headers:
"lightstep-access-token": "${LS_ACCESS_TOKEN_INTERNAL}"
queue_size: 10000

service:
pipelines:
Expand All @@ -55,12 +36,6 @@ service:
exporters:
- otlp
- logging
#pipeline for the collectors own internal metrics
metrics/2:
receivers:
- prometheus
exporters:
- otlp/2
traces:
receivers:
- generator
Expand All @@ -70,3 +45,19 @@ service:
exporters:
- logging
- otlp
telemetry:
resource:
service.name: telemetry-generator
service: telemetry-generator
metrics:
level: detailed
readers:
- periodic:
exporter:
otlp:
endpoint: "${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT_INTERNAL}"
tls:
insecure_skip_verify: true
insecure: "${OTEL_INSECURE}"
headers:
"lightstep-access-token": "${LS_ACCESS_TOKEN_INTERNAL}"

0 comments on commit eb7b1c0

Please sign in to comment.