Proposal: add Flow debug.variables
component
#2772
Labels
enhancement
New feature or request
flow
Related to Grafana Agent Flow
frozen-due-to-age
Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
proposal
Proposal or RFC
proposal-rejected
Proposal has been rejected in its current form. Rejected proposals may be revisited in the future.
(Originally discussed in #2766)
I propose a new component called
debug.variables
, which defines a set of variables that can be changed by invoking an API endpoint:Then, one could change the values of variables using the API:
I think a component like this provides some basic level of remote configuration that would be helpful specifically for debugging without having to update the config file. This would also integrate well with conditionals (#2638) to allow dynamically switching between where data get sent:
Details
The
variable
block is a labeled block which defines an individual variable whose value can change. The label of the block defines the name of the variable. Thedefault
attribute provides the original value for the variable. Thedefault
attribute is ignored if a user has provided an explicit value via the API.Variable values must be a type which can be represented in JSON:
Arrays can only have elements matching any of the above types, and Objects can only have values matching any of the above types.
For the initial implementation, it will not be possible to use River expressions from the API, so no capsule values can be used.
UI integration
The UI could show a special view for
debug.variables
which would allow changing the values for variables within the UI itself (and showing the current values).The text was updated successfully, but these errors were encountered: