Skip to content

Support get metric by name#8370

Closed
Userwhite wants to merge 2 commits intoapache:masterfrom
Userwhite:support_get_metric_by_name
Closed

Support get metric by name#8370
Userwhite wants to merge 2 commits intoapache:masterfrom
Userwhite:support_get_metric_by_name

Conversation

@Userwhite
Copy link
Copy Markdown
Contributor

Proposed changes

add api parameter for metric name

Problem Summary:

support get metric by name(url)

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

std::string to_prometheus(bool with_tablet_metrics = false) const;
std::string to_json(bool with_tablet_metrics = false) const;
std::string to_core_string() const;
std::string to_json_by_name(const std::string& name, const std::string& group) const;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no problem at the code level, but what is the main phenomenon after adding this function?

@EmmyMiao87 EmmyMiao87 self-assigned this Mar 9, 2022
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 6, 2022

We're closing this PR because it hasn't been updated in a while.
This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and feel free a maintainer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Sep 6, 2022
@github-actions github-actions bot closed this Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants