Uploaded image for project: 'Maistra'
  1. Maistra
  2. MAISTRA-749

Grafana cannot talk to Prometheus

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • maistra-rc1
    • None
    • operator
    • None
    • RC1

      I could reproduce this by using today's latest-qe images from quay.io.

      When accessing Grafana, everything seems to work until you open a dashboard:

      Templating init failed
      Bad Gateway

      Grafana tries to talk to http://prometheus:9090 which is an HTTPS server, so it's confused:

      2019/08/09 16:40:07 http: proxy error: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02"

      The configmap looks like this - it seems to be missing the basicAuthPassword apart from the wrong scheme

      datasources.yaml: |
      apiVersion: 1
      datasources:

      • access: proxy
        editable: true
        isDefault: true
        jsonData:
        timeInterval: 5s
        name: Prometheus
        orgId: 1
        type: prometheus
        url: http://prometheus:9090

      Something seems to be wrong with the patchGrafanaConfig in the operator

        1. renderings1
          967 kB
        2. renderingsPost
          2.45 MB

            bravery300 Brian Avery (Inactive)
            dgrimm@redhat.com Daniel Grimm
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: