Skip to content
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

Merged
merged 16 commits into from
Feb 22, 2023
Merged

Conversation

wankai123
Copy link
Member

@wankai123 wankai123 commented Feb 20, 2023

  • 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:

  • /api/v1/metadata
  • /api/v1/labels
  • /api/v1/label/{label_name}/values
  • /api/v1/series
  • /api/v1/query
  • /api/v1/query_range

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

@wankai123 wankai123 added the backend OAP backend related. label Feb 20, 2023
@wankai123 wankai123 added this to the 9.4.0 milestone Feb 20, 2023
@wu-sheng wu-sheng added the high priority High priority issue, blocking next release. label Feb 20, 2023
@wu-sheng
Copy link
Member

A Grafana dashboards demo based on this feature can visit:
http://34.92.90.119:3000/
admin/admin

Once this PR gets merged, please free this public IP. We don't want this gets logged and become a leak one day.

@wu-sheng
Copy link
Member

One TODO, complete docs for PromQL. This should be done through next PR.

pom.xml Show resolved Hide resolved
Comment on lines 184 to 186
@Param("match[]") Optional<String> match,
@Param("start") Optional<String> start,
@Param("end") Optional<String> end) throws IOException {
Copy link
Member

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?

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend OAP backend related. high priority High priority issue, blocking next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] investigate the possibility for supporting PromQL
3 participants