File tree Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Expand file tree Collapse file tree 4 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+
8
+ permissions :
9
+ actions : read
10
+ checks : read
11
+ contents : read
12
+ pull-requests : read
13
+ security-events : write
14
+
7
15
jobs :
8
16
ci :
9
17
uses : SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@main
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ locals {
18
18
promethues_operator_nodeselector = var.promethues_operator_nodeselector
19
19
prometheus_alertmanager_nodeselector = var.prometheus_alertmanager_nodeselector
20
20
prometheus_nodeselector = var.prometheus_nodeselector
21
+
22
+ prometheus_remote_write = jsonencode (var. prometheus_remote_write )
21
23
}
22
24
23
25
grafana_values = {
Original file line number Diff line number Diff line change @@ -2629,7 +2629,7 @@ prometheus:
2629
2629
2630
2630
# # The remote_write spec configuration for Prometheus.
2631
2631
# # ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#remotewritespec
2632
- remoteWrite : []
2632
+ remoteWrite : ${prometheus_remote_write}
2633
2633
# - url: http://remote1/push
2634
2634
# # additionalRemoteWrite is appended to remoteWrite
2635
2635
additionalRemoteWrite : []
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ variable "prometheus_nodeselector" {
151
151
default = " "
152
152
}
153
153
154
+ variable "prometheus_remote_write" {
155
+ description = " Write samples from Prometheus to a remote endpoint"
156
+ type = list (any )
157
+ default = []
158
+ }
159
+
154
160
# ##########################################
155
161
# ####### Grafana Chart Values ########
156
162
# ##########################################
You can’t perform that action at this time.
0 commit comments