-
Notifications
You must be signed in to change notification settings - Fork 271
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
Implement relabeling debugger/inspector in Alloy UI and or documentation. #2799
Comments
I love this idea and wanted to implement this myself looong time. May be a good goal for a hackathon project? Our profiling configuration is 1k loc. Combined with What I currently do to debug any issues:
Unresponsive alloy UI probably worth a separate issue Another idea for debugger inspiration could be this feature (not directly applicable, but still) https://www.jetbrains.com/guide/java/tips/debugging-streams/ |
Related to #1921 |
Hey, thanks for the proposal :) I see two use cases:
For the 1st one, my approach to processing steps like relabeling is to use live debugging. You can check in the UI the data that exits the different components in the pipeline and modify your relabelling rules till the data that reaches your last component matches your expectations. Here is a video where I do this: https://www.youtube.com/watch?v=_MbB8IVKMfw&ab_channel=Grafana. For the 2nd use case where the user just want synthetic data to try things, there is a killer coda tutorial available to send logs to loki: https://grafana.com/docs/alloy/latest/tutorials/send-logs-to-loki/#before-you-begin. Maybe we could have a tutorial like this for the other main pipelines? |
Background
I am a Prometheus user for many years, but when it comes to relabelling rules, that still doesn't help me from avoiding unexpected outcomes and debugging sessions.
They are pretty hard to debug and once there is enough complexity either in terms of rules or discovered targets, it gets quite hard to understand.
Proposal
I would like Alloy to implement an UI based relabel debugger, inspired by the existing examples like:
As a major difference I would like Alloy UI to introduce a link from relabel compoments to that debugger, that would feed the current rule set and/or selected discovery.Targets.
I think this could be achieved frontend only, and then we would also be able to host a public play ground (like https://go.dev/play/), that purely works on information submitted in the URL fragment, without that many privacy concerns:
http://grafana.com/docs/alloy/latest/relabel-debug#
While this is helpful for us as experts, it will also make it easier for newer users that can play with example relabelling rules, share them to get help or just tweak them to do what they intend to.
cc @clayton-cornell @korniltsev @jdbaldry
The text was updated successfully, but these errors were encountered: