I am trying to write a regex that will ignore the first two octets 'name.name-name.presto.worker' but will match the rest which is 'presto.worker'.
I have two different domain names that follow the same structure like I shown above and I need the monitoring system to catch both domains using the two last octects presto.worker.
My last regex that I have found that almost work is:
count(up{instance="/[A-Za-z.]+[A-Za-z.-]+(presto.)+(worker)/g"})
It's for Prometheuse monitoring system. Thanks for the help Yaniv