Diagnose OTLP setup
Samples recent OTLP events and reports how many carry the fields needed to map an event to a workstation and a person. Use it when telemetry arrives but does not appear against the right host. Enterprise only.
curl -X GET "https://www.agentkeeper.dev/api/v1/otlp/setup-health" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://www.agentkeeper.dev/api/v1/otlp/setup-health"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://www.agentkeeper.dev/api/v1/otlp/setup-health", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://www.agentkeeper.dev/api/v1/otlp/setup-health", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://www.agentkeeper.dev/api/v1/otlp/setup-health')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"last_events": [
{}
],
"stats": {
"total_events_sampled": 42,
"raw_events_sampled": 42,
"runtime_events_ignored": 42,
"host_name_present_count": 10,
"host_name_present_pct": 42,
"session_id_present_count": 123,
"session_id_present_pct": 123,
"actor_mapped_count": 10,
"actor_mapped_pct": 42,
"mapped_count": 10,
"mapped_pct": 42,
"latest_event_at": "null",
"correlation_key_count": 10,
"session_correlation_sample_count": 10,
"session_correlation_sample_pct": 42,
"actor_only_count": 10,
"unmapped_identities": [
{}
]
},
"warnings": [
{
"code": "session_correlation_missing",
"message": "example_string",
"severity": "info"
}
]
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
GET
/api/v1/otlp/setup-health
GET
Base URLstring
Target server for requests. Edit to use your own host.
Bearer Token
Bearer Tokenstring
RequiredAn AgentKeeper API key, sent as Authorization: Bearer ak_live_….
An AgentKeeper API key, sent as
Authorization: Bearer ak_live_….Request Preview
Response
Response will appear here after sending the request
Authentication
header
Authorizationstring
RequiredBearer token. An AgentKeeper API key, sent as Authorization: Bearer ak_live_….
Responses
last_eventsobject[]
statsobject
warningsarray
Was this page helpful?