This is what group_left is useful for. For example: redis_keyspace_hits_total * on (job, instance) group_left (redis_version) redis_instance_info
On Wed, Dec 30, 2020 at 11:14 AM [email protected] <[email protected]> wrote: > Hi > I would like to get all instance labels on the below query having the > label role="master": > redis_instance_info > and use it as input of instance label on the below query: > redis_keyspace_hits_total > so that I can get hit ratio of master redises. > How can I do this? > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/50245002-375c-4c80-9cf0-472f5898633fn%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/50245002-375c-4c80-9cf0-472f5898633fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmo8TWzqyOWSAn_fOunCb0d8xR_7AwVL88TZziccSYu6gg%40mail.gmail.com.

