azure_loganalytics

package
v1.0.0-...-47f3d97 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 18 Imported by: 0

README

Azure Log Analytics Output Plugin

This plugin sends metrics in a Azure Log Analytics.

Configuration

# A plugin that can transmit metrics over HTTP
[[outputs.azure_loganalytics]]
  ## Customer ID (Workstation ID) and Key for Azure Log Analytics resource.
  # customer_id = "<Workstation ID>"
  # shared_key = "<Secret>"

  ## Timeout for closing (default: 5s).
  # timeout = "5s"

  ## Table Namespace Prefix (default: "").
  ## Namespace Prefix is used in "Log-Type" header
  ## Limited to 25 chars as not to exceed the max limit
  ## Prefix can only contain alphaNumeric characters
  # namespace_prefix = ""

Documentation

Overview

Package azure_loganalytics provides functionality for sending metrics to Azure Log Analytics. This plugin sends data to Azure Log Analytics (https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-portal).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzLogAnalytics

type AzLogAnalytics struct {
	CustomerID string `toml:"customer_id"`
	SharedKey  string `toml:"shared_key"`

	NamespacePrefix string            `toml:"namespace_prefix"`
	ClientTimeout   internal.Duration `toml:"timeout"`
	// contains filtered or unexported fields
}

AzLogAnalytics contains information about a azure log analytics service metadata

func (*AzLogAnalytics) Close

func (a *AzLogAnalytics) Close() error

Close shuts down an any active connections

func (*AzLogAnalytics) Connect

func (a *AzLogAnalytics) Connect() error

Connect initializes the plugin and validates connectivity

func (*AzLogAnalytics) Description

func (a *AzLogAnalytics) Description() string

Description provides a description of the plugin

func (*AzLogAnalytics) SampleConfig

func (a *AzLogAnalytics) SampleConfig() string

SampleConfig provides a sample configuration for the plugin

func (*AzLogAnalytics) Write

func (a *AzLogAnalytics) Write(metrics []telegraf.Metric) error

Write writes metrics to the remote endpoint

Jump to

Keyboard shortcuts

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