From aa072c67018631447846d5ca16ab51d4f4d216e5 Mon Sep 17 00:00:00 2001 From: Ferran Rodenas Date: Sat, 9 Feb 2019 19:32:13 -0800 Subject: [PATCH] Add op-file to enable CF API v3 calls --- README.md | 1 + manifests/operators/enable-cf-api-v3.yml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 manifests/operators/enable-cf-api-v3.yml diff --git a/README.md b/README.md index 3c859a08..4462d30d 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ Please review the op files before deploying them to check the requeriments, depe | [alertmanager-web-external-url.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/alertmanager-web-external-url.yml) | Configures the URL under which `alertmanager` is externally reachable | | | | | [configure-bosh-exporter-uaa-client-id.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/configure-bosh-exporter-uaa-client-id.yml) | Configures a custom `bosh_exporter` UAA `client_id` for the [enable-bosh-uaa.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/enable-bosh-uaa.yml) op-file | | | | | [enable-bosh-uaa.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/enable-bosh-uaa.yml) | Configures [monitor-bosh.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/monitor-bosh.yml) to use an UAA client (you must apply the [add-bosh-exporter-uaa-clients.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/bosh/add-bosh-exporter-uaa-clients.yml) op file to your [bosh-deployment](https://github.com/cloudfoundry/bosh-deployment)) | | | | +| [enable-cf-api-v3.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/enable-cf-api-v3.yml) | Enables [Cloud Foundry API V3](https://v3-apidocs.cloudfoundry.org/) calls at the `cf_exporter` | | | | | [enable-cf-route-registrar.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/enable-cf-route-registrar.yml) | Registers `alertmanager`, `grafana`, and `prometheus` as [Cloud Foundry routes](https://docs.cloudfoundry.org/devguide/deploy-apps/routes-domains.html) (under your `system domain`) | | | | | [enable-grafana-uaa.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/enable-grafana-uaa.yml) | Configures `grafana` user authentication to use [Cloud Foundry UAA](https://docs.cloudfoundry.org/concepts/architecture/uaa.html) (you must apply the [add-grafana-uaa-clients.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/cf/add-grafana-uaa-clients.yml) op file to your [cf-deployment](https://github.com/cloudfoundry/cf-deployment)) | | | | | [enable-grafana-generic-oauth.yml](https://github.com/bosh-prometheus/prometheus-boshrelease/blob/master/manifests/operators/enable-grafana-generic-oauth.yml) | Configures `grafana` user authentication to use a generic OAuth2 provider | | | | diff --git a/manifests/operators/enable-cf-api-v3.yml b/manifests/operators/enable-cf-api-v3.yml new file mode 100644 index 00000000..349fa6d3 --- /dev/null +++ b/manifests/operators/enable-cf-api-v3.yml @@ -0,0 +1,5 @@ +# This file assumes cf_exporter is being used: ./monitor-cf.yml + +- type: replace + path: /instance_groups/name=prometheus2/jobs/name=cf_exporter/properties/cf_exporter/cf/api_v3_enabled? + value: true