<p>I have Grafana and Prometheus set up on my k8s cluster. Both were installed thru helm using <a href="https://github.com/helm/charts/tree/master/stable" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable</a>.
Both Grafana and Prometheus are set up thru k8s nginx ingress with my domian addresses.
When I try to set up the Prometheus as a data source in Grafana I get <code>HTTP Error Bad Gateway</code>. In the chrome console in Grafana page I see:</p>

<p><code>http://grafana.domain.com/api/datasources/proxy/1/api/v1/query?query=1%2B1&amp;time=1554043210.447</code></p>

<p><code>Grafana version: Grafana v6.0.0 (commit: 34a9a62)</code></p>

<p>Grafana data source settings for Prometheus:
<code>URL: https://prometheus.mydomain.com:9090</code></p>

<p><code>Access: Server(Default)</code></p>

<p><code>Auth: 
Basic &amp; TLS Client Auth</code></p>

<p>What might be wrong and how to debug/fix it?</p>

camel
<p>In Grafana data source settings  for prometheus database  add prometheus service dns and service port. Like below</p>

<pre><code>&lt;prometheus service name&gt;. Namespace. Svc. Cluster. Local:9090
</code></pre>
