-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
error gathering metrics: collected metric \"apt_upgrades_pending\" ... was collected before with the same name and label values #1462
Comments
Check in your textfile directory, it sounds like you have a duplicate "apt_upgrades_pending" metric either in two different files or in the same file. |
You are right, what should I do with that file -- is it generated automatically?
|
Ok, I figured that Ubuntu Developers set-up a So I guess the whole point would be to fix the
It outputs:
The raw data that the script processes (I took only the
|
In some cases apt.sh could output duplicated arch values causing the following error: Aug 29 12:12:22 host123 prometheus-node-exporter[2235]: time="2019-08-29T12:12:22Z" level=error msg="error gathering metrics: [from Gatherer prometheus#2] collected metric \"apt_upgrades_pending\" { label:<name:\"arch\" value:\"Debian/Ubuntu\" > label:<name:\"origin\" value:\"PostgreSQLfor\" > gauge:<value:6 > } was collected before with the same name and label values\n" source="log.go:172" Signed-off-by: Andrey Arapov <andrey.arapov@nixaid.com>
In some cases apt.sh could output duplicated arch values causing the following error: Aug 29 12:12:22 host123 prometheus-node-exporter[2235]: time="2019-08-29T12:12:22Z" level=error msg="error gathering metrics: [from Gatherer prometheus#2] collected metric \"apt_upgrades_pending\" { label:<name:\"arch\" value:\"Debian/Ubuntu\" > label:<name:\"origin\" value:\"PostgreSQLfor\" > gauge:<value:6 > } was collected before with the same name and label values\n" source="log.go:172" Signed-off-by: Andrey Arapov <andrey.arapov@nixaid.com>
for master: |
Host operating system:
node_exporter version:
node_exporter command line flags
Are you running node_exporter in Docker?
No.
What did you do that produced an error?
Didn't do anything particular, just looking at the logs.
What did you expect to see?
No error.
What did you see instead?
The following error:
The text was updated successfully, but these errors were encountered: