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 ¶
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