Gauge with data from two connections

I need some help
can we make a gauge with two data sources
For example, I want to display an average coming from an SQL database and have the max threshold coming from a MySQL database
if yes, please tell me how to do it