Skip to content

Commit c679db9

Browse files
authored
Merge pull request #304 from m-lab/sandbox-prometheus2-dataprocessing-upgrade
Sandbox prometheus 2.x dataprocessing upgrade
2 parents 79c7983 + 8eb32e0 commit c679db9

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

k8s/data-processing-cluster/deployments/prometheus.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,13 @@ spec:
4747
containers:
4848
# Check https://hub.docker.com/r/prom/prometheus/tags/ for the current
4949
# stable version.
50-
- image: prom/prometheus:v1.8.2
50+
- image: prom/prometheus:v2.3.2
5151
# Note: the container name appears to be ignored and the actual pod name
5252
# is derived from the Deployment.metadata.name. However, removing this
5353
# value results in a configuration error.
5454
name: prometheus
5555
# Use 10x the default values for all index cache flags:
56-
args: ["-config.file=/etc/prometheus/prometheus.yml",
57-
"-storage.local.path=/prometheus",
58-
"-storage.local.index-cache-size.fingerprint-to-metric=104857600",
59-
"-storage.local.index-cache-size.fingerprint-to-timerange=52428800",
60-
"-storage.local.index-cache-size.label-name-to-label-values=104857600",
61-
"-storage.local.index-cache-size.label-pair-to-fingerprints=20971520"]
56+
args: ["--config.file=/etc/prometheus/prometheus.yml"]
6257
ports:
6358
- containerPort: 9090
6459
resources:
@@ -70,9 +65,9 @@ spec:
7065
cpu: "1500m"
7166
volumeMounts:
7267
# /prometheus stores all metric data. Declared as VOLUME in base image.
73-
- mountPath: /prometheus
68+
- mountPath: /data
7469
name: prometheus-storage
75-
subPath: prometheus-data
70+
subPath: prometheus-data2
7671
# /legacy-targets should contain legacy target configuration files.
7772
- mountPath: /legacy-targets
7873
name: prometheus-storage

0 commit comments

Comments
 (0)