Patch Changes
-
ab563d2: Stop the collector logging a
ParseJSONsyntax error for every log body that
contains braces but isn't JSON (e.g. Go struct or Python dict dumps). JSON
extraction now only matches objects that start with a quoted key, and remaining
parse failures in that statement group are silenced. -
ca8e3fd: fix: support https for the PromQL remote-write endpoint and ClickHouse scraping
CLICKHOUSE_PROMETHEUS_METRICS_ENDPOINTnow accepts anhttp://orhttps://URL as well as a barehost:port. Withhttps://, the collector'sprometheusremotewriteexporter sends metrics over TLS and verifies the server certificate against the system CAs. Previously the exporter always used plain HTTP, so an HTTPS-only endpoint could not receive metrics. This applies to both standalone and OpAMP-managed collectors.A bare
host:portkeeps plain HTTP, so existing setups are unchanged. The value must not include a path (/writeis still appended automatically); the collector now exits at startup with a clear error if it does, or if the scheme is anything other thanhttporhttps.The OpAMP-managed collector scraped the endpoint over plain HTTP regardless of its scheme. ClickHouse is now scraped in its own
clickhousejob (previously theotelcoljob) using the endpoint's scheme, with TLS verification on. The collector's own metrics endpoint stays on plain HTTP. A barehost:portorhttp://endpoint behaves as before. Scraped ClickHouse metrics now carryjob="clickhouse"instead ofjob="otelcol".