In general it's not too difficult. Also, depends on your practical experience in diy electronics, of course.
Are you thinking about LEDs type vu-meter or a Needle Meter Movement type?
The meter's "circuit" in general is an "input" buffer amplifier, some sort of meter sensitivity adjustment "facility" and the circuit accociated with LEDs (usually op-amps or a dedicated IC) or some components associated with The Needle Meter.
In your situation, I'd imagine, The first "challenge" would be actually about how to fit it into a pedal. There's not much space there.
The other thing to consider is that VU-meter circuit will suck some life out of Batteries (especially LEDs meter), if your pedals are powered by battery.
If you use power supply, then this would not be a problem.
You can buy a "ready to put together" (or even pre-assembled) LED VU-Meter electronic kit. Search for "LED VU-Meter Kit" or something like that.
I've build few units with VU-meters, and I must say, even though I used pretty much very similar basic circuit configurations for meter sections, but I always had to do some experimenting with components values to get it working "right", depending on specific unit and especially for a specific meter-movement unit. In general I always had to deal with levels and "action".