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

How to compare/aggregate/filter samples by label's values? #2359

Closed
notariuss opened this issue Jul 16, 2020 · 3 comments
Closed

How to compare/aggregate/filter samples by label's values? #2359

notariuss opened this issue Jul 16, 2020 · 3 comments
Labels
stale A stale issue or PR that will automatically be closed.

Comments

@notariuss
Copy link

For example i have
{app="test", time=1, info="some info 1"}
{app="test", time=3, info="some info 2"}
{app="test", time=5, info="some info 3"}

And i wan't to get only records that have time > 5, or only record with max time of some time range, and another example i need average time of records with specific period of time with specific label values.

Does loki have any features to work with label's values?

@owen-d
Copy link
Member

owen-d commented Jul 16, 2020

@owen-d owen-d closed this as completed Jul 16, 2020
@owen-d owen-d reopened this Jul 16, 2020
@owen-d
Copy link
Member

owen-d commented Jul 16, 2020

labels are only string to string mappings, so we don't (at least currently) have a way to treat a label value as a number like you've asked.

@stale
Copy link

stale bot commented Aug 15, 2020

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale A stale issue or PR that will automatically be closed. label Aug 15, 2020
@stale stale bot closed this as completed Aug 22, 2020
cyriltovena pushed a commit to cyriltovena/loki that referenced this issue Jun 11, 2021
* Rename rest of the dynamodb flags

Fixes cortexproject/cortex#2254

Signed-off-by: Goutham Veeramachaneni <[email protected]>

* Address feedback

Signed-off-by: Goutham Veeramachaneni <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale A stale issue or PR that will automatically be closed.
Projects
None yet
Development

No branches or pull requests

2 participants