SigNoz / signoz-otel-collector

SigNoz distro for OpenTelemetry Collector
44 stars 39 forks source link

feat(admin): add admin apis for collector #313

Closed grandwizard28 closed 4 months ago

grandwizard28 commented 4 months ago

Description

The collector has been converted to a cobra based cli with the following commands:

Available Commands:
  api         Starts an api to interact with configuration
  migrate     Manage database schema migrations
  run         Run the otel collector

A new component api has been added with an optional storage backend postgres. The api (or admin api) will be responsible for storing and serving configuration.

Features

Usage

A very basic config file:

receivers:
  otlp:
    protocols:
      grpc:
      http:
        auth:
          authenticator: keyauth
processors:
  batch:
    send_batch_size: 1000
    timeout: 10s
  limiter:
    policy: redis/postgres
extensions:
  keyauth:
    headers:
      - signoz-access-token
      - X-Signoz-Token
exporters:
  logging:
    verbosity: detailed
service:
  extensions: [keyauth]
  pipelines:
    logs:
      receivers: [otlp]
      processors: [limiter, batch]
      exporters: [logging]