aerogearcatalog / metrics-apb

1 stars 23 forks source link

use persistent volumes #2

Closed philbrookes closed 6 years ago

philbrookes commented 6 years ago

convert grafana and prometheus to use PVs and allow the size to be specified during creation.

david-martin commented 6 years ago

@philbrookes Getting this error

TASK [provision-prometheus-apb : Prometheus PVC] *******************************
  | fatal: [localhost]: FAILED! => {"failed": true, "msg": "The task includes an option with an undefined variable. The error was: 'PROMETHEUS_STORAGE_SIZE' is undefined

The error appears to have been in '/opt/ansible/roles/provision-prometheus-apb/tasks/main.yml': line 35, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Prometheus PVC
  ^ here

exception type: <class 'ansible.errors.AnsibleUndefinedVariable'>
exception: 'PROMETHEUS_STORAGE_SIZE' is undefined"}

Will debug.

@philbrookes Ignore this for now, I think it's just a mix of a different apb.yml in aerogearcatalog org while using the new apb image locally

philbrookes commented 6 years ago

@david-martin I did get a conflict on my Dockerfile, I thought I had resolved it properly, but maybe not. I'll take a look locally.