Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[connector/signaltometrics] Implement optional attribute filtering #234

Open
lahsivjar opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@lahsivjar
Copy link
Contributor

Current attribute filtering performed by signal to metrics connector is:

  1. If default_value is specified then ALWAYS produce the metric for the defined configuration. If the attribute is not present in the incoming data then the default value is used else the attribute value from the incoming data is used.
  2. If default_value is NOT specified then only produce the metric for the defined configuration if the incoming data as all the attributes, without default_value, available in the incoming data.

There are cases when we want a third option i.e. an optional attribute. If the attribute is present in the incoming data then include it, else, don't include it. This basically means that there would be another possible classification bucket with that attribute missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant