Skip to content

Add cluster and per-database metrics toggles to collector components - #139

Open
paweljw wants to merge 1 commit into
mainfrom
collector-metrics-component-toggles
Open

Add cluster and per-database metrics toggles to collector components#139
paweljw wants to merge 1 commit into
mainfrom
collector-metrics-component-toggles

Conversation

@paweljw

@paweljw paweljw commented Aug 28, 2026

Copy link
Copy Markdown
Member

The collectors API now exposes finer-grained metrics component toggles. This models them in the logtail_collector resource and data source:

  • metrics_cluster — canonical name for the cluster agent toggle. The API treats the existing metrics_databases as a legacy alias for the same setting and gives metrics_cluster precedence when both are sent; metrics_databases is marked deprecated here accordingly.
  • metrics_postgres, metrics_mysql, metrics_elasticsearch, metrics_pgbouncer — independent per-database Prometheus exporter toggles, enabled by default server-side.

Unknown keys were previously dropped from the PATCH payload, so modeling them also makes the provider preserve these settings on configuration updates.

Docs regenerated with make gen; the collector example demonstrates the new fields. Mock-server unit tests cover the round trip of the new keys and the deprecated alias. make test passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant