forked from grafana/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.go
More file actions
77 lines (68 loc) · 3.34 KB
/
interface.go
File metadata and controls
77 lines (68 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package overrides
import (
"io"
"net/http"
"time"
"github.com/grafana/dskit/services"
"github.com/prometheus/client_golang/prometheus"
"github.com/grafana/tempo/pkg/sharedconfig"
"github.com/grafana/tempo/pkg/spanfilter/config"
"github.com/grafana/tempo/tempodb/backend"
)
type Service interface {
services.Service
Interface
}
type Interface interface {
prometheus.Collector
// GetTenantIDs returns all tenants that have non-default overrides.
GetTenantIDs() []string
// GetRuntimeOverridesFor returns the runtime overrides set for the given user excluding
// overrides from the user-configurable overrides, if enabled.
GetRuntimeOverridesFor(userID string) *Overrides
// Config
IngestionRateStrategy() string
MaxLocalTracesPerUser(userID string) int
MaxGlobalTracesPerUser(userID string) int
MaxBytesPerTrace(userID string) int
MaxCompactionRange(userID string) time.Duration
Forwarders(userID string) []string
MaxBytesPerTagValuesQuery(userID string) int
MaxBlocksPerTagValuesQuery(userID string) int
IngestionRateLimitBytes(userID string) float64
IngestionBurstSizeBytes(userID string) int
MetricsGeneratorIngestionSlack(userID string) time.Duration
MetricsGeneratorRingSize(userID string) int
MetricsGeneratorProcessors(userID string) map[string]struct{}
MetricsGeneratorMaxActiveSeries(userID string) uint32
MetricsGeneratorCollectionInterval(userID string) time.Duration
MetricsGeneratorDisableCollection(userID string) bool
MetricsGenerationTraceIDLabelName(userID string) string
MetricsGeneratorRemoteWriteHeaders(userID string) map[string]string
MetricsGeneratorForwarderQueueSize(userID string) int
MetricsGeneratorForwarderWorkers(userID string) int
MetricsGeneratorProcessorServiceGraphsHistogramBuckets(userID string) []float64
MetricsGeneratorProcessorServiceGraphsDimensions(userID string) []string
MetricsGeneratorProcessorServiceGraphsPeerAttributes(userID string) []string
MetricsGeneratorProcessorSpanMetricsHistogramBuckets(userID string) []float64
MetricsGeneratorProcessorSpanMetricsDimensions(userID string) []string
MetricsGeneratorProcessorSpanMetricsIntrinsicDimensions(userID string) map[string]bool
MetricsGeneratorProcessorSpanMetricsFilterPolicies(userID string) []config.FilterPolicy
MetricsGeneratorProcessorLocalBlocksMaxLiveTraces(userID string) uint64
MetricsGeneratorProcessorLocalBlocksMaxBlockDuration(userID string) time.Duration
MetricsGeneratorProcessorLocalBlocksMaxBlockBytes(userID string) uint64
MetricsGeneratorProcessorLocalBlocksTraceIdlePeriod(userID string) time.Duration
MetricsGeneratorProcessorLocalBlocksFlushCheckPeriod(userID string) time.Duration
MetricsGeneratorProcessorLocalBlocksCompleteBlockTimeout(userID string) time.Duration
MetricsGeneratorProcessorSpanMetricsDimensionMappings(userID string) []sharedconfig.DimensionMappings
MetricsGeneratorProcessorSpanMetricsEnableTargetInfo(userID string) bool
MetricsGeneratorProcessorServiceGraphsEnableClientServerPrefix(userID string) bool
MetricsGeneratorProcessorSpanMetricsTargetInfoExcludedDimensions(userID string) []string
BlockRetention(userID string) time.Duration
MaxSearchDuration(userID string) time.Duration
MaxMetricsDuration(userID string) time.Duration
DedicatedColumns(userID string) backend.DedicatedColumns
UnsafeQueryHints(userID string) bool
// Management API
WriteStatusRuntimeConfig(w io.Writer, r *http.Request) error
}