-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.conf
174 lines (140 loc) · 7.54 KB
/
config.conf
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
proxy {
agent.port = 50051 // Listen port for agent connections
transportFilterDisabled = false // Assign to true if using nginx as a reverse proxy
reflectionDisabled = false // Assign to true to disable gRPC reflection
service.discovery {
enabled = false // Enable service discovery
path = "discovery" // Service discovery path
targetPrefix = "http://localhost:8080/" // Service discovery target prefix
}
http {
port = 8080 // Listen port for proxied scrapes
maxThreads = -1
minThreads = -1
idleTimeoutSecs = 45
requestLoggingEnabled = true // Log every proxy metrics request
}
admin {
enabled = false // Enable Admin servlets
port = 8092 // Admin servlets port
pingPath = "ping" // Ping servlet path
versionPath = "version" // Version servlet path
healthCheckPath = "healthcheck" // HealthCheck servlet path
threadDumpPath = "threaddump" // ThreadDump servlet path
debugEnabled = false // Enable proxy debug servlet on admin port
recentRequestsQueueSize = 50 // Size of queue for recent activities on debug servlet
}
tls {
certChainFilePath = "" // Server certificate chain file path
privateKeyFilePath = "" // Server private key file path
trustCertCollectionFilePath = "" // Trust certificate collection file path
}
metrics {
enabled = false // Enable Proxy metrics
port = 8082 // Listen port for metrics endpoint
path = "metrics" // Path for metrics endpoint
standardExportsEnabled = false // Include standard export metrics
memoryPoolsExportsEnabled = false // Include JVM memory pool metrics
garbageCollectorExportsEnabled = false // Include JVM garbage collector metrics
threadExportsEnabled = false // Include JVM thread metrics
classLoadingExportsEnabled = false // Include JVM class loading metrics
versionInfoExportsEnabled = false // Include JVM version info metrics
grpc {
metricsEnabled = false // Include gRPC metrics
allMetricsReported = false // Include all vs just cheap metrics
}
}
internal {
staleAgentCheckEnabled = true
maxAgentInactivitySecs = 60 // Seconds of inactivity before agent is evicted in seconds
staleAgentCheckPauseSecs = 10 // Pause interval for agent cleanup in seconds
scrapeRequestTimeoutSecs = 90 // Timeout for scrape requests in seconds
scrapeRequestCheckMillis = 500 // Pause time between checks for scrape request timeout in millis
scrapeRequestBacklogUnhealthySize = 25 // Threshold for returning an unhealthy healthcheck
scrapeRequestMapUnhealthySize = 25 // Threshold for returning an unhealthy healthcheck
chunkContextMapUnhealthySize = 25 // Threshold for returning an unhealthy healthcheck
zipkin {
enabled = false
hostname = "localhost"
port = 9411
path = "api/v2/spans"
serviceName = "prometheus-proxy"
grpcReportingEnabled = false
}
blitz {
enabled = false
path = "mu-dd4bffbb-ff2e9926-5a80952c-1c6cb64d.txt"
}
}
}
agent {
name = "" // Agent name used in metrics reporting
transportFilterDisabled = false // Assign to true if using nginx as a reverse proxy
consolidated = false
// See: https://github.com/grpc/grpc.github.io/issues/371
chunkContentSizeKbs = 32 // Threshold for chunking data to Proxy and buffer size
minGzipSizeBytes = 512 // Minimum size for content to be gzipped
scrapeTimeoutSecs = 15 // Scrape timeout time in seconds
scrapeMaxRetries = 0 // Maximum scrape retries (0 disables scrape retries)
proxy {
hostname = "localhost" // Proxy hostname
port = 50051 // Proxy port
}
http {
enableTrustAllX509Certificates = false // Enabling will disable SSL verification for agent https endpoints
}
admin {
enabled = false // Enable Admin servlets
port = 8093 // Admin servlets port
pingPath = "ping" // Ping servlet path
versionPath = "version" // Version servlet path
healthCheckPath = "healthcheck" // HealthCheck servlet path
threadDumpPath = "threaddump" // ThreadDump servlet path
debugEnabled = false // Enable agent debug servlet on admin port
}
tls {
overrideAuthority = "" // Overide authority
certChainFilePath = "" // Client certificate chain file path
privateKeyFilePath = "" // Client private key file path
trustCertCollectionFilePath = "" // Trust certificate collection file path
}
metrics {
enabled = false // Enable Agent metrics
port = 8083 // Listen port for metrics endpoint
path = "metrics" // Path for metrics endpoint
standardExportsEnabled = false // Include standard export metrics
memoryPoolsExportsEnabled = false // Include JVM memory pool metrics
garbageCollectorExportsEnabled = false // Include JVM garbage collector metrics
threadExportsEnabled = false // Include JVM thread metrics
classLoadingExportsEnabled = false // Include JVM class loading metrics
versionInfoExportsEnabled = false // Include JVM version info metrics
grpc {
metricsEnabled = false // Include gRPC metrics
allMetricsReported = false // Include all vs just cheap metrics
}
}
pathConfigs: [ // List of path configs registered with a Proxy
{
name: String // Endpoint name
path: String // Path used by the proxy
url: String // URL accessed by the Agent
labels = "{}" // Endpoint labels as JSON
}
]
internal {
cioTimeoutSecs = 90 // CIO engine request timeout in seconds
reconnectPauseSecs = 3 // Pause interval between connect attempts in seconds
heartbeatEnabled = true
heartbeatCheckPauseMillis = 500 // Pause interval when checking for inactivity
heartbeatMaxInactivitySecs = 5 // Max inactivity before hearbeat sent in seconds
scrapeRequestBacklogUnhealthySize = 25 // Threshold for returning an unhealthy healthcheck
zipkin {
enabled = false
hostname = "localhost"
port = 9411
path = "api/v2/spans"
serviceName = "prometheus-agent"
grpcReportingEnabled = false
}
}
}