You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow using globs in the enum plugin for field and tag keys
Current behavior:
Currently, when using the Enum processor, you can select a field or tag only by their name.
Desired behavior:
It will be possible to select a list of the necessary keys or fields according to the specified mask. Mapping rules apply to the entire list.
It is expected that you can use this configuration:
In our case, such a need arose when analyzing data from kubernetes nodes api (/api/v1/nodes).
A node condition is described by a key "status" in an array of types:
You cannot use he converter processor, because the status key can take values not only True or False, but also Unknown.
The kube_inventory plugin also does not provide this information, so we use a direct request to api and then analyze the received JSON.
Since we are forced to pass a top-level array to the JSON parser (so as not to lose the metedata.name key with the node name), conditions are written as fields status_conditions_%NUMBER%_type or status_conditions_%NUMBER%_status. Then we use the pivot processor.
I note that there are many such processors required, since we are polling several APIs, so we would like to avoid specifying the order of their work and using enum for every possible situation.
The text was updated successfully, but these errors were encountered:
Feature Request
Proposal:
Allow using globs in the enum plugin for field and tag keys
Current behavior:
Currently, when using the Enum processor, you can select a field or tag only by their name.
Desired behavior:
It will be possible to select a list of the necessary keys or fields according to the specified mask. Mapping rules apply to the entire list.
It is expected that you can use this configuration:
Use case:
In our case, such a need arose when analyzing data from kubernetes nodes api (/api/v1/nodes).
A node condition is described by a key "status" in an array of types:
You cannot use he converter processor, because the status key can take values not only True or False, but also Unknown.
The kube_inventory plugin also does not provide this information, so we use a direct request to api and then analyze the received JSON.
Since we are forced to pass a top-level array to the JSON parser (so as not to lose the metedata.name key with the node name), conditions are written as fields
status_conditions_%NUMBER%_type
orstatus_conditions_%NUMBER%_status
. Then we use the pivot processor.I note that there are many such processors required, since we are polling several APIs, so we would like to avoid specifying the order of their work and using enum for every possible situation.
The text was updated successfully, but these errors were encountered: