fedmsg (Fedora-Messaging) is a Python package and API used around Fedora Infrastructure to send and receive messages to and from applications.
Quick setup from here:
fedmsg-relay
packageendpoints={ "__main__.HOSTNAME": [ "tcp://127.0.0.1:4320", ]
the HOSTNAME is your local host name, see hostname(1)
fedmsg-relay
service.fedmsg-tail --really-pretty &
echo "Hello, world" | fedmsg-logger
To have endpoint where to listen all messages, need fedmsg-gateway
daemon.
Install fedmsg-gateway
package, no configuration needed.
Now you can define in your endpoints.py
to listen for pld messages:
endpoints={ "pld-relay": [ "tcp://ep09.pld-linux.org:9940", ],
To configure accepting incoming messages on tcp/2003
, install fedmsg-relay
package and configure relay.py
:
relay_inbound=[ "tcp://ep09.pld-linux.org:2003", ],
To configure sending local fedmsg-logger
events to central hub, install fedmsg-relay
package and configure relay.py
:
relay_inbound=[ "tcp://ep09.pld-linux.org:2003", ],
No need to start relay daemon.
anitya is a cross-distribution upstream release monitoring project, under https://release-monitoring.org address.
To monitor their events via fedmsg:
$ poldek -u fedmsg
# anitya endpoint definition: https://release-monitoring.org/fedmsg config = dict( # This is a dict of possible addresses from which fedmsg can send # messages. fedmsg.init(...) requires that a 'name' argument be passed # to it which corresponds with one of the keys in this dict. endpoints={ "anitya-public-relay": [ "tcp://release-monitoring.org:9940", ], }, )
$ fedmsg-tail --really-pretty