statsd to prometheus #11735
Unanswered
pritha-switchdin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are running a django app with uwsgi ans using django-prometheus package to collect metrics and send to Prometheus. We would also like to get uwsgi metrics from statsd and send it to Prometheus. Here is the otel collector config. The custom metrics from django-prometheus all come through, but not the statsd ones. Any ideas, why?
`
receivers:
statsd:
endpoint: "0.0.0.0:8125"
aggregation_interval: 70s
is_monotonic_counter: false
enable_metric_type: true
timer_histogram_mapping:
- statsd_type: "histogram"
observer_type: "gauge"
- statsd_type: "timing"
observer_type: "histogram"
histogram:
max_size: 100
- statsd_type: "distribution"
observer_type: "summary"
summary:
percentiles: [0, 10, 50, 90, 95, 100]
prometheus:
config:
scrape_configs:
exporters:
prometheusremotewrite:
external_labels:
cluster: ${env:CLUSTER_NAME}
__meta_ecs_service_name: ${env:SERVICE_NAME}
endpoint: ${env:PROMETHEUS_WORKSPACE_ENDPOINT_WRITE_URL}
auth:
authenticator: sigv4auth
resource_to_telemetry_conversion:
enabled: true
timeout: 30s
debug:
verbosity: normal
prometheus:
enable_open_metrics: true
endpoint: 0.0.0.0:9999
metric_expiration: 3m
namespace: statsd
resource_to_telemetry_conversion:
enabled: true
send_timestamps: true
processors:
batch/metrics:
timeout: 60s
cumulativetodelta: null
memory_limiter:
check_interval: 5s
limit_percentage: 80
spike_limit_percentage: 25
extensions:
health_check:
sigv4auth:
region: ap-southeast-2
service: aps
service:
extensions: [health_check, sigv4auth]
pipelines:
# Pipeline 1 - otel collector's prometheus receiver to AMP
metrics/application:
receivers: [prometheus]
processors: [batch/metrics]
exporters: [debug, prometheusremotewrite]
`
Beta Was this translation helpful? Give feedback.
All reactions