-
Notifications
You must be signed in to change notification settings - Fork 36
/
harvest.cue
105 lines (90 loc) · 1.98 KB
/
harvest.cue
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
package harvest
Exporters: [Name=_]: #Prom | #Influx
#ExporterDefs: string | #Prom | #Influx
label: [string]: string
#Auth: {
username: string
password: string
}
#HTTPSD: {
listen: string
auth_basic?: #Auth
tls?: #TLS
heart_beat?: string
expire_after?: string
}
#TLS: {
cert_file: string
key_file: string
}
#Admin: {
addr?: string
httpsd?: #HTTPSD
}
#Prom: {
add_meta_tags?: bool
addr?: string // deprecated
allow_addrs_regex?: [...string]
exporter: "Prometheus"
local_http_addr?: "0.0.0.0" | "localhost" | "127.0.0.1"
port?: int
port_range?: string
sort_labels?: bool
tls?: #TLS
}
#Influx: {
addr?: string // one of addr|url
allow_addrs_regex: [...string]
bucket?: string
exporter: "InfluxDB"
org?: string
token?: string
url?: string
}
#CertificateScript: {
path: string
timeout?: string
}
#CredentialsScript: {
path: string
schedule?: string
timeout?: string
}
#Recorder: {
path: string
mode: "record" | "replay"
keep_last?: int
}
#CollectorDef: {
[Name=_]: [...string]
}
Pollers: [Name=_]: #Poller
#Poller: {
addr?: string
auth_style?: "basic_auth" | "certificate_auth"
ca_cert?: string
certificate_script?: #CertificateScript
client_timeout?: string
collectors?: [...#CollectorDef] | [...string]
conf_path?: string
credentials_file?: string
credentials_script?: #CredentialsScript
datacenter?: string
disabled?: bool
exporters: [...#ExporterDefs]
is_kfs?: bool
labels?: [...label]
log: [...string]
log_max_bytes?: int
log_max_files?: int
password?: string
poller_log_schedule?: string
prefer_zapi?: bool
prom_port?: int
recorder?: #Recorder
ssl_cert?: string
ssl_key?: string
tls_min_version?: string
use_insecure_tls?: bool
username?: string
}