alloy
alloy copied to clipboard
Alloy graph: handle long component names/labels
For some component names and for long labels, the text will go outside the box. This is not very pretty, we should find a way to improve it
Cropping the names/ids is probably not a good option because if you cant identify the nodes it defeats the purpose of using the graph of debugging
This issue has not had any activity in the past 30 days, so the needs-attention label has been added to it.
If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue.
The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!
Example here from a k8s-monitoring alloy-metrics graph. It looks like we set the value here: https://github.com/grafana/alloy/blob/main/internal/web/ui/src/features/graph/buildGraph.ts#L11
Fiddling around with this locally to see if I can get something pretty - I can submit a draft PR tomorrow for feedback :)