Skip to content

Getting error logs as metrics was collected before with same name and values #401

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

You must be logged in to vote

Hi @wasilmasood, this error usually means that the metric was already collected within a single scrape.

So it could be the metric is specified several times in the configuration. Or the query returns identical rows (which might be distinct because of the entry ID or other columns), but if we don't specify these columns in values (it can be a list of items), they become duplicates and cannot be processed.

So you might want to either update SQL query (e.g. to group them) or specify additional columns to make them unique (metric name + labels combination) for the collector.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants