How to configure sampling on Data Stream
When you configure a stream and choose to associate all of your domains, you can configure the Sampling option to filter the percentage of data you’ll be streaming. It’s a viable option to reduce the costs of data collection and analysis.
- Access Azion Console > Data Stream.
- To configure the stream, follow the steps in How to configure Data Stream main settings.
- On Domains > Options, choose All Curent and Future Domains.
- On Sampling (%), add the value of the percentage of data you want to stream, from
0
to100
. Example:60
.- Data Stream will collect data randomly according to the percentage you choose.
- Finish configuring the Destination section.
- Click the Save button.
- Access Real-Time Manager > Data Stream.
- To configure the stream, follow the steps in How to configure Data Stream main settings.
- On Options, choose All Domains. This will associate all of the account’s current and future domains to this stream.
- On Sampling (%), add the value of the percentage of data you want to stream, from
0
to100
. Example:60
.- Data Stream will collect data randomly according to the percentage you choose.
- Finish configuring the Destination section.
- Click the Save button.
For this section, you’ll be creating a stream with an Apache Kafka connector via API. See other connector options in the Data Stream Endpoints table.
- Run the following
GET
request in your terminal, replacing[TOKEN VALUE]
with your personal token:
- You’ll receive a response similar to this:
Wait a few minutes for the changes to propagate and your stream will be updated.