Docs » Other data ingestion methods » Observability Cloud REST APIs for sending data points

Observability Cloud REST APIs for sending data points 🔗

On top of sending data to Splunk Infrastructure Monitoring by using an integration or SDK library, you can also use the API. Infrastructure Monitoring persists incoming data for further use.

Learn more in the developer documentation. For instance, see how to send data points using the API, or how to send metrics.

Start sending data using the API 🔗

Start experimenting with Infrastructure Monitoring by sending data using the following curl command:

curl --request POST \
  --header "Content-Type: application/json" \
  --header "X-SF-TOKEN: <ORG_TOKEN>" \
  --data \
      "gauge": [
              "metric": "",
              "dimensions": { "host": "server1" },
              "value": 42
  }' \

Send custom metrics using the API 🔗

To send custom metrics, replace <ORG_TOKEN> with an org token for your organization in the code block provided as an example.

In Observability Cloud UI, an org token is called an access token. To learn how to obtain an org token, see Create and manage organization access tokens using Splunk Observability Cloud.

When you send a request, use the endpoint specific to your realm. Replace <REALM> with the name of your realm, which you can find on your profile page in the user interface. To learn more, see Realms in endpoints.