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

Add a dump_all_vars() sample fetch method #1623

Open
wtarreau opened this issue Mar 16, 2022 · 0 comments
Open

Add a dump_all_vars() sample fetch method #1623

wtarreau opened this issue Mar 16, 2022 · 0 comments
Labels
good first issue type: feature

Comments

@wtarreau
Copy link

@wtarreau wtarreau commented Mar 16, 2022

Your Feature Request

Dumping variables for debugging is not an easy thing, neither is placing many of them in a header to pass to an application, or to a monitoring system.

Something convenient would consist in having a dump_all_vars([scope],[prefix]) sample fetch function that produces a list of all variables matching optional scope and optional prefix, in the form var=val, ... for example, possibly with quotes for text ones. It would be particularly handy for those retrieved from stick-tables as described in #1620; in a single request from a monitoring system, an http-request return rule could dump all the counters associated with a given key for example.

The syntax should be made evolutive so that an extension could quickly be added to specify the output format (e.g. produce a JSON-formatted list).

What are you trying to do?

Ease extraction of multiple variables at once without having to repeat their names everywhere and on every line when they all begin with a distinguishable prefix.

Output of haproxy -vv

Would be a nice to have for 2.6. It's supposed not to be difficult to implement.
@wtarreau wtarreau added type: feature good first issue labels Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue type: feature
Projects
None yet
Development

No branches or pull requests

1 participant