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

Allow to list tags in hawkular-metrics #161

Merged
merged 1 commit into from
Oct 17, 2016

Conversation

rubenvp8510
Copy link
Contributor

Need to add specs.

@rubenvp8510 rubenvp8510 force-pushed the all_tags branch 2 times, most recently from bf1e665 to 7dacbda Compare October 13, 2016 06:10
@coveralls
Copy link

coveralls commented Oct 13, 2016

Coverage Status

Coverage decreased (-0.1%) to 95.803% when pulling 7dacbda on rubenvp8510:all_tags into 1ea3053 on hawkular:master.

@coveralls
Copy link

coveralls commented Oct 13, 2016

Coverage Status

Coverage increased (+0.09%) to 96.029% when pulling 7dacbda on rubenvp8510:all_tags into 1ea3053 on hawkular:master.

@coveralls
Copy link

coveralls commented Oct 14, 2016

Coverage Status

Coverage increased (+0.03%) to 95.981% when pulling eb0231f on rubenvp8510:all_tags into f2dc1cd on hawkular:master.

@rubenvp8510 rubenvp8510 changed the title [WIP] Allow to list tags in hawkular-metrics Allow to list tags in hawkular-metrics Oct 15, 2016
def tags
tags = []
http_get('/metrics/').map do |g|
g['tags'].map do |k, v|
Copy link
Member

Choose a reason for hiding this comment

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

Can you please check with e.g. @burmanm about tags with a list of values ?

Copy link

Choose a reason for hiding this comment

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

We don't currently support single tag with multiple values. It's currently a solution dependant on how to do this, for example in Openshift integration we do with comma separated list. If there's a need for such in this solution, could you create a JIRA ticket about it? We could then look at implementing it in some sane way..

@@ -69,6 +69,18 @@ def query_stats(gauge_ids: [], counter_ids: [], avail_ids: [], rates: false, sta
http_post(path, data)
end

# Fetch all tags for metrics definitions
# @return [Hash{String=>String}]
def tags
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to allow limiting by key - e.g. 'only return tags that start with app:' ?

@pilhuhn
Copy link
Member

pilhuhn commented Oct 17, 2016

On 17 Oct 2016, at 9:05, Michael Burman wrote:

We don't currently support single tag with multiple values.

This is ok then. I just saw the openshift thing.
Perhaps we should support this here as well (?)

@pilhuhn pilhuhn merged commit 6be7393 into hawkular:master Oct 17, 2016
@pilhuhn
Copy link
Member

pilhuhn commented Oct 17, 2016

Thanks @rubenvp8510

@pilhuhn pilhuhn added this to the 2.8.0 milestone Oct 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants