Why my metrics_generator not remote writing my metrics of traces? #3792
-
I am using distributed service in K8s: kubectl create namespace test
helm -n test install prometheus prometheus-community/prometheus -f prometheus.yaml
helm -n test install tempo grafana/tempo-distributed -f tempo.yaml prometheus.yaml: server:
extraArgs:
web.enable-remote-write-receiver: null
alertmanager:
enabled: false
kube-state-metrics:
enabled: false
prometheus-node-exporter:
enabled: false
prometheus-pushgateway:
enabled: false tempo.yaml: storage:
trace:
backend: s3
s3:
access_key: 'grafana-tempo'
secret_key: 'supersecret'
bucket: 'tempo-traces'
endpoint: 'tempo-minio:9000'
insecure: true
#MinIO storage configuration
minio:
enabled: true
mode: standalone
rootUser: grafana-tempo
rootPassword: supersecret
buckets:
# Default Tempo storage bucket
- name: tempo-traces
policy: none
purge: false
traces:
otlp:
grpc:
enabled: true
http:
enabled: true
zipkin:
enabled: false
jaeger:
thriftHttp:
enabled: false
opencensus:
enabled: false
# metrics-generator for service maps
metricsGenerator:
enabled: true
config:
registry:
collection_interval: 15s
external_labels: {}
stale_duration: 15m
processor:
service_graphs:
histogram_buckets: [0.1, 0.2, 0.4, 0.8, 1.6, 3.2, 6.4, 12.8]
max_items: 10000
wait: 10s
workers: 10
span_metrics:
histogram_buckets: [0.002, 0.004, 0.008, 0.016, 0.032, 0.064, 0.128, 0.256, 0.512, 1.02, 2.05, 4.10]
storage:
path: /var/tempo/wal
wal:
remote_write_flush_deadline: 1m
remote_write:
- url: http://prometheus-server.test.svc.cluster.local/api/v1/write After using k6 to generate tracing data, I can't find out any metrics for tracing: docker run --network host --rm -e ENDPOINT=localhost:4317 ghcr.io/grafana/xk6-client-tracing:v0.0.5 What do I miss? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Here is metrics-generator's logs:
|
Beta Was this translation helpful? Give feedback.
-
This is my memberlist output: the value of |
Beta Was this translation helpful? Give feedback.
-
Can you go through the steps of our troubleshooting doc: https://grafana.com/docs/tempo/latest/troubleshooting/metrics-generator/ |
Beta Was this translation helpful? Give feedback.
-
I have fixed the issue:
After setting up the overrides as partial documents mentioned, it will not be enabled: # WRONG!
global_overrides:
per_tenant_override_config: /runtime-config/overrides.yaml
defaults:
metrics_generator:
processors: [service-graphs, span-metrics] You should remove |
Beta Was this translation helpful? Give feedback.
I have fixed the issue:
overrides
to enable metrics-generatorhttps://github.com/grafana/tempo/blob/main/modules/distributor/distributor.go#L365-L367
https://github.com/grafana/helm-charts/blob/tempo-distributed-1.11.0/charts/tempo-distributed/values.yaml#L1359-L1360
After setting up the overrides as partial documents mentioned, it will not be enabled:
You should remove
per_tenant_override_config
.