Closed. This question needs details or clarity . It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post .
Closed 3 days ago.
Improve this question
I have 3 metrics generated by sql_exporter as ints into Prometheus that are showing my SQL instance uptime. How can I merge them in one column in order to have a result like: dd hh:mm ?
I now that if I query the data source I can get this result set easily. But I want to use only 3 template variables to change all my panels to the desired environment/instance/mssqlinstance so I have to pass from the Prometheus data source.
I tried to concatenate them with the transformation Concatenate fields with no success.
1条答案
按热度按时间ckocjqey1#
You can convert you metrics into value in seconds:
And set units of column (Standard options > Unit) to Time >
duration (d hh:mm:ss)