How to add 2 metrics visualization?

If you are using 5.4 you can achieve this with the Time Series Visual Builder. https://www.elastic.co/guide/en/kibana/current/_featured_visualizations.html

You can do many calculations on aggregations. For example, here is a comparison of average bytes calculated automatically vs manually:

automatically:

Running the calculations manually: