Useful on certain occasions is the MPLS-aware Netflow feature. MPLS-aware Netflow collects statistics for labeled packets and can report them on a label position in the label stack. You can specify up to three label positions in the label stack to keep track of. The command to enable MPLS-aware Netflow globally is this:
ip flow-cache mpls label-positions [label-position-1 [label-position-2 [label-position-3]]] [mpls-length] [no-ip-fields]
You can specify up to the sixth label in the label stack. A prerequisite for this feature is enabling Netflow on the interface with the command ip route-cache flow [input]. To view a snapshot of the MPLS-aware Netflow cache on the router, use the command show ip cache verbose flow.