kafka

package
v0.0.0-...-4915120 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PluginName    = "kafka"
	PluginVersion = 9
	PluginType    = plugin.PublisherPluginType
)

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

func NewKafkaPublisher

func NewKafkaPublisher() *kafkaPublisher

Types

type MetricToPublish

type MetricToPublish struct {
	// The timestamp from when the metric was created.
	Timestamp time.Time         `json:"timestamp"`
	Namespace string            `json:"namespace"`
	Data      interface{}       `json:"data"`
	Unit      string            `json:"unit"`
	Tags      map[string]string `json:"tags"`
	Version_  int               `json:"version"`
	// Last advertised time is the last time the snap agent was told about a metric.
	LastAdvertisedTime time.Time `json:"last_advertised_time"`
}

Jump to

Keyboard shortcuts

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