Verify Prometheus metrics are written to an endpoint
While installing and configuring Prometheus in your local environment is out of scope for this journey, a good first step in this journey is to verify that your system is writing metrics to the Prometheus endpoint.
To verify Prometheus metrics are written to an endpoint:
Log into the machine on which Prometheus is installed.
If required, switch to a user that has administrative privileges.
To check the Prometheus service status, run the following command:
systemctl status prometheus.service
You should see something similar to the following:
To ensure that Prometheus is capturing the metrics, open a browser tab and navigate to the metrics endpoint URL.
For example, navigate to
http://localhost:9090/metrics
You should see something similar to the following:
Tip
Consult the Prometheus documentation if you are unable to run the Prometheus service or can’t verify that Prometheus is capturing metrics.
At this point in your journey, you can explore the following paths:
Send data from a Prometheus instance
Send data from multiple Prometheus instances
Send data from multiple high-availability Prometheus instances