Skip to content

[Question] Multiple Values Usage #278

Closed Answered by burningalchemist
bruhtus asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @bruhtus! Ah yeah, I just noticed that the weekly result from the query was a timestamp. To become a metric value, the results should be of integer or float. 👍

As for multiple results (limit > 1), we might need to add some information to the metric entry so they aren't duplicated and overlapped. For example, you can add the timestamp column (or a team name, id, whatever) to the key_labels list. So the result would look like this:

participants_weekly{timestamp="2023-07-17 00:00:00 +0700 WIB",participants="total_participants"} 1
participants_weekly{timestamp="2023-07-17 00:00:00 +0700 WIB",participants="weekly"} 1.689659744063e+12
participants_weekly{timestamp="2023-07-16 00:00:00 +0700…

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bruhtus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@burningalchemist
Comment options

@bruhtus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #275 on July 27, 2023 08:56.