Skip to content

prometheus job from prometheus/15.2.2

Github source: 9d92e63b or master branch

Properties

prometheus

alerting

Alerting configuration

alertmanager

notification_queue_capacity

The capacity of the queue for pending alert manager notifications

timeout

Alert manager HTTP API timeout

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_format

If set use a syslog logger or JSON logging

log_level

Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]

query

max_concurrency

Maximum number of queries executed concurrently

staleness_delta

Staleness delta allowance during expression evaluations

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

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

local
checkpoint_dirty_series_limit

If approx. that many time series are in a state that would require a recovery operation after a crash, a checkpoint is triggered, even if the checkpoint interval hasn’t passed yet

checkpoint_interval

The period at which the in-memory metrics and the chunks not yet persisted to series files are checkpointed

chunk_encoding_version

Which chunk encoding version to use for newly created chunks

dirty

If set, the local storage layer will perform crash recovery even if the last shutdown appears to be clean

engine

Local storage engine. Supported values are: ‘persisted’ (full local storage with on-disk persistence) and ‘none’ (no local storage)

index_cache_size
fingerprint_to_metric

The size in bytes for the fingerprint to metric index cache

fingerprint_to_timerange

The size in bytes for the metric time range index cache

label_name_to_label_values

The size in bytes for the label name to label values index cache

label_pair_to_fingerprints

The size in bytes for the label pair to fingerprints index cache

num_fingerprint_mutexes

The number of mutexes used for fingerprint locking

pedantic_checks

If set, a crash recovery will perform checks on each series file

retention

How long to retain samples in the local storage

series_file_shrink_ratio

If 0 or smaller, truncation will be performed even for a single dropped chunk, while 1 or larger will effectively prevent any truncation

series_sync_strategy

When to sync series files after modification

target_heap_size

The metrics storage attempts to limit its own memory usage such that the total heap size approaches this value

web

console
libraries

Path to the console library directory

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

Path to the console template directory, available at /consoles

Default
/var/vcap/packages/prometheus/bin/consoles
enable_remote_shutdown

Enable remote service shutdown

external_url

The URL under which Prometheus is externally reachable

max_connections

Maximum number of simultaneous connections

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

telemetry_path

Path under which to expose metric

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/prometheus/ directory (learn more).

  • bin/prometheus_ctl (from bin/prometheus_ctl)
  • 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.