Documentation
¶
Index ¶
- Constants
- func AddVersion(metric telegraf.Metric)
- func AppendAttributesInFields(fieldName string, fieldValue interface{}, metric telegraf.Metric)
- func AttachMetricRule(metric telegraf.Metric, rules []MetricRule)
- func AttachMetricRuleWithDedup(metric telegraf.Metric, rules []MetricRule)
- func BuildAttributes(metric telegraf.Metric, structuredLogContent map[string]interface{})
- func BuildMeasurements(metric telegraf.Metric, structuredLogContent map[string]interface{}) error
- type MetricAttr
- type MetricRule
Constants ¶
View Source
const (
MetricRuleKey = "CloudWatchMetrics"
)
Variables ¶
This section is empty.
Functions ¶
func AppendAttributesInFields ¶
Some attributes are not in type string, use fields to pass these tags
func AttachMetricRule ¶
func AttachMetricRule(metric telegraf.Metric, rules []MetricRule)
func AttachMetricRuleWithDedup ¶ added in v1.247346.0
func AttachMetricRuleWithDedup(metric telegraf.Metric, rules []MetricRule)
Append de-duped EMF rules. Prerequisites: 1. Rules are with same namespace 2. Dimensions are pre-sorted
func BuildAttributes ¶
Types ¶
type MetricAttr ¶
type MetricRule ¶
type MetricRule struct { Metrics []MetricAttr `json:"Metrics"` DimensionSets [][]string `json:"Dimensions"` Namespace string `json:"Namespace"` }
Click to show internal directories.
Click to hide internal directories.