Skip to content

prometheus job from prometheus/22.1.0

Github source: 07d0729 or master branch

Properties

prometheus

external_labels

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

log_format

Set the log target and format

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

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 time to wait between checkpoints of in-memory metrics and chunks not yet persisted to series files

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

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.