The Prometheus target is "Down" and an EOF error is displayed

The Prometheus target is "Down" and an end-of-file (EOF) error is displayed.

Symptoms

Prometheus does not work. You cannot retrieve Data Gate metrics.

Causes

In most cases, this is caused by a protocol mismatch.

Resolving the problem

Make sure that the ServiceMonitor element of Prometheus uses the https protocol.

  1. Open a terminal window and log on to the OpenShift® server where Prometheus is installed.
  2. Make sure that the following environment variable is set correctly for your environment:
    export DATAGATE_NAMESPACE="<datagate-namespace>"

    where <datagate-namespace> is the name of your Data Gate namespace.

  3. Run the following command from your terminal window:
    oc get servicemonitor datagate-table-sync-metrics 
    -n "${DATAGATE_NAMESPACE}" -o yaml
  4. Check the screen output. It should include the following settings:
    scheme: https
    tlsConfig:
      insecureSkipVerify: true
  5. If scheme: is set to a different value, you must reconfigure your ServiceMonitor element. See step 14 in Setting up Prometheus for instance monitoring