-
Notifications
You must be signed in to change notification settings - Fork 23
/
schema.go
151 lines (131 loc) · 7.19 KB
/
schema.go
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
package metrics
const (
// METRIC NAMES.
// HTTP metrics.
// HTTPRequestMetricName - metric from http server.
HTTPRequestMetricName = "http_requests_total"
// HTTPRequestLatencyMetricName - metric from http server.
HTTPRequestLatencyMetricName = "http_requests_latency_ms"
// HTTPErrorMetricName - metric from http server.
HTTPErrorMetricName = "http_errors_total"
// Circuit metrics.
// SignalReadingMetricName - used in circuit metrics.
SignalReadingMetricName = "signal_reading"
// FluxMeterMetricName name of fluxmeter metrics.
FluxMeterMetricName = "flux_meter"
// RateLimiterCounterMetricName - name of the counter describing times rate limiter was triggered.
RateLimiterCounterMetricName = "rate_limiter_counter"
// ClassifierCounterMetricName - name of the counter describing times classifier was triggered.
ClassifierCounterMetricName = "classifier_counter"
// DistCache metrics scraped from Olric DMaps statistics.
// DistCacheEntriesTotalMetricName - metric for the total number of entries (including replicas) stored during the life of this instance.
DistCacheEntriesTotalMetricName = "distcache_entries_total"
// DistCacheDeleteHitsMetricName - metric for number of deletion requests resulting in an item being removed.
DistCacheDeleteHitsMetricName = "distcache_delete_hits"
// DistCacheDeleteMissesMetricName - metric for number of deletion requests for missing keys.
DistCacheDeleteMissesMetricName = "distcache_delete_misses"
// DistCacheGetMissesMetricName - metric for number of entries that have been requested and not found.
DistCacheGetMissesMetricName = "distcache_get_misses"
// DistCacheGetHitsMetricName - metric for number of entries that have been requested and found present.
DistCacheGetHitsMetricName = "distcache_get_hits"
// DistCacheEvictedTotalMetricName - metric for number of entries removed from cache to free memory for new entries.
DistCacheEvictedTotalMetricName = "distcache_evicted_total"
// Workload metrics.
// WorkloadLatencyMetricName - metric used for grouping latencies per workload.
WorkloadLatencyMetricName = "workload_latency_ms"
// WorkloadLatencySumMetricName - metric from workload histogram.
WorkloadLatencySumMetricName = "workload_latency_ms_sum"
// WorkloadLatencyCountMetricName - metric from workload histogram.
WorkloadLatencyCountMetricName = "workload_latency_ms_count"
// WorkloadCounterMetricName - metric used for counting workload requests.
WorkloadCounterMetricName = "workload_requests_total"
// AcceptedConcurrencyMetricName - metric for measuring latencies of accepted requests.
AcceptedConcurrencyMetricName = "accepted_concurrency_ms"
// IncomingConcurrencyMetricName - metric for measuring latencies of all incoming requests.
IncomingConcurrencyMetricName = "incoming_concurrency_ms"
// WFQFlowsMetricName - weighted fair queuing number of flows gauge.
WFQFlowsMetricName = "wfq_flows_total"
// WFQRequestsMetricName - weighted fair queuing number of requests gauge.
WFQRequestsMetricName = "wfq_requests_total"
// TokenBucketLMMetricName - a gauge that tracks the load multiplier.
TokenBucketLMMetricName = "token_bucket_lm_ratio"
// TokenBucketFillRateMetricName - a gauge that tracks the fill rate of token bucket.
TokenBucketFillRateMetricName = "token_bucket_fill_rate"
// TokenBucketCapacityMetricName - a gauge that tracks the capacity of token bucket.
TokenBucketCapacityMetricName = "token_bucket_capacity_total"
// TokenBucketAvailableMetricName - a gauge that tracks the number of tokens available in token bucket.
TokenBucketAvailableMetricName = "token_bucket_available_tokens_total"
// ServiceLookupsMetricName - counter for IP to services lookups.
ServiceLookupsMetricName = "service_lookups_total"
// FlowControlRequestsMetricName - counter for Check requests for flowcontrol.
FlowControlRequestsMetricName = "flowcontrol_requests_total"
// FlowControlDecisionsMetricName - counter for Check requests per decision type.
FlowControlDecisionsMetricName = "flowcontrol_decisions_total"
// FlowControlRejectReasonsMetricName - metric for reject reason on FCS Check requests.
FlowControlRejectReasonsMetricName = "flowcontrol_reject_reasons_total"
// OTEL metrics.
// RollupMetricName - logs rollup histogram.
RollupMetricName = "rollup"
// PROMETHEUS LABELS.
// InstanceLabel used to identify the host name on which an Aperture process is running.
InstanceLabel = "instance"
// ProcessUUIDLabel used to uniquely identify an Aperture process.
ProcessUUIDLabel = "process_uuid"
// DistCacheMemberIDLabel - label specifying unique identifier of the node in the olric cluster.
DistCacheMemberIDLabel = "distcache_member_id"
// DistCacheMemberNameLabel - label specifying name of the node in the olric cluster.
DistCacheMemberNameLabel = "distcache_member_name"
// PolicyNameLabel - label used in prometheus.
PolicyNameLabel = "policy_name"
// PolicyHashLabel - label used in prometheus.
PolicyHashLabel = "policy_hash"
// ComponentIndexLabel - index of component in circuit label.
ComponentIndexLabel = "component_index"
// DecisionTypeLabel - label for decision type dropped or accepted.
DecisionTypeLabel = "decision_type"
// WorkloadIndexLabel - label for choosing correct workload.
WorkloadIndexLabel = "workload_index"
// SignalNameLabel - label for saving circuit signal metrics.
SignalNameLabel = "signal_name"
// FluxMeterNameLabel - specifying flux meter's name.
FluxMeterNameLabel = "flux_meter_name"
// ValidLabel - label for specifying if metric is valid.
// In case of FluxMeter a metric may be invalid if attribute is not found in flow telemetry.
// In case of Signal metrics, a metric may be invalid if signal reading is invalid.
ValidLabel = "valid"
// ValidTrue - if attribute was found.
ValidTrue = "true"
// ValidFalse - if attribute was not found.
ValidFalse = "false"
// ClassifierIndexLabel - prometheus label specifying clasiffier index.
ClassifierIndexLabel = "classifier_index"
// StatusCodeLabel - http status code.
StatusCodeLabel = "http_status_code"
// MethodLabel - label from http method.
MethodLabel = "http_method"
// HandlerName - name of the http handler. Defaults to 'default'.
HandlerName = "handler_name"
// ServiceLookupsStatusLabel - status for ServiceLookupsMetricName.
ServiceLookupsStatusLabel = "status"
// ServiceLookupsStatusOK - service lookup status OK.
ServiceLookupsStatusOK = FlowStatusOK
// ServiceLookupsStatusError - service lookup status Error.
ServiceLookupsStatusError = FlowStatusError
// FlowStatusLabel - flow status.
FlowStatusLabel = "flow_status"
// FlowStatusOK - flow status OK.
FlowStatusOK = "OK"
// FlowStatusError - flow status Error.
FlowStatusError = "Error"
// FlowControlCheckDecisionTypeLabel - label for decision type dropped or accepted.
FlowControlCheckDecisionTypeLabel = "decision_type"
// FlowControlCheckErrorReasonLabel - label for error reason on FCS Check request.
FlowControlCheckErrorReasonLabel = "error_reason"
// FlowControlCheckRejectReasonLabel - label for reject reason on FCS Check request.
FlowControlCheckRejectReasonLabel = "reject_reason"
// DEFAULTS.
// DefaultWorkloadIndex - when workload is not specified this value is used.
DefaultWorkloadIndex = "default"
// DefaultAgentGroup - default agent group.
DefaultAgentGroup = "default"
)