I have been reviewing labels not produced compared to the ONTAPI counterparts and maybe my understanding of where the labels come from in REST vs ONTAPI.
Here's the snapmirror label metric from a ontapi based metric:
snapmirror_labels{derived_relationship_type="load_sharing",group_type="",healthy="true",last_transfer_error="",last_transfer_type="",local="true",policy_type="",protectedBy="",protectionSourceType="",relationship_status="idle",relationship_type="load_sharing",schedule="15min",unhealthy_reason="",policy="",mirror_state="snapmirrored",datacenter="HPC",cluster="node",destination_location="node://vservera/vservera_rootvol_m34_17b",destination_node="",destination_volume="vservera_rootvol_m34_17b",destination_vserver="vservera",relationship_id="",source_cluster="node",source_volume="vservera_rootvol",source_vserver="vservera"} 1.0
when I try and mimic this in REST, I get this:
snapmirror_labels{derived_relationship_type="load_sharing",destination_cg_name="",fl_healthy="true",group_type="",healthy="true",last_transfer_error="",last_transfer_type="",local="true",policy="",policy_type="",protectedBy="",protectionSourceType="",relationship_state="",relationship_status="idle",relationship_type="load_sharing",schedule="15min",source_cg_name="",state="",unhealthy_reason="",datacenter="HPC",cluster="node",destination_location="node://vservera/vservera_rootvol_m34_17b",destination_node="",destination_volume="vservera_rootvol_m34_17b",destination_vserver="vservera",relationship_id="",source_cluster="node",source_location="node://vservera/vservera_rootvol",source_volume="vservera_rootvol",source_vserver="vservera"} 1.0
While they look much the same, the part that is confusing me is the 'state' in the REST portion. mirror_state in the ONTAPI shows 'snapmirrored' and I expected the same from REST but that isn't being populated in the REST metric.
38.767103458 -0800