Skip to content

Commit

Permalink
Add a new service discovery container using -project=LOCATE_PROJECT (#…
Browse files Browse the repository at this point in the history
…931)

* Add aefProject to gcp-service-discovery command

* Test mlab-ns

* Second gcp-service-config image

* Fix port

* Pass in prometheus address

* Update flags

* Remove flag

* Rename file
  • Loading branch information
cristinaleonr authored Jul 29, 2022
1 parent 4e5823e commit b8114be
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions k8s/prometheus-federation/deployments/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ spec:
name: prometheus-config
- image: measurementlab/gcp-service-discovery:v1.5.1
name: service-discovery
args: [ "--aef-target=/targets/aeflex-targets/aeflex.json",
"--gke-target=/targets/federation-targets/prometheus-clusters.json",
args: [ "--gke-target=/targets/federation-targets/prometheus-clusters.json",
"--http-target=/targets/blackbox-targets/ssh.json",
"--http-source=https://storage.googleapis.com/operator-{{GCLOUD_PROJECT}}/prometheus/blackbox-targets/ssh.json",
"--http-target=/targets/blackbox-targets-ipv6/ssh_ipv6.json",
Expand Down Expand Up @@ -140,7 +139,8 @@ spec:
"--http-source=https://storage.googleapis.com/operator-{{GCLOUD_PROJECT}}/prometheus/bmc-targets/bmc_e2e.json",
"--http-target=/targets/switch-monitoring-targets/switch-monitoring.json",
"--http-source=https://storage.googleapis.com/operator-{{GCLOUD_PROJECT}}/prometheus/switch-monitoring-targets/switch-monitoring.json",
"--project={{GCLOUD_PROJECT}}"]
"--project={{GCLOUD_PROJECT}}",
"--prometheusx.listen-address=:9373"]
ports:
- containerPort: 9373
resources:
Expand All @@ -156,6 +156,26 @@ spec:
- mountPath: /targets
name: prometheus-storage

- image: measurementlab/gcp-service-discovery:v1.5.1
name: service-discovery-locate
args: [ "--aef-target=/targets/aeflex-targets/aeflex.json",
"--project={{LOCATE_PROJECT}}",
"--prometheusx.listen-address=:9374"]
ports:
- containerPort: 9374
resources:
requests:
memory: "150Mi"
cpu: "150m"
limits:
memory: "150Mi"
cpu: "150m"
volumeMounts:
# Mount the the prometheus-storage for write access to the target
# directories.
- mountPath: /targets
name: prometheus-storage

# Check https://hub.docker.com/r/jimmidyson/configmap-reload/tags/ for the current
# stable version.
- image: jimmidyson/configmap-reload:v0.7.1
Expand Down

0 comments on commit b8114be

Please sign in to comment.