tencentcloudlogserviceexporter

package module
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 3

README

TencentCloud LogService Exporter

Status
Stability beta: logs
Distributions contrib
Issues Open issues Closed issues
Code Owners @wgliang, @yiyang5055

This exporter supports sending OpenTelemetry log data to LogService.

Configuration options:

  • region (required): LogService's Region.
  • logset (required): LogService's LogSet ID.
  • topic (required): LogService's topic ID.
  • secret_id (optional): TencentCloud secret id.
  • secret_key (optional): TencentCloud secret key.

Example:

Simple Log Data

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: ":4317"

exporters:
  tencentcloud_logservice:
      # LogService's Region, https://cloud.tencent.com/document/product/614/18940
      # set cls.{region}.tencentcloudapi.com, eg cls.ap-beijing.tencentcloudapi.com;
    region: "ap-beijing"
    # LogService's LogSet ID
    logset: "demo-logset"
    # LogService's Topic ID
    topic: "demo-topic"
    # TencentCloud secret id
    secret_id: "demo-secret-id"
    # TencentCloud secret key
    secret_key: "demo-secret-key"

service:
  pipelines:
    logs:
      receivers: [otlp]
      exporters: [tencentcloud_logservice]

Changelog

  • 2021-11-10 Change configuration item endpoint to region, by @wgliang
  • 2021-11-01 Initial implementation by @wgliang in #5722

Documentation

Overview

Package tencentcloudlogserviceexporter exports data to TenCent Log Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() exporter.Factory

NewFactory creates a factory for tencentcloud LogService exporter.

Types

type Config

type Config struct {
	// LogService's Region, https://cloud.tencent.com/document/product/614/18940
	// for TencentCloud Kubernetes(or CVM), set ap-{region}.cls.tencentyun.com, eg ap-beijing.cls.tencentyun.com;
	//  others set ap-{region}.cls.tencentcs.com, eg ap-beijing.cls.tencentcs.com
	Region string `mapstructure:"region"`
	// LogService's LogSet Name
	LogSet string `mapstructure:"logset"`
	// LogService's Topic Name
	Topic string `mapstructure:"topic"`
	// TencentCloud access key id
	SecretID string `mapstructure:"secret_id"`
	// TencentCloud access key secret
	SecretKey configopaque.String `mapstructure:"secret_key"`
}

Config defines configuration for TencentCloud Log Service exporter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the exporter configuration is valid

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL