Make sure that the "ubicloud_resource_role" value in prometheus config is properly updated after a failover or promotion.