Agent v2.22.0
2 minute read
August 4, 2026
New Features
Prometheus Remote Write Source: Added a
prometheus_remote_write_inputsource node that receives metrics pushed over the Prometheus remote write protocol. The node runs an HTTP server that accepts protobuf-encoded write requests on/api/v1/writeand answers health checks on/healthzand/_/health. It supports server-side TLS, rate limiting, and source metadata.nodes: - name: my_prometheus_remote_write_input type: prometheus_remote_write_input listen: 0.0.0.0 # Address to listen on. Default: 0.0.0.0. port: 9201 # Required. Port number to listen on. read_timeout: 1m # How long to wait for incoming data. Default: 1m. write_timeout: 10s # Response write timeout. Default: 10s. idle_timeout: 1m # Idle connection timeout. Default: 1m. parallel_worker_count: 2 # Number of workers processing incoming requests. channel_size: 1000 # Buffered item count. Default: 1000.HTTP Ingestion Source: Added an
allowed_originsfield to thehttp_ingestion_inputnode that restricts which browser origins may use the node’s ingestion token. It is intended for tokens embedded in public page source, such as those used for real user monitoring. An empty list allows any client, so existing nodes and tokens are unchanged. Once the list is set, the token becomes browser-only and requests without anOriginheader are rejected. A whole leading host label can be a wildcard, sohttps://*.acme.commatchesapp.acme.combut not the apex domain orevilacme.com.nodes: - name: my_http_ingestion_input type: http_ingestion_input allowed_origins: # Browser origins allowed to use this node's token. Default: empty (no restriction). - https://app.acme.com - https://*.acme.com
Improvements
- S3 Source: The agent now sets an extended SQS visibility window when it receives a message and keeps renewing that window while it processes the referenced object. Objects that take longer to process than the queue’s configured visibility timeout are no longer redelivered and processed twice. Renewal stops as soon as the batch is acknowledged.
Security
- Avro Library Replacement: Replaced the archived
hamba/avrolibrary with the maintainediskorotkov/avrofork. - Dependency Upgrades: Upgraded
klauspost/compress,dlclark/regexp2,spf13/cobra, andMasterminds/semverto address known CVEs.