How to sum different db instance`s QPS together?

I use eleasticseach as storage,index is mysqlmonitor{tps,qps,hostip,port,@timestamp,etc}.
For example,i have a web app use four dbs on two host(every host have two mysql instance).
For a general view,I want know this web apps whole qps (sum four dbs max qps together as one line on a graph)。 How to do this? the "sum" on metrics pannel seems to be sum a db instances qps on a time range。

Not sure Elastic supports this type query.