Documentation ¶
Overview ¶
Package synthesis implements the mapping of metrics into NR entities The entity synthesis mapping logic is based on this project (https://github.com/newrelic-experimental/entity-synthesis-definitions). The definition of rules are the same to the ones defined in the definition.yaml files of the mentioned repo.
Copyright 2021 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( MetricType_COUNTER metricType = "count" MetricType_GAUGE metricType = "gauge" MetricType_SUMMARY metricType = "summary" MetricType_HISTOGRAM metricType = "histogram" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Name string Value metricValue MetricType metricType Attributes Set Description string }
Metric represents a Prometheus metric. https://prometheus.io/docs/concepts/data_model/
func GetPromMetrics ¶
type MetricFamiliesByName ¶
type MetricFamiliesByName map[string]dto.MetricFamily
Click to show internal directories.
Click to hide internal directories.