Fix incorrect configurationId when multiple DCRs share the same counters for ME metrics#2158
Fix incorrect configurationId when multiple DCRs share the same counters for ME metrics#2158
Conversation
…ending metrics to ME
…ending metrics to ME
|
@copilot please review this |
The fix looks correct for the AMA (non-LAD) multiple DCR case. Here's my review: What the fix does:
One observation: One concern: For LAD ( Summary: The fix is correct for the intended AMA use case and the file-per-DCR approach matches what's shown in the screenshots. |
AaronRM
left a comment
There was a problem hiding this comment.
This change will generate an [[inputs.plugin]] config per DCR (potentially resulting in telegraf collecting duplicate metrics per collection interval if they are duplicated across DCRs). This appears to be unavoidable with Telegraf. Just calling it out for awareness.


When multiple DCRs configured the same performance counters, all metrics were sent to ME tagged with only the first DCR's
configurationId(due to an earlybreak). ME uses this tag to route data per-DCR, so all subsequent DCRs received incorrectly attributed metrics.Changes
parse_configintelegraf_config_handler.pyconfigurationIds across all fields in a plugin before emitting any configconfigId, emit a separate telegraf config file named<omiclass>-<configId>.conf(previously one file per plugin, e.g.filesystem.conf)configurationIdin the[inputs.<plugin>.tags]blockBefore (one file per plugin, wrong configId for DCR 2+):
After (one file per plugin per DCR, correct configId in each):