aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/1n_nmd/prometheus
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2021-11-08 12:50:51 +0100
committerPeter Mikus <pmikus@cisco.com>2021-11-11 07:25:59 +0000
commitdb7290d702450430e0d58e23f91e34407e08b41c (patch)
tree0350486f05197be82d57755df0dc17b4a71acc97 /fdio.infra.terraform/1n_nmd/prometheus
parent5390d5cedf42ecc0d589d79a0a9d1b346ebb5c11 (diff)
feat(Terraform): Minio S3 gateway proxy
Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: I9543a856a2e5791b61accd7a183bc5a2bf2e6187
Diffstat (limited to 'fdio.infra.terraform/1n_nmd/prometheus')
-rw-r--r--fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl7
-rw-r--r--fdio.infra.terraform/1n_nmd/prometheus/versions.tf (renamed from fdio.infra.terraform/1n_nmd/prometheus/providers.tf)4
2 files changed, 9 insertions, 2 deletions
diff --git a/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl b/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl
index 368a361184..2019aeba96 100644
--- a/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl
+++ b/fdio.infra.terraform/1n_nmd/prometheus/conf/nomad/prometheus.hcl
@@ -596,6 +596,13 @@ scrape_configs:
- server: '{{ env "NOMAD_IP_prometheus" }}:8500'
services: [ 'storage' ]
metrics_path: /minio/prometheus/metrics
+
+ - job_name: 'Minio Proxy'
+ bearer_token: eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJleHAiOjQ3OTAwNjE1NDIsImlzcyI6InByb21ldGhldXMiLCJzdWIiOiJBS0lBUTJBSDdZUFBXVDZDV1hYSSJ9.CU9x9j-yO0_Uta5iep6yqNiGQPolrr2608E3lpU6Yg21rIv_eOwS5zqzXaSvrhzkJP9H5kO1Pj6kqjYhbqjN_w
+ consul_sd_configs:
+ - server: '{{ env "NOMAD_IP_prometheus" }}:8500'
+ services: [ 'minio' ]
+ metrics_path: /minio/v2/metrics/cluster
EOH
}
diff --git a/fdio.infra.terraform/1n_nmd/prometheus/providers.tf b/fdio.infra.terraform/1n_nmd/prometheus/versions.tf
index 1399201d21..b80610a525 100644
--- a/fdio.infra.terraform/1n_nmd/prometheus/providers.tf
+++ b/fdio.infra.terraform/1n_nmd/prometheus/versions.tf
@@ -2,11 +2,11 @@ terraform {
required_providers {
nomad = {
source = "hashicorp/nomad"
- version = "~> 1.4.9"
+ version = "~> 1.4.15"
}
template = {
source = "hashicorp/template"
- version = "~> 2.1.2"
+ version = "~> 2.2.0"
}
}
required_version = ">= 1.0.3"