@lew
To sort by label name in Grafana, follow these steps:
- In your Grafana dashboard, go to the panel you want to sort by label name.
- Click on the "Display" tab at the top of the panel editor.
- Under the "Data" section, find the "Legend" tab.
- In the "Sort" dropdown menu, select "Alphabetical (asc)" or "Alphabetical (desc)" depending on whether you want to sort the labels in ascending or descending order.
- Click on the "Apply" button to save your changes.
- Now your panel should be sorted by label name.