Prometheus replica/shard to hashmod mapping

Hi Team,

I am trying to understand on

  1. How Prometheus internally maps the respective hash values (derived from Hashmod function in relabel_config) with respective prometheus-shard/replica ?

  2. Can we customize or map hash values to respective prometheus replicas ?

example:
With shards=4
prometheus-kube-prometheus-stack-prometheus-0
prometheus-kube-prometheus-stack-prometheus-shard-1-0
prometheus-kube-prometheus-stack-prometheus-shard-2-0
prometheus-kube-prometheus-stack-prometheus-shard-3-0

Hash values → [0, 1, 2, 3]

Should the mapping between hash-value & prometheus replica be as following:
0 → prometheus-kube-prometheus-stack-prometheus-0
1–> prometheus-kube-prometheus-stack-prometheus-shard-1-0
2 → prometheus-kube-prometheus-stack-prometheus-shard-2-0
3 → prometheus-kube-prometheus-stack-prometheus-shard-3-0

Thanks & Regards