Grafana deployment specifies the prometheus datasource incorrectly. The current configuration without the protocol will work for graphing but will cause errors when you setup alerts.
The link to the prometheus datasource should include the protocol (aka prepend http://)
To Reproduce*
Steps to reproduce the behavior:
Deploy this project with Grafana
Try to make an alert in Grafana
Have it get triggered and view the error stating it is missing the protocol
Expected behavior
Alerting should work out of the box
Additional context
To fix this yourself, apply the following overlay:
#! A bug in Grafana if you do not specify the protocol scheme alerting will stop
#! working. By default CF does not.
#@overlay/match by=overlay.subset({"kind": "ConfigMap", "metadata": {"name": "grafana-datasources"}})
---
data:
prometheus.yml: |
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-server.cf-system.svc.cluster.local
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.
The labels on this github issue will be updated when the story is started.
Describe the bug
Grafana deployment specifies the prometheus datasource incorrectly. The current configuration without the protocol will work for graphing but will cause errors when you setup alerts.
The link to the prometheus datasource should include the protocol (aka prepend
http://
)To Reproduce*
Steps to reproduce the behavior:
Expected behavior
Alerting should work out of the box
Additional context
To fix this yourself, apply the following overlay: