Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.52 KB

Metrics.adoc

File metadata and controls

41 lines (30 loc) · 1.52 KB

Metrics for Babylon clusters

Metrics for Dark Tower

Ansible Tower metrics

  1. Create a regular user with system-auditor (read-only) permissions

  2. Then follow https://docs.ansible.com/ansible-tower/latest/html/administration/metrics.html to add this to your prometheus custom instance.

node-exporter metrics

If you used agnosticd ansible-tower config to deploy Dark-Tower, then node-exporter is installed on all tower masters and the support1 instance (postgresql). The port 9100 is open.

On your custom prometheus instance, edit the config file prometheus.yml and add your config to scrape_configs:

prometheus.yml
scrape_configs:
  - job_name: "babylon-tower-nodes"
    static_configs:
      - targets:
        - "YOUR-TOWER1-HOSTNAME:9100"
        - "YOUR-TOWER2-HOSTNAME:9100"
        - "YOUR-TOWER3-HOSTNAME:9100"
        - "YOUR-SUPPORT1-HOSTNAME:9100"

Add OpenShift Prometheus as a datasource to a centralized grafana

  1. oc get secret prometheus-k8s-htpasswd -o yaml -n openshift-monitoring

  2. convert to file

  3. add an entry (new user/password) using the htpasswd command

  4. convert the file to using base64 command

  5. edit the secret and replace the data

  6. restart the prometheus-k8s-* pods in the openshift-monitoring namespace

  7. go to granafan and add the datasource using the https route and the basic auth login/password you just added in the htpasswd