Skip to content

Commit d955021

Browse files
Merge pull request #91 from ernestas-poskus/bump/prometheus_to_2_9_2
Bump prometheus to 2.9.2
2 parents 75aa6bc + 2a363b1 commit d955021

File tree

5 files changed

+44
-3
lines changed

5 files changed

+44
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ prometheus_snmp_exporter_config_dir: "{{ prometheus_config_dir }}/snmpexporter"
6262
prometheus_blackbox_exporter_config_dir: "{{ prometheus_config_dir }}/blackboxexporter"
6363

6464
# Prometheus
65-
prometheus_version: '2.5.0'
65+
prometheus_version: '2.9.2'
6666
prometheus_platform_architecture: 'linux-amd64'
6767

6868
# Node exporter

defaults/main.yml

+19-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ prometheus_snmp_exporter_config_dir: "{{ prometheus_config_dir }}/snmpexporter"
2424
prometheus_blackbox_exporter_config_dir: "{{ prometheus_config_dir }}/blackboxexporter"
2525

2626
# Prometheus
27-
prometheus_version: '2.5.0'
27+
prometheus_version: '2.9.2'
2828
prometheus_platform_architecture: 'linux-amd64'
2929

3030
# Node exporter
@@ -99,6 +99,9 @@ prometheus_config_remote_read:
9999
prometheus_config__file: "{{ prometheus_config_dir }}/prometheus.yml"
100100
# Prometheus configuration file name.
101101

102+
prometheus_log__format: "logfmt"
103+
# Output format of log messages. One of: [logfmt, json]
104+
102105
prometheus_web__listen_address: ":9090"
103106
# Address to listen on for the web interface, API, and telemetry.
104107

@@ -108,6 +111,9 @@ prometheus_web__read_timeout: '30s'
108111
prometheus_web__max_connections: 512
109112
# Maximum number of simultaneous connections.
110113

114+
prometheus_web__page_title:
115+
# Document title of Prometheus instance.
116+
111117
prometheus_web__external_url:
112118
# The URL under which Prometheus is externally reachable (for
113119
# example, if Prometheus is served via a reverse proxy). Used for
@@ -126,6 +132,9 @@ prometheus_web__user_assets:
126132
prometheus_web__console__templates: 'consoles'
127133
# Path to the console template directory, available at /consoles.
128134

135+
prometheus_web__cors__origin: ".*"
136+
# Regex for CORS origin. It is fully anchored. Eg. 'https?://(domain1|domain2)\.com'
137+
129138
prometheus_web__console__libraries: 'console_libraries'
130139
# Path to the console library directory.
131140

@@ -135,6 +144,15 @@ prometheus_storage__tsdb__path: "{{ prometheus_data_dir }}"
135144
prometheus_storage__tsdb__retention: '15d'
136145
# How long to retain samples in the storage.
137146

147+
prometheus_storage__tsdb__retention__size:
148+
# [EXPERIMENTAL] Maximum number of bytes that can
149+
# be stored for blocks. Units supported: KB, MB,
150+
# GB, TB, PB. This flag is experimental and can
151+
# be changed in future releases.
152+
153+
prometheus_storage__tsdb__retention__time: "{{ prometheus_storage__tsdb__retention }}"
154+
# How long to retain samples in the storage.
155+
138156
prometheus_alertmanager__notification_queue_capacity: 10000
139157
# The capacity of the queue for pending alert manager notifications.
140158

docs/prometheus.md

+18
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ prometheus_config_remote_read:
5858
prometheus_config__file: "{{ prometheus_config_dir }}/prometheus.yml"
5959
# Prometheus configuration file name.
6060

61+
prometheus_log__format: "logfmt"
62+
# Output format of log messages. One of: [logfmt, json]
63+
6164
prometheus_web__listen_address: ":9090"
6265
# Address to listen on for the web interface, API, and telemetry.
6366

@@ -67,6 +70,9 @@ prometheus_web__read_timeout: '30s'
6770
prometheus_web__max_connections: 512
6871
# Maximum number of simultaneous connections.
6972

73+
prometheus_web__page_title:
74+
# Document title of Prometheus instance.
75+
7076
prometheus_web__external_url:
7177
# The URL under which Prometheus is externally reachable (for
7278
# example, if Prometheus is served via a reverse proxy). Used for
@@ -85,6 +91,9 @@ prometheus_web__user_assets:
8591
prometheus_web__console__templates: 'consoles'
8692
# Path to the console template directory, available at /consoles.
8793

94+
prometheus_web__cors__origin: ".*"
95+
# Regex for CORS origin. It is fully anchored. Eg. 'https?://(domain1|domain2)\.com'
96+
8897
prometheus_web__console__libraries: 'console_libraries'
8998
# Path to the console library directory.
9099

@@ -94,6 +103,15 @@ prometheus_storage__tsdb__path: "{{ prometheus_data_dir }}"
94103
prometheus_storage__tsdb__retention: '15d'
95104
# How long to retain samples in the storage.
96105

106+
prometheus_storage__tsdb__retention__size:
107+
# [EXPERIMENTAL] Maximum number of bytes that can
108+
# be stored for blocks. Units supported: KB, MB,
109+
# GB, TB, PB. This flag is experimental and can
110+
# be changed in future releases.
111+
112+
prometheus_storage__tsdb__retention__time: "{{ prometheus_storage__tsdb__retention }}"
113+
# How long to retain samples in the storage.
114+
97115
prometheus_alertmanager__notification_queue_capacity: 10000
98116
# The capacity of the queue for pending alert manager notifications.
99117

templates/prometheus.service.j2

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ User={{prometheus_owner}}
1515
Group={{prometheus_group}}
1616
StandardOutput=journal
1717
StandardError=journal
18+
WorkingDirectory={{ prometheus_install_dir }}/{{ prometheus_archive }}
1819

1920
[Install]
2021
WantedBy=multi-user.target

vars/prometheus.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ prometheus_service_config:
55
- ['alertmanager.notification-queue-capacity', "{{ prometheus_alertmanager__notification_queue_capacity }}"]
66
- ['alertmanager.timeout', "{{ prometheus_alertmanager__timeout }}"]
77
- ['config.file', "{{ prometheus_config__file }}"]
8+
- ['log.format', "{{ prometheus_log__format }}"]
89
- ['log.level', "{{ prometheus_log__level }}"]
910
- ['query.lookback-delta', "{{ prometheus_query__lookback_delta }}"]
1011
- ['query.max-concurrency', "{{ prometheus_query__max_concurrency }}"]
@@ -17,12 +18,15 @@ prometheus_service_config:
1718
- ['storage.remote.read-concurrent-limit', "{{ prometheus_storage__remote__read_concurrent_limit }}"]
1819
- ['storage.remote.read-sample-limit', "{{ prometheus_storage__remote__read_sample_limit }}"]
1920
- ['storage.tsdb.path', "{{ prometheus_storage__tsdb__path }}"]
20-
- ['storage.tsdb.retention', "{{ prometheus_storage__tsdb__retention }}"]
21+
- ['storage.tsdb.retention.size', "{{ prometheus_storage__tsdb__retention__size }}"]
22+
- ['storage.tsdb.retention.time', "{{ prometheus_storage__tsdb__retention__time }}"]
2123
- ['web.console.libraries', "{{ prometheus_web__console__libraries }}"]
2224
- ['web.console.templates', "{{ prometheus_web__console__templates }}"]
25+
- ['web.cors.origin', "{{ prometheus_web__cors__origin }}"]
2326
- ['web.external-url', "{{ prometheus_web__external_url }}"]
2427
- ['web.listen-address', "{{ prometheus_web__listen_address }}"]
2528
- ['web.max-connections', "{{ prometheus_web__max_connections }}"]
29+
- ['web.page-title', "{{ prometheus_web__page_title }}"]
2630
- ['web.read-timeout', "{{ prometheus_web__read_timeout }}"]
2731
- ['web.route-prefix', "{{ prometheus_web__route_prefix }}"]
2832
- ['web.user-assets', "{{ prometheus_web__user_assets }}"]

0 commit comments

Comments
 (0)