We can reconstruct the set underlying a metric via dom(dom(d))=dom(X×X)=X, so the set of metrics and the set of metric spaces over X are in bijection.
Wikipedia: Metric space
Metric
Hausdorff space