This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsignalfx.config.pb.html
301 lines (274 loc) · 9.23 KB
/
signalfx.config.pb.html
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
---
title: SignalFx
description: Adapter that sends metrics to SignalFx.
location: https://istio.io/docs/reference/config/policy-and-telemetry/adapters/signalfx.html
layout: protoc-gen-docs
generator: protoc-gen-docs
supported_templates: metric,tracespan
number_of_entries: 4
---
<p>The <code>signalfx</code> adapter collects Istio metrics and trace spans and sends them
to <a href="https://signalfx.com">SignalFx</a>.</p>
<p>This adapter supports the <a href="https://istio.io/docs/reference/config/policy-and-telemetry/templates/metric/">metric template</a>
and the <a href="https://istio.io/docs/reference/config/policy-and-telemetry/templates/tracespan/">tracespan template</a>.</p>
<p>If sending trace spans, this adapter can make use of certain conventions in
the tracespan format that is configured to send to this adapter. Here is an
example tracespan spec that will work well:</p>
<pre><code class="language-yaml">apiVersion: config.istio.io/v1alpha2
kind: tracespan
metadata:
name: signalfx
spec:
traceId: request.headers["x-b3-traceid"] | ""
spanId: request.headers["x-b3-spanid"] | ""
parentSpanId: request.headers["x-b3-parentspanid"] | ""
# If the path contains query parameters, they will be split off and put into
# tags such that the span name sent to SignalFx will consist only of the path
# itself.
spanName: request.path | "/"
startTime: request.time
endTime: response.time
# If this is >=500, the span will get an 'error' tag
httpStatusCode: response.code | 0
clientSpan: context.reporter.kind == "outbound"
# Span tags below that do not have comments are useful but optional and will
# be passed to SignalFx unmodified. The tags that have comments are interpreted
# in a special manner, but are still optional.
spanTags:
# This gets put into the remoteEndpoint.ipv4 field
destination.ip: destination.ip | ip("0.0.0.0")
# This gets put into the remoteEndpoint.name field
destination.name: destination.name | "unknown"
destination.namespace: destination.namespace | "unknown"
request.host: request.host | ""
request.method: request.method | ""
request.path: request.path | ""
request.size: request.size | 0
request.useragent: request.useragent | ""
response.size: response.size | 0
# This gets put into the localEndpoint.name field
source.name: source.name | "unknown"
# This gets put into the localEndpoint.ipv4 field
source.ip: source.ip | ip("0.0.0.0")
source.namespace: source.namespace | "unknown"
source.version: source.labels["version"] | "unknown"
</code></pre>
<h2 id="Params">Params</h2>
<section>
<p>Configuration format for the <code>signalfx</code> adapter.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Params-metrics">
<td><code>metrics</code></td>
<td><code><a href="#Params-MetricConfig">Params.MetricConfig[]</a></code></td>
<td>
<p>Required. The set of metrics to send to SignalFx. If an Istio metric is
configured to be sent to this adapter, it must have a corresponding
description here.</p>
</td>
</tr>
<tr id="Params-ingest_url">
<td><code>ingestUrl</code></td>
<td><code>string</code></td>
<td>
<p>Optional. The URL of the SignalFx ingest server to use. Will default to
the global ingest server if not specified.</p>
</td>
</tr>
<tr id="Params-access_token">
<td><code>accessToken</code></td>
<td><code>string</code></td>
<td>
<p>Required. The access token for the SignalFx organization that should
receive the metrics. This can also be configured via an environment
variable <code>SIGNALFX_ACCESS_TOKEN</code> set on the adapter process which makes
it possible to use Kubernetes secrets to provide the token. This field,
if specified, will take priority over the environment variable.</p>
</td>
</tr>
<tr id="Params-datapoint_interval">
<td><code>datapointInterval</code></td>
<td><code><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration">google.protobuf.Duration</a></code></td>
<td>
<p>Optional. Specifies how frequently to send metrics to SignalFx. Metrics
reported to this adapter are collected and reported as a timeseries.
This will be rounded to the nearest second and rounded values less than
one second are not valid. Defaults to 10 seconds if not specified.</p>
</td>
</tr>
<tr id="Params-enable_metrics">
<td><code>enableMetrics</code></td>
<td><code>bool</code></td>
<td>
<p>Optional. If set to false, metrics won’t be sent (but trace spans will
be sent, unless otherwise disabled).</p>
</td>
</tr>
<tr id="Params-enable_tracing">
<td><code>enableTracing</code></td>
<td><code>bool</code></td>
<td>
<p>Optional. If set to false, trace spans won’t be sent (but metrics will
be sent, unless otherwise disabled).</p>
</td>
</tr>
<tr id="Params-tracing">
<td><code>tracing</code></td>
<td><code><a href="#Params-TracingConfig">Params.TracingConfig</a></code></td>
<td>
<p>Configuration for the Trace Span handler</p>
</td>
</tr>
<tr id="Params-trace_endpoint_url">
<td><code>traceEndpointUrl</code></td>
<td><code>string</code></td>
<td>
<p>Optional. The full URL (including path) to the trace ingest server.
If this is not set, all trace spans will be sent to the same place
as ingestUrl above.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Params-MetricConfig">Params.MetricConfig</h2>
<section>
<p>Describes what metrics should be sent to SignalFx and in what form.</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Params-MetricConfig-name">
<td><code>name</code></td>
<td><code>string</code></td>
<td>
<p>Required. The name of the metric as it is sent to the adapter. In
Kubernetes this is of the form “<name>.metric.<namespace>” where
“<name>” is the name field of the metric resource, and “<namespace>”
is the namespace of the metric resource.</p>
</td>
</tr>
<tr id="Params-MetricConfig-type">
<td><code>type</code></td>
<td><code><a href="#Params-MetricConfig-Type">Params.MetricConfig.Type</a></code></td>
<td>
<p>The metric type of the metric</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Params-MetricConfig-Type">Params.MetricConfig.Type</h2>
<section>
<p>Describes what kind of metric this is.</p>
<table class="enum-values">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Params-MetricConfig-Type-NONE">
<td><code>NONE</code></td>
<td>
<p>None is the default and is invalid</p>
</td>
</tr>
<tr id="Params-MetricConfig-Type-COUNTER">
<td><code>COUNTER</code></td>
<td>
<p>Values with the same set of dimensions will be added together
as a continuously incrementing value.</p>
</td>
</tr>
<tr id="Params-MetricConfig-Type-HISTOGRAM">
<td><code>HISTOGRAM</code></td>
<td>
<p>A histogram distribution. This will result in several metrics
emitted for each unique set of dimensions.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h2 id="Params-TracingConfig">Params.TracingConfig</h2>
<section>
<p>Holds all of the tracing-specific configuration</p>
<table class="message-fields">
<thead>
<tr>
<th>Field</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr id="Params-TracingConfig-buffer_size">
<td><code>bufferSize</code></td>
<td><code>uint32</code></td>
<td>
<p>Optional. The number of trace spans that the adapter will buffer before
dropping them. This defaults to 1000 spans but can be configured higher
if needed. An error message will be logged if spans are dropped.</p>
</td>
</tr>
<tr id="Params-TracingConfig-local_endpoint_name_tag_key">
<td><code>localEndpointNameTagKey</code></td>
<td><code>string</code></td>
<td>
<p>The span tag that is used as the value of the localEndpoint.serviceName
field of the span sent to SignalFx</p>
</td>
</tr>
<tr id="Params-TracingConfig-local_endpoint_ip_tag_key">
<td><code>localEndpointIpTagKey</code></td>
<td><code>string</code></td>
<td>
<p>The span tag that is used as the value of the localEndpoint.ipv4
field of the span sent to SignalFx</p>
</td>
</tr>
<tr id="Params-TracingConfig-remote_endpoint_name_tag_key">
<td><code>remoteEndpointNameTagKey</code></td>
<td><code>string</code></td>
<td>
<p>The span tag that is used as the value of the remoteEndpoint.serviceName
field of the span sent to SignalFx</p>
</td>
</tr>
<tr id="Params-TracingConfig-remote_endpoint_ip_tag_key">
<td><code>remoteEndpointIpTagKey</code></td>
<td><code>string</code></td>
<td>
<p>The span tag that is used as the value of the remoteEndpoint.ipv4
field of the span sent to SignalFx</p>
</td>
</tr>
<tr id="Params-TracingConfig-swap_local_remote_endpoints">
<td><code>swapLocalRemoteEndpoints</code></td>
<td><code>bool</code></td>
<td>
<p>If true, the local and remote endpoints will be swapped for
non-client spans. This means that the above config options for
[local/remote]<em>endpoint</em>[name/ip]<em>tag</em>key with have a reversed
meaning for server spans. The <code>clientSpan</code> field in the <code>tracespan</code>
instance that is used with this adapter determines what is a
“client” vs a “server” span.</p>
</td>
</tr>
</tbody>
</table>
</section>