You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command huey_exporter will start a webserver (default port 9100) and serves the metrics.
The exporter will explore the Redis instance and therefore find the huey queue names by themself.
Running
Usage: huey_exporter [OPTIONS]
Options:
-c, --connection-string TEXT Connection string to redis including database.
for example redis://localhost:6379/0
-p, --port TEXT Port to expose the metrics on.
--logging-level Logging level of the exporter. Default is INFO.
DEBUG | INFO | WARNING | ERROR
--help Show this message and exit.
Example:
huey_exporter
The huey_exporter can also be configured by the environment variables REDIS_CONNECTION_STRING, LOGGING_LEVEL and EXPORTER_PORT
huey-exporter consists of two modules which work completely independent of each other.
Signal listener
The signal listener subscribes to the hueyx hueyx.huey2.signaling pubsub. Everytime hueyx
receives a huey signal
the exporter receives it and increases the according prometheus counter.
Queue length
The second exporter module is the queue_length counter. The counter first tries to find huey queues on redis by
watching all redis keys with the pattern huey.redis.*. The key only exists if the queue contains at least one element
so it can take some time.
The counter reads all tasks then and reports them to prometheus.