Skip to main content

For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/pipeline/collector.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/platform/llms.txt.

Check your Collector configuration

The Collector is the pipeline component that receives events from your trackers and webhooks. Its configuration sets the cookie domains, the request paths it accepts, and its cookie attributes. Check it when you set up a new tracker, change your cookie domain, or debug events that don't arrive.

You can view the configuration in Snowplow Console, or retrieve it from the Console API. Snowplow monitors Collector health around the clock, but if you want Collector checks in your own monitoring systems, use the API: read the Collector endpoints and settings from it, then run your health checks against them. That way your checks follow any configuration change.

To look up a field in the API response, or the HTTP headers the Collector accepts, see the Collector configuration reference. If you run Snowplow Self-Hosted, configure the Collector with its configuration file instead.

Before you begin​

You'll need:

Steps​

To only view the configuration, the first step is enough. The remaining steps retrieve the same configuration from the API.

View the configuration in Console​

Log in to Console and click Pipeline Configuration in the navigation menu for your pipeline.

Snowplow Console showing a pipeline with the Configuration tab selected (indicated by a red arrow), and the left sidebar showing configuration sections including COLLECTOR (Collector domains, Tracker request paths, Collector settings), VALIDATION, COMPONENTS, and ALERTS.

Console shows your configuration, with default values displayed for empty fields. This view reads the same API that the rest of these steps use.

Snowplow Console Collector configuration page showing the Tracker request paths section with a table of default paths: POST at /com.snowplowanalytics.snowplow/tp2, Redirect at /r/tp2, and Iglu at /com.snowplowanalytics.iglu/v1.

Get an access token​

Exchange your API key and key ID for an access token, which is valid for 24 hours. Your organization ID is on the Manage organization page in Console.

bash
curl \
--header 'X-API-Key-ID: <API_KEY_ID>' \
--header 'X-API-Key: <API_KEY>' \
https://console.snowplowanalytics.com/api/msc/v1/organizations/<ORGANIZATION_ID>/credentials/v3/token

The response contains the token, as { "accessToken": "<JWT>" }. Obtain an access token has the details.

Send the token with every API request, in the Authorization: Bearer {{token}} header.

Find your pipeline ID​

The pipeline ID is the second UUID in the browser's address bar when you view the pipeline in Console:

Snowplow Console browser address bar showing a URL where the pipeline ID UUID is highlighted as the second UUID in the path.

Call the configuration endpoint​

Send a GET request to the Collector configuration endpoint, with your IDs and token:

bash
curl \
--header 'Authorization: Bearer {{token}}' \
'https://console.snowplowanalytics.com/api/msc/v1/organizations/{organizationId}/resources/v1/pipelines/{pipelineId}/configuration/collector'

To try the endpoint in your browser instead, open the API specification, click Authorize at the top of the page, and enter your token. The specification then uses it for every request you send.

Check the response​

The response is a JSON object with the cookieDomains, paths, cookieAttributes, and blockUnencrypted fields. Compare it with the values Console showed in the first step. The Collector configuration reference describes each field and its default.

To monitor the Collector, have your monitoring system read the configuration from this endpoint, and point your health checks at the request paths it lists.

Was this page helpful?