mts

package
v0.0.0-...-ffe269a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDynamicElements

func ConvertDynamicElements(metrics []plugin.MetricType)

ConvertDynamicElements removes dynamic `NamespaceElements` from `core.Namespace` and turn them into tags. Useful when metrics with unwanted namespace elements are gathered like `/intel/mock/host1/foo`, `/intel/mock/host2/foo` ... `/intel/mock/hostN/foo` where `hostN` is dynamic `NamespaceElement` (has Name) and one wants to publish them as `/intel/mock/foo` with additional tags as like host_name: hostN

Types

This section is empty.

Jump to

Keyboard shortcuts

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