-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Support prometheus HTTP API and promQL. #10415
Conversation
Once this PR gets merged, please free this public IP. We don't want this gets logged and become a leak one day. |
One TODO, complete docs for PromQL. This should be done through next PR. |
...-query-plugin/src/main/java/org/apache/skywalking/oap/query/prometheus/entity/ErrorType.java
Outdated
Show resolved
Hide resolved
...-plugin/src/test/java/org/apache/skywalking/prometheus/rt/parser/PromQLMatchVisitorTest.java
Outdated
Show resolved
Hide resolved
...us-query-plugin/src/main/java/org/apache/skywalking/oap/query/prometheus/rt/PromOpUtils.java
Outdated
Show resolved
Hide resolved
...n/src/main/java/org/apache/skywalking/oap/query/prometheus/handler/PrometheusApiHandler.java
Outdated
Show resolved
Hide resolved
@Param("match[]") Optional<String> match, | ||
@Param("start") Optional<String> start, | ||
@Param("end") Optional<String> end) throws IOException { |
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.
Why are these 3 parameters not used but listed here?
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.
Reserve these param to keep consistent with API protocol, have add commons on methods
If this is non-trivial feature, paste the links/URLs to the design doc.
Update the documentation to include this new feature.
Tests(including UT, IT, E2E) are added to verify the new feature.
If it's UI related, attach the screenshots below.
If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes [Feature] investigate the possibility for supporting PromQL #10080 .
Update the
CHANGES
log.Support HTTP API list:
Support basic promQL for query traffic/metrics/labeled_metrics/topN/sampled_records from OAP
A Grafana dashboards demo based on this feature can visit:
http://34.92.90.119:3000/
admin/admin
Include: General Service / Service Mesh / Virtual-Database