MCPcopy
hub / github.com/google/mtail / kindToCollectdType

Function kindToCollectdType

internal/exporter/collectd.go:45–50  ·  view source on GitHub ↗
(kind metrics.Kind)

Source from the content-addressed store, hash-verified

43}
44
45func kindToCollectdType(kind metrics.Kind) string {
46 if kind != metrics.Timer {
47 return strings.ToLower(kind.String())
48 }
49 return "gauge"
50}

Callers 1

metricToCollectdFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected