This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
refinery_inputs.tf
120 lines (99 loc) · 3.21 KB
/
refinery_inputs.tf
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
variable "refinery_compress_peer_communication" {
description = "The flag to enable or disable compressing span data when forwarded to peers"
default = true
}
#tfsec:ignore:GEN001
variable "refinery_accepted_api_keys" {
description = "The list of Honeycomb API keys that the proxy will accept"
type = list(string)
default = [
"*",
]
}
variable "refinery_send_delay" {
description = "The delay to wait after a trace is complete, before sending"
default = "2s"
}
variable "refinery_trace_timeout" {
description = "The amount of time to wait for a trace to be completed before sending"
default = "60s"
}
variable "refinery_log_level" {
description = "The Refinery log level"
default = "debug"
}
variable "refinery_upstream_buffer_size" {
description = "The number of events to buffer before sending to Honeycomb"
default = 10000
}
variable "refinery_peer_buffer_size" {
description = "The number of events to buffer before seding to peers"
default = 10000
}
variable "refinery_send_ticker" {
description = "The duration to use to check for traces to send"
default = "100ms"
}
variable "refinery_cache_capacity" {
description = "The number of spans to cache"
default = 1000
}
variable "refinery_max_alloc" {
description = "The maximum memory to use"
default = 0
}
variable "refinery_logger_option" {
description = "The loger option for refinery"
default = "logrus"
validation {
condition = (
var.refinery_logger_option == "honeycomb"
|| var.refinery_logger_option == "logrus"
)
error_message = "The refinery_logger_option value must be \"honeycomb\" or \"logrus\"."
}
}
#tfsec:ignore:GEN001 tfsec:ignore:GEN005
variable "refinery_logger_api_key" {
description = "The API key to use to send Refinery logs to Honeycomb"
default = ""
}
variable "refinery_logger_dataset_name" {
description = "The dataset to which to send Refinery logs to"
default = "Refinery Logs"
}
variable "refinery_logger_sampler_enabled" {
description = "The flag to enable or disable sampling Refinery logs"
default = false
}
variable "refinery_logger_sampler_throughput" {
description = "The per key per second throughput for the log message dynamic sampler"
default = 10
}
#tfsec:ignore:GEN001 tfsec:ignore:GEN005
variable "refinery_metrics_api_key" {
description = "The API key used to send Refinery metrics to Honeycomb"
default = ""
}
variable "refinery_metrics_option" {
description = "The metrics option for refinery"
default = "prometheus"
validation {
condition = (
var.refinery_metrics_option == "honeycomb"
|| var.refinery_metrics_option == "prometheus"
)
error_message = "The refinery_metrics_option value must be \"honeycomb\" or \"prometheus\"."
}
}
variable "refinery_metrics_dataset" {
description = "The dataset to which to send Refinery metrics to"
default = "Refinery Metrics"
}
variable "refinery_metrics_reporting_interval" {
description = "The interval (in seconds) to wait between sending metrics to Honeycomb"
default = 3
}
variable "refinery_rules_file_path" {
description = "The path to a toml files with the Refinery rules. Must be less than 8Kb"
}