I don't really understand what you are trying to do. The terminology
doesn't match:
- If your exporter is listening on port 1234, how can it poll port 1234?
- Prometheus is pull-based, so it would poll from port 8081 of your
exporter. The exporter would never "send" to port 8081 on its own, but
would wait for Prometheus to fetch metrics.
Have you read
https://prometheus.io/docs/instrumenting/writing_exporters/ ?
--
Björn Rabenstein, Engineer
http://soundcloud.com/brabenstein
SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany
Managing Director: Alexander Ljung | Incorporated in England & Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B