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(sqlqueryreceiver) add traces to monitor logs received #7

Conversation

kasia-kujawa
Copy link
Collaborator

Screenshot 2023-05-18 at 13 32 04

Test with following configuration:

receivers:
  filelog:
    include: <path>
  hostmetrics:
    scrapers:
      load:
        cpu_average: true
      memory:
  sqlquery:
    collection_interval: 10s
    driver: postgres
    datasource: "host=127.0.0.1 port=5432 user=otel password=otel sslmode=disable"
    queries:
      - sql: "select * from simple_logs"
        logs:
        - body_column: BODY

  statsd:

extensions:
  zpages:

exporters:
  logging:
   loglevel: debug
  file:
    path: <path>
  file/metrics:
    path: <path>

service:
  telemetry:
    logs:
      level: "debug"
  extensions: [zpages]
  pipelines:
    logs:
      receivers:
        - sqlquery
      exporters:
        - file
    logs/file:
      receivers:
        - filelog
      exporters:
        - logging
    metrics:
     receivers: [statsd]
     exporters: [file/metrics]

@andrzej-stencel andrzej-stencel merged commit 88ed5c8 into dmolenda-sumo:sqlquery-receiver-add-logs May 18, 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.

2 participants