Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix apt.sh arch duplication (prometheus#1462)
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>
- Loading branch information