GET /config/server/events-rabbitmq~topics/{topic}/offsets
Gets the current consumer offsets for a specific RabbitMQ topic in the events-rabbitmq plugin.
This endpoint allows administrators to monitor the current position of consumers for a given topic, which is useful for monitoring message processing status and identifying potential backlogs.
Administrators only. This endpoint requires the ADMINISTRATE_SERVER global capability.
topic: The name of the RabbitMQ topic to get offsets for. This is specified as a path parameter in the URL.
Get the current offsets for the “gerrit” topic:
curl -X GET --user admin:secret \ http://host:port/a/config/server/events-rabbitmq~topics/gerrit/offsets
Response:
)]}'
{
"offsets": [
{
"offset": 162,
"lastUpdated": "2025-10-07T14:30:15.123Z"
},
{
"offset": 158,
"lastUpdated": "2025-10-07T14:30:12.456Z"
},
{
"offset": 145,
"lastUpdated": "2025-10-07T14:29:58.789Z"
}
]
}
Response Fields:
lastUpdated timestamp shows when the offset was last modified, which helps identify stale or inactive consumers.Part of Gerrit Code Review