Prometheus

Definition

Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. It is designed to collect metrics from configured targets at specified intervals, evaluate rule expressions, display results, and trigger alerts if certain conditions are observed. Prometheus is known for its multidimensional data model, flexible query language (PromQL), and ability to integrate with various data visualization tools.

Secure Settings Example

global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s

scrape_configs:
  - job_name: 'secure_target'
    static_configs:
      - targets: ['localhost:9090']
    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
    basic_auth:
      username: 'prometheus_user'
      password: 'secure_password'

Insecure Settings Example

global:
  scrape_interval: 15s

scrape_configs:
  - job_name: 'insecure_target'
    static_configs:
      - targets: ['localhost:9090']
    tls_config:
      insecure_skip_verify: true
    basic_auth:
      username: 'admin'
      password: 'admin'