Skip to content

Latest commit

 

History

History
95 lines (78 loc) · 4.62 KB

README.md

File metadata and controls

95 lines (78 loc) · 4.62 KB

SolarWinds OpenTelemetry Collector

SolarWinds OpenTelemetry Collector is a distribution of OpenTelemetry Collector with components bundled from opentelemetry-collector and opentelemetry-collector-contrib. It also contains specific SolarWinds components for easier usage and enhanced telemetry collection.

Installation

Docker

Get the image from DockerHub.

docker pull solarwinds/solarwinds-otel-collector:0.113.2

To run the image utilize following command:

docker run -v ./your_config_file.yaml:/opt/default-config.yaml solarwinds-otel-collector:0.113.2

See complete docker documentation.

Binary

Build the binary in cmd/solarwinds-otel-collector with go build .

After successful build, solarwinds-otel-collector should be present in cmd/solarwinds-otel-collector.

Run solarwinds-otel-collector --config=config.yaml.

Getting Started

Configuration for SolarWinds OTel Collector has to contain SolarWinds Extension and Solarwinds Exporter.

Example with docker

  1. Generate your ingestion token in SWO. See API Tokens.
  2. Create a config.yaml file that contains configuration for the SolarWinds OTel Collector. Insert the ingestion token and choose a correct data center (na-01, na-02, eu-01). Specify the collector name.
service:
  extensions: [solarwinds]
  pipelines:
    metrics:
      receivers: [redis]
      exporters: [solarwinds]
receivers:
  redis:
    endpoint: "<redis-url>:6379"
    collection_interval: 10s
    password: ${env:REDIS_PASSWORD}
extensions:
  solarwinds:
    token: "<ingestion-token>"
    data_center: "na-01"
    collector_name: "<collector-name>"

exporters:
  solarwinds:
  1. Pull the SolarWinds OTel Collector from DockerHub.
docker pull solarwinds/solarwinds-otel-collector:0.113.2
  1. Start the container with your config.yaml.
docker run  -v ./config.yaml:/opt/default-config.yaml solarwinds/solarwinds-otel-collector:0.113.2

Components

The SolarWinds OpenTelemetry collector contains following components:

CI/CD

The SolarWinds OpenTelemetry Collector utilizes GitHub Actions pipeline. The standard build pipeline is triggered with each PR opened to main or release branch and consists of:

  • build of SolarWinds OpenTelemetry Collector docker image

The release pipeline is triggered with designated tag publishing and consists of:

  • build of SolarWinds OpenTelemetry Collector docker image and its publishing to DockerHub
  • creation of GitHub release

Contributing

See CONTRIBUTING.md.