prometheus

package
v0.0.0-...-3096f39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

func GetPromMetrics(filename string) ([]Metric, error)

type MetricFamiliesByName

type MetricFamiliesByName map[string]dto.MetricFamily

type Set

type Set map[string]interface{}

Jump to

Keyboard shortcuts

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