Metric structures of inviscid flows