Skip to content

illegal_argument_exception with the demo otel metrics index mappings #157

Closed Answered by Roiskia
Roiskia asked this question in Q&A
Discussion options

You must be logged in to vote

I forgot to specify the template_type for the sink of my metric-pipeline. After setting this to index-template as in the pipeline.yml from the opentelemetry-demo the exception was gone and metrics where available.

pipeline.yml
metric-pipeline:
  source:
    otel_metrics_source:
      ssl: false
      authentication:
        unauthenticated:
  processor:
    - otel_metrics:
        calculate_histogram_buckets: true
        calculate_exponential_histogram_buckets: true
        exponential_histogram_max_allowed_scale: 10
        flatten_attributes: false
  sink:
    - stdout:
    - opensearch:
        hosts: ["http://opensearch:9200"]
        insecure: true
        index_type: custom
      …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Roiskia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant