operationsmanagement

package
v0.120.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BMCHelixOMMetric

type BMCHelixOMMetric struct {
	Labels  map[string]string  `json:"labels"`
	Samples []BMCHelixOMSample `json:"samples"`
}

BMCHelixOMMetric represents the structure of the payload that will be sent to BMC Helix Operations Management

type BMCHelixOMSample

type BMCHelixOMSample struct {
	Value     float64 `json:"value"`
	Timestamp int64   `json:"timestamp"`
}

BMCHelixOMSample represents the individual sample for a metric

type MetricsClient

type MetricsClient struct {
	// contains filtered or unexported fields
}

MetricsClient is responsible for sending the metrics payload to BMC Helix Operations Management

func NewMetricsClient

func NewMetricsClient(ctx context.Context, clientConfig confighttp.ClientConfig, apiKey configopaque.String, host component.Host, settings component.TelemetrySettings, logger *zap.Logger) (*MetricsClient, error)

NewMetricsClient creates a new MetricsClient

func (*MetricsClient) SendHelixPayload

func (mc *MetricsClient) SendHelixPayload(ctx context.Context, payload []BMCHelixOMMetric) error

SendHelixPayload sends the metrics payload to BMC Helix Operations Management

type MetricsProducer

type MetricsProducer struct {
	// contains filtered or unexported fields
}

MetricsProducer is responsible for converting OpenTelemetry metrics into BMC Helix Operations Management metrics

func NewMetricsProducer

func NewMetricsProducer(logger *zap.Logger) *MetricsProducer

NewMetricsProducer creates a new MetricsProducer

func (*MetricsProducer) ProduceHelixPayload

func (mp *MetricsProducer) ProduceHelixPayload(metrics pmetric.Metrics) ([]BMCHelixOMMetric, error)

ProduceHelixPayload takes the OpenTelemetry metrics and converts them into the BMC Helix Operations Management metric format

Jump to

Keyboard shortcuts

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