Prometheus Drop and Keep are exclusive. So they work against all metrics that match, or all metrics that don't.
What we're doing is taking a metrics like this:
mysql_info_schema_table_size{instance_name="primary-00"}
mysql_info_schema_table_size{instance_name="secondary-00"}
Phase 1 does this:
mysql_info_schema_table_size{instance_name="primary-00",__tmp_keep="true"}
mysql_info_schema_table_size{instance_name="secondary-00"}
Second phase drops where `__tmp_keep` is ""
So all you are left with is
mysql_info_schema_table_size{instance_name="primary-00"}
(Brian's version does the labeldrop automatically)