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.
- Open a terminal window and log on to the OpenShift® server where Prometheus is installed.
- 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. - Run the following command from your terminal
window:
oc get servicemonitor datagate-table-sync-metrics -n "${DATAGATE_NAMESPACE}" -o yaml - Check the screen output. It should include the following settings:
scheme: https tlsConfig: insecureSkipVerify: true
- If scheme: is set to a different value, you must reconfigure your ServiceMonitor element. See step 14 in Setting up Prometheus for instance monitoring