OpenMetrics

Definition

OpenMetrics is a standard for transmitting metrics data over HTTP, designed to be a successor to the Prometheus exposition format. It provides a consistent and interoperable format for metrics data, enabling seamless integration across different monitoring and observability tools. OpenMetrics aims to improve the efficiency and reliability of metrics collection and processing by offering a well-defined structure and supporting features like content negotiation and streaming.

Secure Settings Example

# Example configuration for a Prometheus server using OpenMetrics
scrape_configs:
  - job_name: 'example'
    metrics_path: '/metrics'
    scheme: 'https'
    tls_config:
      ca_file: '/etc/prometheus/certs/ca.crt'
      cert_file: '/etc/prometheus/certs/client.crt'
      key_file: '/etc/prometheus/certs/client.key'
      insecure_skip_verify: false
    static_configs:
      - targets: ['example.com:443']

Insecure Settings Example

# Insecure configuration for a Prometheus server using OpenMetrics
scrape_configs:
  - job_name: 'example'
    metrics_path: '/metrics'
    scheme: 'http'
    tls_config:
      insecure_skip_verify: true
    static_configs:
      - targets: ['example.com:80']