Skip to content

Commit

Permalink
docs(internal_metrics source): Add note about making metrics unique (v…
Browse files Browse the repository at this point in the history
…ectordotdev#12975)

Prompted by vectordotdev#12958 (comment)

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko authored Jun 6, 2022
1 parent a04bdf3 commit 88fc15a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/cue/reference/components/sources/internal_metrics.cue
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,21 @@ components: sources: internal_metrics: {
}
}

how_it_works: {
unique_series: {
title: "Sending metrics from multiple Vector instances"
body: """
When sending `internal_metrics` from multiple Vector instances
to the same destination, you will typically want to tag the
metrics with a tag that is unique to the Vector instance sending
the metrics to avoid the metric series conflicting. The
`tags.host_key` option can be used for this, but you can also
use a subsequent `remap` transform to add a different unique
tag from the environment.
"""
}
}

telemetry: metrics: {
component_discarded_events_total: components.sources.internal_metrics.output.metrics.component_discarded_events_total
component_errors_total: components.sources.internal_metrics.output.metrics.component_errors_total
Expand Down

0 comments on commit 88fc15a

Please sign in to comment.