Commit 9569d8d
authored
feat(agent-telemetry): export ADP client byte counters (#54316)
### What does this PR do?
Adds the four `dogstatsd_client.*` byte-counter names to the default Agent Telemetry profile, selecting ADP’s RAR-provided counters for COAT.
### Motivation
[DADP-162](https://datadoghq.atlassian.net/browse/DADP-162) requires DogStatsD client byte telemetry from both ADP and the Core Agent. The [ASUP-79 metric specification](https://datadoghq.atlassian.net/browse/ASUP-79) describes the payload contract. This profile-enrollment PR pairs with [saluki#2239](DataDog/saluki#2239) and [documentation#38659](DataDog/documentation#38659).
### Describe how you validated your changes
- `dda inv test --targets=./comp/core/agenttelemetry/impl,./comp/core/remoteagentregistry/impl --timeout=120`
- `dda inv linter.go --targets=./comp/core/agenttelemetry/impl,./comp/core/remoteagentregistry/impl --timeout=10`
- Added a default-profile test that registers an ADP-style `dogstatsd_client__bytes_sent` counter with `emitter=agent-data-plane` and verifies that Agent Telemetry emits it.
- Added a Remote Agent Registry test that parses all four ADP Prometheus counter families and verifies their counter type, values, and injected `emitter` label.
### Additional Notes
The separate RAR session-aware counter-reset follow-up handles independent ADP restarts. This PR does not add direct Core Agent DogStatsD emission.
[DADP-162]: https://datadoghq.atlassian.net/browse/DADP-162?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Co-authored-by: travis.thieman <travis.thieman@datadoghq.com>1 parent 7756fb6 commit 9569d8d
3 files changed
Lines changed: 71 additions & 0 deletions
File tree
- comp/core
- agenttelemetry/impl
- remoteagentregistry/impl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2815 | 2815 | | |
2816 | 2816 | | |
2817 | 2817 | | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
2818 | 2840 | | |
2819 | 2841 | | |
2820 | 2842 | | |
| |||
2838 | 2860 | | |
2839 | 2861 | | |
2840 | 2862 | | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
2841 | 2867 | | |
2842 | 2868 | | |
2843 | 2869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
223 | 264 | | |
224 | 265 | | |
225 | 266 | | |
| |||
0 commit comments