As a matter of safety, fuel pressure gauges are not mounted INSIDE the cockpit. Two reasons: 1) Fuel inside the cockpit. and B) Fuel inside the cockpit with ignition potential (i.e. electrical wires)
For a fire to burn you need 3 things:
1) Fuel
2) Source of ignition
3) Oxygen
So assuming that you have a fuel leak at the gauge, even a minor leak, and then have a wire short of any kind, imagine blowing on the ignited fire from the wind as you drive down the road. Bad idea for a permanent setup.
For testing, maybe OK but carry a fully charged extinguisher.