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

feat: enhance encoder interface #2054

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shunjiazhu
Copy link
Contributor

@shunjiazhu shunjiazhu commented Jan 20, 2025

Enhance encoder api to support variable keys, i.e. %{metadata.xxx}, ${tag.xxx}, and ${content.xxxx}, just like the converter struct.
image

converter:
image

enable: true
global: 
   StrucureType:"v2"
inputs:
  - Type: service_http_server
    Format: influxdb
    Address: "http://127.0.0.1:12345"
    QueryParams:
      - db
aggregators:
  - Type: aggregator_metadata_group
    GroupMetadataKeys:
      - db
flushers:
  - Type: flusher_http
    RemoteURL: "http://127.0.0.1:8086/write"
    Query:
      db: "%{metadata.db}"
    Encoder:
      Type: ext_default_encoder/prometheus

Change-Id: Id6f42270718059f3d495225c831056ac7d9a5b74
Change-Id: I220a34c2979aaf3f3e79f861ead36bafe00446c7
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