# How to transfer p4runtime meter into to p4info meter?

**URL:** <https://forum.p4.org/t/how-to-transfer-p4runtime-meter-into-to-p4info-meter/896>\
**Category:** P4 Dev\
**Created:** [July 17, 2023, 1:34pm UTC](https://forum.p4.org/t/how-to-transfer-p4runtime-meter-into-to-p4info-meter/896 "2023-07-17T13:34:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ychen](https://avatars.discourse-cdn.com/v4/letter/y/7ea924/32.png) [@ychen](https://forum.p4.org/u/ychen)\
**Post date:** [July 17, 2023, 1:34pm UTC](https://forum.p4.org/t/how-to-transfer-p4runtime-meter-into-to-p4info-meter/896/1 "2023-07-17T13:34:03Z")

</div>

MeterEntry in [https://github.com/p4lang/p4runtime/blob/main/proto/p4/v1/p4runtime.proto](https://github.com/p4lang/p4runtime/blob/main/proto/p4/v1/p4runtime.proto)  
does not have meter type specified  
but Meter in [https://github.com/p4lang/p4runtime/blob/main/proto/p4/config/v1/p4info.proto](https://github.com/p4lang/p4runtime/blob/main/proto/p4/config/v1/p4info.proto)  
has the MeterSpec to define the meter type

so how to mapping a p4runtime DirectMeter/Indirect Meter entry to P4info DirectMeter/IndirectMeter entry?
