Skip to main content

OpenAgent Release Notes

Latest Version: 1.8.9​


2026-09-30

v1.8.9

Changed Collects metric names and TYPE metadata even when the Prometheus text response contains no HELP.

  • Merges metadata regardless of the order in which HELP and TYPE are declared.
  • Registers valid samples that also lack TYPE as untyped.
  • Existing metric values, labels, timestamps, and relabel behavior remain unchanged.

2026-07-30

v1.8.6

Fixed Fixed an issue where query parameter values were applied twice when params was set on a scrape target.

  • Applies to all target types that use params (StaticEndpoints, ServiceMonitor, PodMonitor).

2026-07-09

v1.8.5

New Added Authorization (Bearer) header authentication for scrape targets

  • Added support for authenticating Prometheus scrape targets with an Authorization header, configured via an authorization block on the endpoint in scrape_config.yaml.
  • The scheme (type) defaults to Bearer, and a custom scheme can be specified (e.g. Token, ApiKey).
  • Supports 4 credential sources (priority: inline → environment variable → file → Secret, first valid value used): credentials, credentialsEnv, credentialsFile, credentialsSecret.
  • Authentication priority is Authorization → Basic Auth → K8s ServiceAccount token; when authorization is configured, the ServiceAccount token fallback is suppressed.
  • Added file-based sources for Basic Auth (usernameFile, passwordFile).
  • Usage examples
    # 1) Inline
    authorization:
    type: Bearer # defaults to Bearer if omitted
    credentials: "my-secret-token"

    # 2) Environment variable (uses $OPENAGENT_SCRAPE_TOKEN)
    authorization:
    type: Bearer
    credentialsEnv: OPENAGENT_SCRAPE_TOKEN

    # 3) File (supports token rotation)
    authorization:
    type: Bearer
    credentialsFile: "secret/scrape_token"

    # 4) K8s Secret
    authorization:
    type: Bearer
    credentialsSecret:
    name: my-secret
    key: token

    # 5) Custom scheme (e.g. ApiKey) -> "Authorization: ApiKey abc123"
    authorization:
    type: ApiKey
    credentials: "abc123"
  • Full endpoint configuration example
    features:
    openAgent:
    enabled: true
    targets:
    - targetName: token-exporter
    type: StaticEndpoints
    enabled: true
    endpoints:
    - address: "localhost:9530"
    path: "/metrics"
    scheme: "http"
    interval: "30s"
    authorization:
    type: Bearer
    credentialsFile: "secret/scrape_token"