Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using AGGREGATION_ TEMPORARITY_ DELTA does not support histogram metrics #29659

Closed
shicli opened this issue Dec 5, 2023 · 6 comments
Closed
Labels
connector/spanmetrics question Further information is requested Stale

Comments

@shicli
Copy link

shicli commented Dec 5, 2023

Component(s)

connector/spanmetrics

What happened?

Description

I am using AGGREGATION_ TEMPORARITY_ DELTA, but I found that only the calls indicator was generated and there was no histogram indicator. I am confused about this. The reason why I chose DELTA is because CUMULATIV generates too many metrics, so I hope to use DELTA to clean up old data, but in reality, there is no duration data generation. I don't know if I misunderstood it, and I hope you can help me

Steps to Reproduce

connectors:
   count:
    servicegraph:
      latency_histogram_buckets: [5ms, 30ms, 100ms, 500ms, 2s]
      dimensions:
        - span.kind
      #   - dimension-2
      store:
        ttl: 5s
        max_items: 5000
    spanmetrics:
      histogram:
        explicit:
          buckets: [2ms, 6ms, 10ms, 100ms, 250ms, 500ms, 2s]
      dimensions:
        # - name: http.method
        #   default: GET
        - name: http.status_code
      dimensions_cache_size: 100000
      aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"

Expected Result

calls and duration

Actual Result

only calls

Collector version

0.88

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@shicli shicli added bug Something isn't working needs triage New item requiring triage labels Dec 5, 2023
Copy link
Contributor

github-actions bot commented Dec 5, 2023

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1
Copy link
Member

Hello @shicli, can you share the full configuration of the collector that you're using? I'm unclear on whether this is a problem you're having with the spanmetrics connector, or the servicegraph connector.

@shicli
Copy link
Author

shicli commented Dec 12, 2023

`receivers:
otlp:
protocols:
grpc:
endpoint: ${env:MY_POD_IP}:4317
http:
endpoint: ${env:MY_POD_IP}:4318

exporters:
prometheusremotewrite:
endpoint: http://thanos-receive.thanos:9090/api/v1/receive
resource_to_telemetry_conversion:
enabled: true
target_info:
enabled: true

connectors:
spanmetrics:
histogram:
explicit:
buckets: [100us, 1ms, 2ms, 6ms, 10ms, 100ms, 250ms]
dimensions:
- name: http.method
default: GET
- name: http.status_code
exemplars:
enabled: true
exclude_dimensions: ['status.code']
dimensions_cache_size: 1500
aggregation_temporality: "AGGREGATION_TEMPORALITY_DELTA"
metrics_flush_interval: 30s

service:
pipelines:
traces:
exporters:
- otlp
- spanmetrics
processors:
- memory_limiter
- batch
receivers:
- otlp
metrics:
receivers:
- spanmetrics
exporters:
- prometheusremotewrite`
@crobert-1

@shicli
Copy link
Author

shicli commented Dec 12, 2023

@crobert-1 @albertteoh When I use "AGGREGATION-TEMPORALITY-CUMULATIVE", I generate calls, duration_ Sum, duration_ Bucket, duration_count metric is used, but when I use "AGGREGATION-TEMPORALITY-DELTA", only the calls metric is available.

@jmichalek132
Copy link
Contributor

As documented in the remote write exporter readme:

:warning: Non-cumulative monotonic, histogram, and summary OTLP metrics are

remote write exporter doesn't support detlas currently, since prometheus doesn't support ingesting deltas.

@crobert-1 crobert-1 added question Further information is requested and removed bug Something isn't working needs triage New item requiring triage labels Jan 16, 2024
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Mar 18, 2024
@crobert-1 crobert-1 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector/spanmetrics question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

3 participants