Skip to content

prometheus job from prometheus/12.3.2

Github source: ca9a3876 or master branch

Properties

prometheus

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

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

max_chunks_to_persist

How many chunks can be waiting for persistence before sample ingestion will be throttled

memory_chunks

How many chunks to keep in memory

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

remote
graphite
address

The host:port of the remote Graphite server to send samples to. None, if empty

prefix

The prefix to prepend to all metrics exported to Graphite. None, if empty

transport

Transport protocol to use to communicate with Graphite

influxdb
database

The name of the database to use for storing samples in InfluxDB

password

The password to use when sending samples to InfluxDB

retention_policy

The InfluxDB retention policy to use

url

The URL of the remote InfluxDB server to send samples to. None, if empty

username

The username to use when sending samples to InfluxDB

opentsdb
url

The URL of the remote OpenTSDB server to send samples to. None, if empty

timeout

The timeout to use when sending samples to the remote storage

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

port

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

Default
"9090"
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.