github.com/grafana/pyroscope@v1.18.0/pkg/distributor/sampling/config.go (about)

     1  package sampling
     2  
     3  type Config struct {
     4  	// UsageGroups controls sampling for pre-configured usage groups.
     5  	UsageGroups map[string]UsageGroupSampling `yaml:"usage_groups" json:"usage_groups"`
     6  }
     7  
     8  type UsageGroupSampling struct {
     9  	Probability float64 `yaml:"probability" json:"probability"`
    10  }
    11  
    12  type Source struct {
    13  	UsageGroup  string  `json:"usageGroup"`
    14  	Probability float64 `json:"probability"`
    15  }