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

Add template provider and converter #8344

Closed

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented Aug 31, 2023

Example

my_template.yaml

type: my_otlp_template
template: |
  receivers:
    otlp:
      protocols:
        http:
          endpoint: localhost:{{ .port }}
  pipelines:
    traces:
      receivers: [otlp]
    metrics:
      receivers: [otlp]
    logs:
      receivers: [otlp]

config.yaml

receivers:
  template/my_otlp_template:
    port: 4317

exporters:
  logging:
    loglevel: debug

service:
  pipelines:
    logs:
      receivers: [template/my_otlp_template]
      exporters: [logging]

./otelcorecol --config config.yaml --config template:my_template.yaml

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch coverage is 90.66% of modified lines.

Files Changed Coverage
otelcol/configprovider.go 33.33%
confmap/converter/templateconverter/template.go 92.03%
confmap/provider/templateprovider/provider.go 100.00%

📢 Thoughts on this report? Let us know!.

@djaglowski djaglowski force-pushed the template-provider-converter branch 2 times, most recently from 1f59db2 to acadbc2 Compare September 5, 2023 21:08
@djaglowski djaglowski mentioned this pull request Sep 6, 2023
@djaglowski djaglowski force-pushed the template-provider-converter branch from acadbc2 to 49aca27 Compare September 12, 2023 18:33
@djaglowski djaglowski force-pushed the template-provider-converter branch from 4d2eda8 to 76eb558 Compare September 19, 2023 20:37
@djaglowski djaglowski force-pushed the template-provider-converter branch from 5536e43 to 932b17e Compare September 19, 2023 22:21
@djaglowski djaglowski marked this pull request as ready for review September 20, 2023 15:58
@djaglowski
Copy link
Member Author

Closing in favor of #8507

@djaglowski djaglowski closed this Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant