You can spin up a test setup for pushing and viewing metrics with docker-compose up. Then use the flag --push-metrics http://127.0.0.1:8428/api/v1/import/prometheus to push metrics.
docker-compose up
--push-metrics http://127.0.0.1:8428/api/v1/import/prometheus