Skip to content

Commit 20bfa6a

Browse files
Expose tempo.storage.traces.s3.credentialMode (#63)
This is so we can use AWS STS for S3
1 parent f855a0d commit 20bfa6a

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: server-monitoring-stack
33
description: A reference Helm chart for setting up a monitoring stack for CircleCI server
4-
version: 0.1.0-alpha.5
4+
version: 0.1.0-alpha.6
55
dependencies:
66
- name: prometheus-operator-crds
77
version: 19.0.0

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repository is currently under active development and is not yet a supported
1616

1717
A reference Helm chart for setting up a monitoring stack for CircleCI server
1818

19-
![Version: 0.1.0-alpha.5](https://img.shields.io/badge/Version-0.1.0--alpha.5-informational?style=flat-square)
19+
![Version: 0.1.0-alpha.6](https://img.shields.io/badge/Version-0.1.0--alpha.6-informational?style=flat-square)
2020

2121
## Installing the Monitoring Stack
2222

@@ -58,7 +58,7 @@ Before installing the full chart, you must first install the dependency subchart
5858
Install the Prometheus Custom Resource Definitions (CRDs) and the Grafana operator chart. This assumes you are installing it in the same namespace as your CircleCI server installation:
5959

6060
```bash
61-
$ helm install server-monitoring-stack server-monitoring-stack/server-monitoring-stack --set global.enabled=false --set prometheusOperator.installCRDs=true --version 0.1.0-alpha.5 -n <your-server-namespace>
61+
$ helm install server-monitoring-stack server-monitoring-stack/server-monitoring-stack --set global.enabled=false --set prometheusOperator.installCRDs=true --version 0.1.0-alpha.6 -n <your-server-namespace>
6262
```
6363

6464
> **_NOTE:_** It's possible to install the monitoring stack in a different namespace than the CircleCI server installation. If you do so, set the `prometheus.serviceMonitor.selectorNamespaces` value with the target namespace.
@@ -95,7 +95,7 @@ $ kubectl wait --for=condition=available --timeout=120s deployment/tempo-operato
9595
Next, install the Helm chart using the following command:
9696

9797
```bash
98-
$ helm upgrade --install server-monitoring-stack server-monitoring-stack/server-monitoring-stack --reset-values --version 0.1.0-alpha.5 -n <your-server-namespace>
98+
$ helm upgrade --install server-monitoring-stack server-monitoring-stack/server-monitoring-stack --reset-values --version 0.1.0-alpha.6 -n <your-server-namespace>
9999
```
100100

101101
### 5. Verify Prometheus Is Up and Targeting Telegraf

templates/tempo/tempomonolithic.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spec:
2323

2424
{{- if eq .backend "s3" }}
2525
s3:
26+
credentialMode: {{ .s3.credentialMode }}
2627
secret: {{ .s3.secret }}
2728
{{- end }}
2829

tests/tempo/tempomonolithic_test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,16 @@ tests:
4949
set:
5050
tempo.enabled: true
5151
tempo.storage.traces.backend: s3
52+
tempo.storage.traces.s3.credentialMode: token-cco
5253
tempo.storage.traces.s3.secret: my-s3-secret
5354
tempo.storage.traces.size: 100Gi
5455
asserts:
5556
- equal:
5657
path: spec.storage.traces.backend
5758
value: s3
59+
- equal:
60+
path: spec.storage.traces.s3.credentialMode
61+
value: token-cco
5862
- equal:
5963
path: spec.storage.traces.s3.secret
6064
value: my-s3-secret

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,13 @@ tempo:
180180
# Choose based on your CircleCI server deployment location:
181181

182182
# -- AWS S3 (use if CircleCI server is on AWS)
183+
# backend: s3
183184
# s3:
185+
# credentialMode: "<static|token|token-cco>"
184186
# secret: tempo-s3-secret
185187

186188
# -- Google Cloud Storage (use if CircleCI server is on GCP)
189+
# backend: gcs
187190
# gcs:
188191
# secret: tempo-gcs-secret
189192

0 commit comments

Comments
 (0)