-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Metricbeat] Add 'query' metricset for prometheus module #17104
[Metricbeat] Add 'query' metricset for prometheus module #17104
Conversation
* Remove array from response body. Original response body has an array (Vector type). It makes difficult to query with Elasticsearch QL. New data schema: "prometheus": { "query": { "mem_usage": { "status": "success", "data": { "resultType": "vector", "result": [ { "metric": {}, "reconciledValue": { "unixtimestamp": 1.576751116531e+09, "value": "2947656593408" } } ] } } } }
* Prometheus API returns "string" type for query result. But actual result type is a number. * Make it easy to use ES SQL
…dev/beats into openinfradev-support-prom-api-query
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Pinging @elastic/integrations-platforms (Team:Platforms) |
Signed-off-by: chrismark <chrismarkou92@gmail.com>
…ort-prom-api-query
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code needs some improvements, but not so much
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
jenkins, test this again |
@exekias this seems to be ready for merge, however would you like to have a look too since you had done the initial review on the initial PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this! Just a few minor questions and comments.
It would be nice to add tests for the other types of queries (range/matrix/string)
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Co-authored-by: esther kim <jabbukka@naver.com> (cherry picked from commit 7c82034)
What does this PR do?
Adds 'query' metricset for prometheus module. It continues the PR #15177, and aims to the cleanups/changes required.
Checklist
How to test this PR locally
docker run -p 9090:9090 prom/prometheus
a.
b.
c.
d.
Change time range accordingly. Also some time is needed so the metrics to have been populated in Prometheus for the respective range
Related issues