Skip to main content
Supported data types: Logs • Metrics • Traces

Collector-level ingestion

ConfigurationAdd the Phoebe endpoint to the clients section of your Promtail configuration file (typically config.yaml or promtail.yaml).Single destinationIf you’re only sending logs to Phoebe:
    clients:
      - url: https://ingest.phoebe.ai/loki/api/v1/push
        headers:
          X-API-Key: ${PHOEBE_INGEST_KEY}
Multiple destinations (recommended)If you need to send logs to both your own Loki instance and Phoebe, list Phoebe as the last client. Promtail sends logs to clients sequentially in the order they’re defined, so this ensures your primary destination receives logs first:
    clients:
      # Your primary Loki instance - processed first
      - url: http://your-loki-instance:3100/loki/api/v1/push

      # Phoebe - processed last to avoid blocking your primary destination
      - url: https://ingest.phoebe.ai/loki/api/v1/push
        headers:
          X-API-Key: ${PHOEBE_INGEST_KEY}
Client ordering matters: Promtail sends logs to clients sequentially on a single thread. List your primary logging destination first to ensure it always receives logs with the lowest latency.
Headers set by Promtail itself (such as X-Scope-OrgID) cannot be overwritten using the headers configuration.
Verify
  1. Restart Promtail to apply the changes.
  2. Check Promtail logs for any connection errors.
  3. Contact Phoebe to confirm logs are being received.

API access

  1. Create service account - In Grafana, go to Administration > Service accounts, click Add service account, name it (e.g., phoebe-integration), and assign Viewer role
  2. Generate token - Click on the service account, go to Tokens tab, click Add service account token, and copy immediately (it won’t be shown again)
    • Ensure the token has the required permissions for read access to Loki (logs), Prometheus/Mimir (metrics) and Tempo (traces)
  3. Find service identifiers - In Grafana Explore, select Loki, expand “Label filters” and look for labels that identify your services Service identifier examples:
    EnvironmentIdentifiers
    Standard["service_name"]
    Kubernetes["app_kubernetes_io_name", "app"]
    Docker Compose["container_name", "compose_service"]
    Custom["application_name", "service_id"]
    Without correct service identifiers, Phoebe cannot group logs by service. Test in Grafana Explore first with a query like {your_service_identifier="your-service-name"}.
  4. Enter credentials in the Integrations UI

Troubleshooting

IssueFix
No services discoveredCheck identifiers match exactly (case-sensitive) with Loki labels
Missing dataVerify token permissions by testing queries in Grafana
Connection errorsEnsure BASE_URL is accessible and includes protocol (https://)
For more details, see Grafana permissions documentation.