---
title: "Test connection to the JSON endpoint | Grafana Labs"
description: "Learn how to test the connection to the JSON endpoint"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Test connection to the JSON endpoint

In this milestone, you can check that Grafana Cloud can reach the JSON endpoint. Watch video -&gt;

The settings for the Infinity data source on the configuration page don’t automatically validate the URL. To ensure that your settings, including authentication and API keys, are valid, you need to enable the custom health check in the Health check section of the Configuration page.

> **Note:** The custom health check supports only HTTP GET methods. It verifies the response status code, specifically looking for an HTTP 200 status, but doesn’t check the content of the response.

In this section, you enable the custom health check and test that Grafana Cloud can reach your JSON endpoint.

To test the connection to the JSON endpoint, complete the following steps:

1. On the data source configuration page, select the **Health check** tab.
2. Click the **Enable custom health check** toggle.
3. Enter the JSON endpoint URL.
   
   For example, enter `https://thingspeak.mathworks.com/channels/38629/feed.json`. This JSON endpoint is available to the public and we’ll use it in this journey, but you should use a URL that returns the data you want to use.
4. Click **Save &amp; test**.

When the check succeeds, you see a `Health check successful` message, which confirms Grafana Cloud can reach your JSON endpoint.

In the next milestone you select a private data source connect agent.

Were you successful?

![No](/media/images/svg/thumbs-up.svg) No

![Yes](/media/images/svg/thumbs-up.svg) Yes

Super! You can move to the next step.

* * *

### Troubleshooting

Explore the following troubleshooting topics if you need help:

- [Health check failed](/docs/plugins/yesoreyeram-infinity-datasource/latest/configure/#health-check)

Please tell us what didn't work:

Submit

Submitting...

There was an error with your submission.

Thank you!

Need more support? Check out these [helpful resources.](/help/)
