Optimize the variable of link render

I have a table panel with metrics which was format : 10.0.0.1-hostname.eth1. Then the URL is generated like:
&var-HOST=10.0.0.1-hostname.eth1
The question is how can I remove the last parameter,I expect: &var-HOST=10.0.0.1-hostname for the variable.
Thanks.