Documentation
¶
Index ¶
Constants ¶
View Source
const MetricsDataSourceType = "metrics-data-source"
Variables ¶
This section is empty.
Functions ¶
func MetricsDataSourceFactory ¶
func MetricsDataSourceFactory(name string, parameters *json.Decoder, handle fwkplugin.Handle) (fwkplugin.Plugin, error)
MetricsDataSourceFactory is a factory function used to instantiate data layer's metrics data source plugins specified in a configuration.
func NewHTTPMetricsDataSource ¶
func NewHTTPMetricsDataSource(scheme, path, name string) (*http.HTTPDataSource[PrometheusMetricMap], error)
NewHTTPMetricsDataSource constructs a MetricsDataSource with the given scheme and path. InsecureSkipVerify defaults to true (matching the factory default). Use this function directly in tests to bypass JSON parameter marshaling.
Types ¶
type PrometheusMetricMap ¶
type PrometheusMetricMap = map[string]*dto.MetricFamily
PrometheusMetricMap is the parsed metric-families map produced by parseMetrics.
Click to show internal directories.
Click to hide internal directories.