exporter

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROJECT string = "acs_kafka"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaExporter

type KafkaExporter struct {
	DataPoints []struct {
		InstanceId    string  `json:"instanceId"`
		ConsumerGroup string  `json:"consumerGroup,omitempty"`
		Topic         string  `json:"topic,omitempty"`
		Maximum       float64 `json:"Maximum,omitempty"`
		Value         float64 `json:"Value,omitempty"`
	}
	// contains filtered or unexported fields
}

func (*KafkaExporter) Collect

func (k *KafkaExporter) Collect(ch chan<- prometheus.Metric)

func (*KafkaExporter) Describe

func (k *KafkaExporter) Describe(ch chan<- *prometheus.Desc)

func (*KafkaExporter) GetInstance

func (k *KafkaExporter) GetInstance() error

func (*KafkaExporter) GetMetric

func (k *KafkaExporter) GetMetric(metricName string)

func (*KafkaExporter) GetMetricMeta

func (k *KafkaExporter) GetMetricMeta()

func (*KafkaExporter) InitGauge

func (k *KafkaExporter) InitGauge()

func (*KafkaExporter) NewClient

func (k *KafkaExporter) NewClient()

Jump to

Keyboard shortcuts

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