Skip to content

Support collStats and indexStats on AWS DocDB #1264

@MatthiasDrewsCS

Description

@MatthiasDrewsCS

Is your feature request related to a problem? Please describe.
The MongoDB exporter works fine with AWS DocDB. However the collStats and indexStats collectors are failing. The reason seems to be a query which fails on AWS side:

2026-03-30T14:36:59.957272165Z time=2026-03-30T14:36:59.957Z level=ERROR source=indexstats_collector.go:82 msg="cannot list collections" collector=indexstats error="cannot list the collections for \"database1\": cannot get the list of collections for discovery: Field 'type' is currently not supported"

This happens both with --discovering-mode, or --no-discovering-mode with --mongodb.collstats-colls and --mongodb.indexstats-colls

Describe the solution you'd like
The MongoDB exporter should be able to export collStats and indexStats from a AWS DocDB, at least with --no-discovering-mode

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions