How to configure sampling on Data Stream
Configure the Sampling feature to filter the percentage of data you'll be streaming.
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 Worloads > Options, choose All Curent and Future Domains.
- On Sampling (%), add the value of the percentage of data you want to stream, from
0to100. 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
POSTrequest 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.