Skip to content

Potential duplicate volume metrics #95

@na50r

Description

In this query

If a volume has multiple volume attachments, the LEFT JOIN will make v.id (id of volume) lose its primary key property that it gets from the db; so it is not unique anymore. When you then construct the metric using those values, you end up with two identical metrics which will trigger a panic and crash the whole exporter.

Using:
LEFT JOIN volume_attachment va ON v.id = va.volume_id AND va.deleted = 0 AND va.attach_status = "attached"
Seems to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions