<commit_before>#
# Cookbook Name:: prometheus
# Attributes:: default
#

# Directory where the prometheus binary will be installed
default['prometheus']['dir']                                                              = '/opt/prometheus'

# Location of Prometheus binary
default['prometheus']['binary']                                                           = "#{node['prometheus']['dir']}/prometheus"

# Location of Prometheus pid file
default['prometheus']['pid']                                                              = '/var/run/prometheus.pid'

# Install method.  Currently supports source and binary.
default['prometheus']['install_method']                                                   = 'source'

# Init style.
case node['platform_family']
when 'debian'
  default['prometheus']['init_style']                                                       = 'runit'
when 'rhel', 'fedora'
  default['prometheus']['init_style']                                                       = 'init'
else
  default['prometheus']['init_style']                                                       = 'init'
end

# Location for Prometheus logs
default['prometheus']['log_dir']                                                          = '/var/log/prometheus'

# Prometheus version to build
default['prometheus']['version']                                                          = '0.12.0'

# Prometheus source repository.
default['prometheus']['source']['git_repository']                                         = 'https://github.com/prometheus/prometheus.git'

# Prometheus source repository git reference.  Defaults to version tag.  Can
# also be set to a branch or master.
default['prometheus']['source']['git_revision']                                           = node['prometheus']['source']['version']

# System user to use
default['prometheus']['user']                                                             = 'prometheus'

# System group to use
default['prometheus']['group']                                                            = 'prometheus'

# Set if you want ot use the root user
default['prometheus']['use_existing_user']                                                = false

# Location for Prometheus pre-compiiled binary.
# Default for testing purposes
default['prometheus']['binary_url']                                                       = 'http://sourceforge.net/projects/prometheusbinary/files/latest/download'

# Checksum for pre-compiled binary
# Default for testing purposes
default['prometheus']['checksum']                                                         = 'bab949c3f0cab1557b6aa84ae1c4d9cf7daa09f3c063f7d3fae6fcea12678c0b'

# Prometheus job configuration chef template name.
default['prometheus']['job_config_template_name']                                         = 'prometheus.conf.erb'

# Prometheus custom configuration cookbook.  Use this if you'd like to bypass the
# default prometheus cookbook job configuration template and implement your own
# templates and recipes to configure Prometheus jobs.
default['prometheus']['job_config_cookbook_name']                                         = 'prometheus'

# FLAGS Section: Any attributes defined under the flags hash will be used to
# generate the command line flags for the Prometheus executable.

# Alert manager HTTP API timeout.
default['prometheus']['flags']['alertmanager.http-deadline']                              = '10s'

# The capacity of the queue for pending alert manager notifications.
default['prometheus']['flags']['alertmanager.notification-queue-capacity']                = '100'

# The URL of the alert manager to send notifications to.
default['prometheus']['flags']['alertmanager.url']                                        = ''

# log to standard error as well as files
default['prometheus']['flags']['alsologtostderr']                                         = false

# Prometheus configuration file name.
default['prometheus']['flags']['config.file']                                             = "#{node['prometheus']['dir']}/prometheus.conf"

# when logging hits line file:N, emit a stack trace
default['prometheus']['flags']['log_backtrace_at']                                        = ''

# If non-empty, write log files in this directory
default['prometheus']['flags']['log_dir']                                                 = ''

# log to standard error instead of files
default['prometheus']['flags']['logtostderr']                                             = false

# Staleness delta allowance during expression evaluations.
default['prometheus']['flags']['query.staleness-delta']                                   = '5m0s'

# Maximum time a query may take before being aborted.
default['prometheus']['flags']['query.timeout']                                           = '2m0s'

# logs at or above this threshold go to stderr
default['prometheus']['flags']['stderrthreshold']                                         = 0

# The capacity of the queue of samples to be stored. Note that each slot in the
# queue takes a whole slice of samples whose size depends on details of the scrape
# process.
default['prometheus']['flags']['storage.incoming-samples-queue-capacity']                 = 65536

# 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. A recovery operation requires a disk seek. The default limit
# intends to keep the recovery time below 1min even on spinning disks. With SSD,
# recovery is much faster, so you might want to increase this value in that case
# to avoid overly frequent checkpoints.
default['prometheus']['flags']['storage.local.checkpoint-dirty-series-limit']             = 5000

# The period at which the in-memory index of time series is checkpointed.
default['prometheus']['flags']['storage.local.checkpoint-interval']                       = '5m0s'

# If set, the local storage layer will perform crash recovery even if the last
# shutdown appears to be clean.
default['prometheus']['flags']['storage.local.dirty']                                     = false

# The size in bytes for the fingerprint to metric index cache.
default['prometheus']['flags']['storage.local.index-cache-size.fingerprint-to-metric']    = 10485760

# The size in bytes for the metric time range index cache.
default['prometheus']['flags']['storage.local.index-cache-size.fingerprint-to-timerange'] = 5242880

# The size in bytes for the label name to label values index cache.
default['prometheus']['flags']['storage.local.index-cache-size.label-name-to-label-values']  = 10485760

# The size in bytes for the label pair to fingerprints index cache.
default['prometheus']['flags']['storage.local.index-cache-size.label-pair-to-fingerprints']  = 20971520

# How many chunks to keep in memory. While the size of a chunk is 1kiB, the total
# memory usage will be significantly higher than this value * 1kiB. Furthermore,
# for various reasons, more chunks might have to be kept in memory temporarily.
default['prometheus']['flags']['storage.local.memory-chunks']                             = 1048576

# Base path for metrics storage.
default['prometheus']['flags']['storage.local.path']                                      = '/tmp/metrics'

# How many chunks can be waiting for being persisted before sample ingestion
# will stop.
default['prometheus']['flags']['storage.local.persistence-queue-capacity']                = 32768

# How long to retain samples in the local storage.
default['prometheus']['flags']['storage.local.retention']                                 = '360h0m0s'

# The timeout to use when sending samples to OpenTSDB.
default['prometheus']['flags']['storage.remote.timeout']                                  = '30s'

# The URL of the OpenTSDB instance to send samples to.
default['prometheus']['flags']['storage.remote.url']                                      = ''

# log level for V logs
default['prometheus']['flags']['v']                                                       = 0

# comma-separated list of pattern=N settings for file-filtered logging
default['prometheus']['flags']['vmodule']                                                 = ''
<commit_msg>Removing two deprecated flags that have been removed<commit_after>#
# Cookbook Name:: prometheus
# Attributes:: default
#

# Directory where the prometheus binary will be installed
default['prometheus']['dir']                                                              = '/opt/prometheus'

# Location of Prometheus binary
default['prometheus']['binary']                                                           = "#{node['prometheus']['dir']}/prometheus"

# Location of Prometheus pid file
default['prometheus']['pid']                                                              = '/var/run/prometheus.pid'

# Install method.  Currently supports source and binary.
default['prometheus']['install_method']                                                   = 'source'

# Init style.
case node['platform_family']
when 'debian'
  default['prometheus']['init_style']                                                       = 'runit'
when 'rhel', 'fedora'
  default['prometheus']['init_style']                                                       = 'init'
else
  default['prometheus']['init_style']                                                       = 'init'
end

# Location for Prometheus logs
default['prometheus']['log_dir']                                                          = '/var/log/prometheus'

# Prometheus version to build
default['prometheus']['version']                                                          = '0.12.0'

# Prometheus source repository.
default['prometheus']['source']['git_repository']                                         = 'https://github.com/prometheus/prometheus.git'

# Prometheus source repository git reference.  Defaults to version tag.  Can
# also be set to a branch or master.
default['prometheus']['source']['git_revision']                                           = node['prometheus']['source']['version']

# System user to use
default['prometheus']['user']                                                             = 'prometheus'

# System group to use
default['prometheus']['group']                                                            = 'prometheus'

# Set if you want ot use the root user
default['prometheus']['use_existing_user']                                                = false

# Location for Prometheus pre-compiiled binary.
# Default for testing purposes
default['prometheus']['binary_url']                                                       = 'http://sourceforge.net/projects/prometheusbinary/files/latest/download'

# Checksum for pre-compiled binary
# Default for testing purposes
default['prometheus']['checksum']                                                         = 'bab949c3f0cab1557b6aa84ae1c4d9cf7daa09f3c063f7d3fae6fcea12678c0b'

# Prometheus job configuration chef template name.
default['prometheus']['job_config_template_name']                                         = 'prometheus.conf.erb'

# Prometheus custom configuration cookbook.  Use this if you'd like to bypass the
# default prometheus cookbook job configuration template and implement your own
# templates and recipes to configure Prometheus jobs.
default['prometheus']['job_config_cookbook_name']                                         = 'prometheus'

# FLAGS Section: Any attributes defined under the flags hash will be used to
# generate the command line flags for the Prometheus executable.

# Alert manager HTTP API timeout.
default['prometheus']['flags']['alertmanager.http-deadline']                              = '10s'

# The capacity of the queue for pending alert manager notifications.
default['prometheus']['flags']['alertmanager.notification-queue-capacity']                = '100'

# The URL of the alert manager to send notifications to.
default['prometheus']['flags']['alertmanager.url']                                        = ''

# log to standard error as well as files
default['prometheus']['flags']['alsologtostderr']                                         = false

# Prometheus configuration file name.
default['prometheus']['flags']['config.file']                                             = "#{node['prometheus']['dir']}/prometheus.conf"

# when logging hits line file:N, emit a stack trace
default['prometheus']['flags']['log_backtrace_at']                                        = ''

# If non-empty, write log files in this directory
default['prometheus']['flags']['log_dir']                                                 = ''

# log to standard error instead of files
default['prometheus']['flags']['logtostderr']                                             = false

# Staleness delta allowance during expression evaluations.
default['prometheus']['flags']['query.staleness-delta']                                   = '5m0s'

# Maximum time a query may take before being aborted.
default['prometheus']['flags']['query.timeout']                                           = '2m0s'

# logs at or above this threshold go to stderr
default['prometheus']['flags']['stderrthreshold']                                         = 0

# 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. A recovery operation requires a disk seek. The default limit
# intends to keep the recovery time below 1min even on spinning disks. With SSD,
# recovery is much faster, so you might want to increase this value in that case
# to avoid overly frequent checkpoints.
default['prometheus']['flags']['storage.local.checkpoint-dirty-series-limit']             = 5000

# The period at which the in-memory index of time series is checkpointed.
default['prometheus']['flags']['storage.local.checkpoint-interval']                       = '5m0s'

# If set, the local storage layer will perform crash recovery even if the last
# shutdown appears to be clean.
default['prometheus']['flags']['storage.local.dirty']                                     = false

# The size in bytes for the fingerprint to metric index cache.
default['prometheus']['flags']['storage.local.index-cache-size.fingerprint-to-metric']    = 10485760

# The size in bytes for the metric time range index cache.
default['prometheus']['flags']['storage.local.index-cache-size.fingerprint-to-timerange'] = 5242880

# The size in bytes for the label name to label values index cache.
default['prometheus']['flags']['storage.local.index-cache-size.label-name-to-label-values']  = 10485760

# The size in bytes for the label pair to fingerprints index cache.
default['prometheus']['flags']['storage.local.index-cache-size.label-pair-to-fingerprints']  = 20971520

# How many chunks to keep in memory. While the size of a chunk is 1kiB, the total
# memory usage will be significantly higher than this value * 1kiB. Furthermore,
# for various reasons, more chunks might have to be kept in memory temporarily.
default['prometheus']['flags']['storage.local.memory-chunks']                             = 1048576

# Base path for metrics storage.
default['prometheus']['flags']['storage.local.path']                                      = '/tmp/metrics'

# How long to retain samples in the local storage.
default['prometheus']['flags']['storage.local.retention']                                 = '360h0m0s'

# The timeout to use when sending samples to OpenTSDB.
default['prometheus']['flags']['storage.remote.timeout']                                  = '30s'

# The URL of the OpenTSDB instance to send samples to.
default['prometheus']['flags']['storage.remote.url']                                      = ''

# log level for V logs
default['prometheus']['flags']['v']                                                       = 0

# comma-separated list of pattern=N settings for file-filtered logging
default['prometheus']['flags']['vmodule']                                                 = ''

{'fraction_non_alphanumeric': 0.10446002109050308, 'fraction_numerical': 0.013026487190620929, 'mean_word_length': 2.0773048291658713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 120, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '619708', 'n_tokens_mistral': 3849, 'n_tokens_neox': 3507, 'n_words': 1191}