redhat-cop / monitoring

Assets to manage monitoring infrastructure and applications
8 stars 12 forks source link

Grafana datasource #16

Closed tkummer33 closed 4 years ago

tkummer33 commented 4 years ago

What does this PR do?

Add role which configures OCP operated prometheus as a datasource to grafana

How should this be tested?

Run the playbooks/infra-prometheus/setup-prometheus-grafana.yml playbook.

The role loops over "{{ datasources }}". Example inventory below.

datasources:
- name: "openshift-1"
  datasource_url: "https://prometheus-k8s-openshift-monitoring.apps.openshift-1.example.com"
  bearer_token: "prometheus-k8s-secret-token"`

Other configurable variables, below are the default values.

grafana_port: '3000'
grafana_password: 'super_secure_password'
grafana_user: 'admin'

Is there a relevant Issue open for this?

Provide a link to any open issues that describe the problem you are solving. resolves #

Other Relevant info, PRs, etc.

Please provide link to other PRs that may be related (blocking, resolves, etc. etc.)

People to notify

cc: @redhat-cop/monitoring