Visualization, Trim String

Hi,

I’ve a variable called $url like = x.domain.com y.domain.com z.domain.com … I’m displaying up/down state in a “single stats” panel and displaying the name as $url.

I want to display the $url variable as x y z only without the “.domain.com” part but I’ve to collect the information as full url. Is there very to trim/separate this string in grafana? If you have alternative approaches, I would like to hear 'em.

Thanks,

1 Like