influxdata / influxdata/telegraf

Support template for outputs.cloudwatch namespace

Open
#16,499 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

### Use Case

I want to be able to set the namespace for cloudwatch metrics based on a tag. I have multiple metrics that are tagged with the cloudwatch namespace they need to be sent to. At the moment I have an output per namespace, this results in a lot of duplication.

This will require changing how the output batches its metrics, and will result in more cloudwatch calls depending on the cardinality of that tag.

### Expected behavior

```toml
[[outputs.cloudwatch]]
namespace = '{.Tag "namespace"}'
```

results in metrics being sent to the namespace in the tag

### Actual behavior

cloudwatch namespace is static

### Additional info

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the outputs.cloudwatch implementation and its metric batching logic. Trace how the namespace setting is resolved, then verify that a namespace tag can determine the destination and that batching and CloudWatch calls handle multiple namespaces as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
cloud, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.