My mistake, you also have to match the trailing junk after the last dot. Try:
"name", "$1", "name", "(.*)[.].*" -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/037412e4-a766-40e0-b4f3-a765c02bdec6o%40googlegroups.com.