Skip to content

prometheus2 job from prometheus/24.1.0

Github source: aa072c6 or master branch

Properties

env

http_proxy

HTTP proxy to use

https_proxy

HTTPS proxy to use

no_proxy

List of comma-separated hosts that should skip connecting to the proxy

prometheus

alert_relabel_configs

Alerting relabel configuration

alertmanager

notification_queue_capacity

The capacity of the queue for pending alert manager notifications

timeout

Timeout for sending alerts to Alertmanager

custom_rules

Array of custom alerting and recording rules

evaluation_interval

How frequently to evaluate rules by default

external_labels

Attach these labels to any time series or alerts when communicating with external systems

log_level

Only log messages with the given severity or above. One of: [debug, info, warn, error]

query

lookback_delta

The delta difference allowed for retrieving metrics during expression evaluations

max_concurrency

Maximum number of queries executed concurrently

max_samples

Maximum number of samples a single query can load into memory

timeout

Maximum time a query may take before being aborted

remote_read

Remote read storage configuration

remote_write

Remote write storage configuration

rule_files

Array of paths to Prometheus rule files

rules

alert
for_grace_period

Minimum duration between alert and restored ‘for’ state

for_outage_tolerance

Max time to tolerate prometheus outage for restoring ‘for’ state of alert

resend_delay

Minimum amount of time to wait before resending an alert to Alertmanager

scrape_configs

Array of scrape configurations

scrape_interval

How frequently to scrape targets by default

scrape_timeout

How long until a scrape request times out

storage

remote
flush_deadline

How long to wait flushing sample on shutdown or config reload

read_concurrent_limit

Maximum number of concurrent remote read calls

read_sample_limit

Maximum overall number of samples to return via the remote read interface, in a single query

tsdb
max_block_duration

Maximum duration compacted blocks may span (defaults to 10% of the retention period)

min_block_duration

Minimum duration of a data block before being persisted

no_lockfile

Do not create lockfile in data directory

retention

How long to retain samples in the storage

web

console
libraries

Path to the console library directory

Default
/var/vcap/packages/prometheus2/bin/console_libraries
templates

Path to the console template directory, available at /consoles

Default
/var/vcap/packages/prometheus2/bin/consoles
cors_origin

Regex for CORS origin

enable_admin_api

Enables API endpoints for admin control actions

enable_lifecycle

Enable shutdown and reload via HTTP request

external_url

The URL under which Prometheus is externally reachable

max_connections

Maximum number of simultaneous connections

page_title

Document title of Prometheus instance

port

Port to listen on for the web interface, API, and telemetry

Default
"9090"
read_timeout

Maximum duration before timing out read of the request, and closing idle connections

route_prefix

Prefix for the internal routes of web endpoints

user_assets

Path to static asset directory, available at /user

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/prometheus2/ directory (learn more).

  • bin/prometheus_ctl (from bin/prometheus_ctl)
  • config/custom.rules.yml (from config/custom.rules.yml)
  • config/prometheus.yml (from config/prometheus.yml)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.