Tags: DataDog/saluki
Tags
enhancement(prefix filter): add dynamic blocklist capabilities (#906) ## Summary <!-- Please provide a brief summary about what this PR does. This should help the reviewers give feedback faster and with higher quality. --> This pr wires up the new config update mechanism to the prefix transform. When `statsd_metric_blocklist` is updated, `DogstatsDPrefixFilter` will create a new instance of `Blocklist` with the new values. ## Change Type - [ ] Bug fix - [x] New feature - [ ] Non-functional (chore, refactoring, docs) - [ ] Performance ## How did you test this PR? <!-- Please how you tested these changes here --> PREREQUISITES: 1. Agent version `7.71.0-rc.1` or greater for the agent config stream feature. 2. Access to an org with the metrics filtering feature. (DM if need more info) I created a container with the converged datadog agent image (`make build-datadog-agent-image`) On startup, you should see that the agent has received an initial blocklist configuration from existing policies . You can also see that ADP has received this same configuration (`agent-data-plane config` to see). Using the metrics filtering feature on the datadog website, add or remove a metric from a policy. Verify that the blocklist has changed for ADP. There is a log `"Updated metric blocklist"`, but also you can try sending a metric and it will be filtered out. Run `agent-data-plane config` to see the new values of the blocklist. ## References <!-- Please list any issues closed by this PR. --> <!-- - Closes: <issue link> --> <!-- Any other issues or PRs relevant to this PR? Feel free to list them here. -->
enhancement: add log level override subcommand to ADP binary (#767) ## Summary This PR adds two debug subcommands for dynamically configuring the log level of the ADP process: `debug set-log-level` and `debug reset-log-level`. For setting the log level, this should be `agent-data-plane debug set-log-level`. The subcommand would call out to /logging/override. For resetting the log level, this should be `agent-data-plane debug reset-log-level`. The subcommand would call out to /logging/reset. ## Change Type - [ ] Bug fix - [x] New feature - [ ] Non-functional (chore, refactoring, docs) - [ ] Performance ## How did you test this PR? Manually tested by running the run-adp-standalone and testing various set and reset commands ## References Closes #731.
PreviousNext