OTLP to Grafana Cloud
Use this guide to send collector logs to Grafana Cloud through OTLP.
1. Get Grafana Cloud OTLP Credentials
Section titled “1. Get Grafana Cloud OTLP Credentials”From your Grafana Cloud stack, collect:
- OTLP gateway endpoint (region-specific)
- Basic auth credentials or token for OTLP logs ingestion
Typical endpoint format:
https://otlp-gateway.grafana.net/otlp/v1/logshttps://otlp-gateway-prod-eu-west-2.grafana.net/otlp/v1/logs
2. Configure Collector Output
Section titled “2. Configure Collector Output”output: otel: - name: "grafana" enabled: true endpoint: "https://otlp-gateway.grafana.net/otlp/v1/logs" service_name: "ms-teams-agent" deployment_environment: "prod" headers: Authorization: "Basic <base64-credentials>"3. Validate and Send One Cycle
Section titled “3. Validate and Send One Cycle”ms-teams-agent validate --config ./config.yamlms-teams-agent test-connection --config ./config.yamlms-teams-agent run --config ./config.yaml --ignore-state4. Verify Ingestion
Section titled “4. Verify Ingestion”Use a simple HTTP probe when needed:
curl -i "https://otlp-gateway.grafana.net/otlp/v1/logs" \ -H "Authorization: Basic <base64-credentials>"Then verify in Grafana Explore that records from service_name=ms-teams-agent are visible.