Documentation ¶
Index ¶
- Constants
- func InitPathsCache(pathsCacheTTL time.Duration, pathsCachePurgeInterval time.Duration)
- func MetricLabelsFromPath(path string, prefix string) ([]*prompb.Label, error)
- func MetricLabelsFromTags(tags map[string]string, prefix string) ([]*prompb.Label, error)
- func ToDatapoints(s *model.Sample, format Format, prefix string, rules []*config.Rule, ...) ([]string, error)
- type Format
- type FormatType
Constants ¶
View Source
const ( FormatCarbon FormatType = 1 FormatCarbonTags = 2 FormatCarbonOpenMetrics = 3 )
Format values.
Variables ¶
This section is empty.
Functions ¶
func InitPathsCache ¶
InitPathsCache inits cache for the paths.
func MetricLabelsFromPath ¶
MetricLabelsFromPath provides labels from given path.
func MetricLabelsFromTags ¶
MetricLabelsFromTags provides labels for given tags.
Types ¶
type Format ¶
type Format struct { Type FormatType FilteredTags []string // Only for Graphite Tag (Only used for FormatCarbonTags) }
Format describes carbon format; It can include a list of filtered tags that must be exported using FormatCarbon
Click to show internal directories.
Click to hide internal directories.