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

meta info in pipeline #600

Merged
merged 12 commits into from
May 23, 2024
Merged

meta info in pipeline #600

merged 12 commits into from
May 23, 2024

Conversation

DmitryRomanov
Copy link
Collaborator

@DmitryRomanov DmitryRomanov commented Mar 14, 2024

Examples

for http input

pipelines:
  http:
    input:
      type: http
      address: ":9400"
      meta:
        remote_addr: "{{ .remote_addr }}"
        user_agent: '{{ index (index .request.Header "User-Agent") 0}}'
        login: "{{ .login }}"

for kafka

pipelines:
  kafka:
    settings:
      capacity: 128
    input:
      type: kafka
      brokers:
        - localhost:9092
      topics:
        - events
      offset: newest
      meta:
        partition: '{{ .message.Partition }}'
        topic: '{{ .message.Topic }}'
    actions:
    - type: json_decode
      field: message
    output:
      type: stdout

@DmitryRomanov DmitryRomanov force-pushed the meta-from-input branch 3 times, most recently from db9d0cf to d0969be Compare March 14, 2024 08:44
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 30.43478% with 80 lines in your changes are missing coverage. Please review.

Project coverage is 70.51%. Comparing base (67ecc39) to head (65b153b).
Report is 9 commits behind head on master.

Current head 65b153b differs from pull request most recent head f90505b

Please upload reports for the commit f90505b to get more accurate results.

Files Patch % Lines
plugin/input/http/http.go 33.96% 33 Missing and 2 partials ⚠️
plugin/input/kafka/kafka.go 22.72% 16 Missing and 1 partial ⚠️
pipeline/metadata_registry.go 31.81% 14 Missing and 1 partial ⚠️
pipeline/pipeline.go 7.69% 11 Missing and 1 partial ⚠️
plugin/input/dmesg/dmesg.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #600      +/-   ##
==========================================
- Coverage   70.83%   70.51%   -0.33%     
==========================================
  Files         124      124              
  Lines       12572    12587      +15     
==========================================
- Hits         8906     8876      -30     
- Misses       3150     3190      +40     
- Partials      516      521       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DmitryRomanov DmitryRomanov force-pushed the meta-from-input branch 2 times, most recently from 0610424 to fef1a58 Compare March 18, 2024 13:03
@DmitryRomanov DmitryRomanov force-pushed the meta-from-input branch 5 times, most recently from f8b7b4c to 7076563 Compare March 26, 2024 14:02
@DmitryRomanov DmitryRomanov marked this pull request as ready for review March 26, 2024 14:04
@DmitryRomanov DmitryRomanov force-pushed the meta-from-input branch 2 times, most recently from 65b153b to 92cf169 Compare March 28, 2024 06:59
@DmitryRomanov DmitryRomanov force-pushed the meta-from-input branch 5 times, most recently from bd957e5 to 30332e1 Compare April 22, 2024 12:47
@DmitryRomanov DmitryRomanov merged commit e4ace70 into master May 23, 2024
8 checks passed
@DmitryRomanov DmitryRomanov deleted the meta-from-input branch May 23, 2024 10:50
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.

3 participants