Skip to content

Prometheus labels API: add response listener#144951

Merged
felixbarny merged 7 commits intoelastic:mainfrom
felixbarny:prometheus-labels-api-response-listener
Mar 26, 2026
Merged

Prometheus labels API: add response listener#144951
felixbarny merged 7 commits intoelastic:mainfrom
felixbarny:prometheus-labels-api-response-listener

Conversation

@felixbarny
Copy link
Copy Markdown
Member

@felixbarny felixbarny commented Mar 25, 2026

Adds PrometheusLabelsResponseListener, which handles the ES|QL query response and formats the result as a Prometheus labels API JSON response. The listener is covered by unit tests in PrometheusLabelsResponseListenerTests.

This is part of a stack implementing the Prometheus labels API endpoint:

Stacking order

@felixbarny felixbarny self-assigned this Mar 25, 2026
@elasticsearchmachine elasticsearchmachine added external-contributor Pull request authored by a developer outside the Elasticsearch team Team:StorageEngine labels Mar 25, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@felixbarny felixbarny requested review from kkrik-es and sidosera March 26, 2026 07:20
@felixbarny felixbarny merged commit 58c7b57 into elastic:main Mar 26, 2026
40 checks passed
@felixbarny felixbarny deleted the prometheus-labels-api-response-listener branch March 26, 2026 13:20
seanzatzdev pushed a commit to seanzatzdev/elasticsearch that referenced this pull request Mar 26, 2026
* Prometheus labels API: add response listener

* Fix invalid Javadoc @link reference in PrometheusLabelsResponseListener

* Fix FakeRestChannel constructor call after removal of responseCount param
seanzatzdev pushed a commit to seanzatzdev/elasticsearch that referenced this pull request Mar 27, 2026
* Prometheus labels API: add response listener

* Fix invalid Javadoc @link reference in PrometheusLabelsResponseListener

* Fix FakeRestChannel constructor call after removal of responseCount param
mamazzol pushed a commit to mamazzol/elasticsearch that referenced this pull request Mar 30, 2026
* Prometheus labels API: add response listener

* Fix invalid Javadoc @link reference in PrometheusLabelsResponseListener

* Fix FakeRestChannel constructor call after removal of responseCount param
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/PromQL PromQL support for Elastic Team:StorageEngine v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants