Skip to content

Prometheus

Connecting Hawkeye to your Prometheus instance allows it to collect telemetry data, such as metrics, from your infrastructure.

This connection allows you to monitor key performance indicators and resource utilization in real-time through Hawkeye.

Step 1: Set Up Prometheus Integration

To connect Prometheus to Hawkeye, you need to ensure that your Prometheus instance is accessible and configured correctly.

  1. Set up Prometheus: Make sure you have a running Prometheus instance. If you don’t have one, you can install Prometheus by following the official guide.

    prometheus-setup

  2. Check for API accessibility: You can test if the Prometheus API is working by accessing http://<prometheus-server>:9090/api/v1/targets in your browser or using curl:

    Terminal window
    curl http://<prometheus-server>:9090/api/v1/targets

    prometheus-setup

    This should return a list of Prometheus targets that are being monitored.

  3. Gather necessary details: Retrieve the URL of The Prometheus server. This is looks like http://<prometheus-server>:9090.

Step 2: Add Prometheus Connection to Hawkeye

Now that Prometheus is set up and accessible, follow these steps to connect it to the Hawkeye dashboard.

  1. Navigate to the Connections Tab: On the Hawkeye dashboard, go to the Connections section and click on New Connection.

    pagerduty-4

  2. Select Prometheus: From the list of available integrations, choose Prometheus.

    Then, click Next at the top right corner.

  3. Enter Credentials:

    • Name: Give your connection a descriptive name, such as “Prometheus Integration”.
    • Description: Optionally, add a description for the integration.
    • URL: Enter the Prometheus server URL (e.g., http://<prometheus-server>:9090).
  4. Save the connection: Once you’ve filled in the required fields, click Save to complete the setup.

  5. Verify connection: After successfully establishing the connection, navigate back to the connections section in Hawkeye. You should see the Prometheus connection card displayed on your dashboard, indicating that the connection is active.