forked from newrelic/newrelic-istio-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
698 lines (659 loc) · 27.5 KB
/
values.yaml
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
# Copyright 2019 New Relic Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Default values for newrelic-istio-adapter.
# Override the Chart name.
# Also used as the label `app.kubernetes.io/name` value for all resources.
nameOverride: ""
# Override the naming of `newrelic-istio-adapter` namespace resources.
# Enables multiple `newrelic-istio-adapter` versions to be deployed simultaneously.
fullnameOverride: ""
# Namespace of the Istio control plane resources.
istioNamespace: istio-system
# Name used by `newrelic-istio-adapter`, a unique Kubernetes cluster identifier for metrics.
# Corresponds to the cluster.name attribute of metrics.
clusterName: istio-cluster
# Logging level for the adapter.
# Valid logging levels are: debug, info, warn, error, fatal, or none
#logLevel: error
# Override the New Relic Metrics API endpoint (used for debugging).
#metricsHost: ""
# Override the New Relic Trace API endpoint (used for debugging).
#spansHost: ""
authentication:
# Specify if this Chart will manage the secret containing the
# authentication credentials to New Relic that the adapter uses.
# Setting this to `false` mean you will manually handle secrets.
manageSecret: true
# If `manageSecret` is true the following must to be provided.
#
# Plaintext New Relic Insights Insert API key.
apiKey: ""
# Kubernetes Secret resource name.
#
# This is used to override the default name of the authentication
# credential containing Opaque secret.
#
# This is useful if `manageSecret` is `false` and you plan to use a secret
# that does not match the name of the expected secret (defaults to the
# full name of this release). Additionally, if you want to use a different
# scheme for secret naming this provides that functionality.
#
# The Kubernetes Secret must contain keys:
# NEW_RELIC_API_KEY
secretNameOverride: ""
image:
# Repository for container image.
repository: newrelic/newrelic-istio-adapter
# Image tag.
tag: "2.0.1"
# Image pull policy.
pullPolicy: IfNotPresent
service:
# The `newrelic-istio-adapter` Kubernetes Service type.
type: ClusterIP
# The `newrelic-istio-adapter` Kubernetes Service port.
port: 80
# Kubernetes Deployment relica count definition.
replicaCount: 1
# Kubernetes Pod resource requests & limits resource definition.
resources: {}
# Kubernetes Deployment nodeSelector definition.
nodeSelector: {}
# Kubernetes Deployment tolerations definition.
tolerations: []
# Kubernetes Deployment affinity definition.
affinity: {}
## HTTP(S) proxy settings.
#proxy:
#
# # HTTP proxy enpoint.
# http:
#
# # HTTPS proxy enpoint.
# https:
#
# # Routes to not proxy for (defaults to localhost if either http/https defined).
# none:
# Istio telemetry configuration
telemetry:
# Prefixed namespace for all metrics sent to New Relic.
namespace: istio
# Envoy to Mixer attribute value mapping
# https://istio.io/docs/reference/config/policy-and-telemetry/attribute-vocabulary/
attributes:
source.ip:
valueType: IP_ADDRESS
source.labels:
valueType: STRING_MAP
source.name:
valueType: STRING
source.namespace:
valueType: STRING
source.owner:
valueType: STRING
source.serviceAccount:
valueType: STRING
source.services:
valueType: STRING
source.workload.uid:
valueType: STRING
source.workload.name:
valueType: STRING
source.workload.namespace:
valueType: STRING
destination.ip:
valueType: IP_ADDRESS
destination.labels:
valueType: STRING_MAP
destination.metadata:
valueType: STRING_MAP
destination.name:
valueType: STRING
destination.namespace:
valueType: STRING
destination.owner:
valueType: STRING
destination.service.uid:
valueType: STRING
destination.service.name:
valueType: STRING
destination.service.namespace:
valueType: STRING
destination.service.host:
valueType: STRING
destination.serviceAccount:
valueType: STRING
destination.workload.uid:
valueType: STRING
destination.workload.name:
valueType: STRING
destination.workload.namespace:
valueType: STRING
destination.container.name:
valueType: STRING
origin.ip:
valueType: IP_ADDRESS
origin.uid:
valueType: STRING
origin.user:
valueType: STRING
request.headers:
valueType: STRING_MAP
request.id:
valueType: STRING
request.host:
valueType: STRING
request.method:
valueType: STRING
request.path:
valueType: STRING
request.url_path:
valueType: STRING
request.query_params:
valueType: STRING_MAP
request.reason:
valueType: STRING
request.referer:
valueType: STRING
request.scheme:
valueType: STRING
request.total_size:
valueType: INT64
request.size:
valueType: INT64
request.time:
valueType: TIMESTAMP
request.useragent:
valueType: STRING
response.code:
valueType: INT64
response.duration:
valueType: DURATION
response.headers:
valueType: STRING_MAP
response.total_size:
valueType: INT64
response.size:
valueType: INT64
response.time:
valueType: TIMESTAMP
response.grpc_status:
valueType: STRING
response.grpc_message:
valueType: STRING
source.uid:
valueType: STRING
source.user: # DEPRECATED
valueType: STRING
source.principal:
valueType: STRING
destination.uid:
valueType: STRING
destination.principal:
valueType: STRING
destination.port:
valueType: INT64
connection.event:
valueType: STRING
connection.id:
valueType: STRING
connection.received.bytes:
valueType: INT64
connection.received.bytes_total:
valueType: INT64
connection.sent.bytes:
valueType: INT64
connection.sent.bytes_total:
valueType: INT64
connection.duration:
valueType: DURATION
connection.mtls:
valueType: BOOL
connection.requested_server_name:
valueType: STRING
context.protocol:
valueType: STRING
context.proxy_error_code:
valueType: STRING
context.timestamp:
valueType: TIMESTAMP
context.time:
valueType: TIMESTAMP
# Deprecated, kept for compatibility
context.reporter.local:
valueType: BOOL
context.reporter.kind:
valueType: STRING
context.reporter.uid:
valueType: STRING
api.service:
valueType: STRING
api.version:
valueType: STRING
api.operation:
valueType: STRING
api.protocol:
valueType: STRING
request.auth.principal:
valueType: STRING
request.auth.audiences:
valueType: STRING
request.auth.presenter:
valueType: STRING
request.auth.claims:
valueType: STRING_MAP
request.auth.raw_claims:
valueType: STRING
request.api_key:
valueType: STRING
rbac.permissive.response_code:
valueType: STRING
rbac.permissive.effective_policy_id:
valueType: STRING
check.error_code:
valueType: INT64
check.error_message:
valueType: STRING
check.cache_hit:
valueType: BOOL
quota.cache_hit:
valueType: BOOL
# https://istio.io/docs/reference/config/policy-and-telemetry/templates/tracespan/
# # The key name is the name of the Istio instance using the tracespan template.
# INSTANCE_NAME:
# # Trace ID is the unique identifier for a trace. All spans from the
# # same trace share the same Trace ID.
# #
# # Required.
# traceId string
#
# # Span ID is the unique identifier for a span within a trace. It is
# # assigned when the span is created.
# #
# # Optional.
# spanId string
#
# # Parent Span ID is the unique identifier for a parent span of this
# # span instance. If this is a root span, then this field MUST be
# # empty.
# #
# # Optional.
# parentSpanId string
#
# # Span name is a description of the span’s operation.
# #
# # For example, the name can be a qualified method name or a file name
# # and a line number where the operation is called. A best practice is
# # to use the same display name within an application and at the same
# # call point. This makes it easier to correlate spans in different
# # traces.
# #
# # Required.
# spanName string
#
# # The start time of the span.
# #
# # Required.
# startTime istio.policy.v1beta1.TimeStamp
#
# # The end time of the span.
# #
# # Required.
# endTime istio.policy.v1beta1.TimeStamp
#
# # Span tags are a set of < key, value > pairs that provide metadata
# # for the entire span. The values can be specified in the form of
# # expressions.
# #
# # Optional.
# spanTags map<string, istio.policy.v1beta1.Value>
#
# # HTTP status code used to set the span status. If unset or set to 0,
# # the span status will be assumed to be successful.
# #
# # Optional.
# httpStatusCode int64
#
# # client_span indicates the span kind. True for client spans and False
# # or not provided for server spans. Using bool instead of enum is a
# # temporary work around since mixer expression language does not yet
# # support enum type.
# #
# # Optional.
# clientSpan bool
#
# # rewriteclientspan_id is used to indicate whether to create a new
# # client span id to accommodate Zipkin shared span model. Some tracing
# # systems like Stackdriver separates a RPC into client span and server
# # span. To solve this incompatibility, deterministically rewriting
# # both span id of client span and parent span id of server span to the
# # same newly generated id.
# #
# # Optional.
# rewriteClientSpanId bool
#
# # Identifies the source (client side) of this span. Should usually be
# # set to source.workload.name.
# #
# # Optional.
# sourceName string
#
# # Client IP address. Should usually be set to source.ip.
# #
# # Optional.
# sourceIp istio.policy.v1beta1.IPAddress
#
# # Identifies the destination (server side) of this span. Should
# # usually be set to destination.workload.name.
# #
# # Optional.
# destinationName string
#
# # Server IP address. Should usually be set to destination.ip.
# #
# # Optional.
# destinationIp istio.policy.v1beta1.IPAddress
#
# # Request body size. Should usually be set to request.size.
# #
# # Optional.
# requestSize int64
#
# # Total request size (headers and body). Should usually be set to
# # request.total_size.
# #
# # Optional.
# requestTotalSize int64
#
# # Response body size. Should usually be set to response.size.
# #
# # Optional.
# responseSize int64
#
# # Response total size (headers and body). Should usually be set to
# # response.total_size.
# #
# # Optional.
# responseTotalSize int64
#
# # One of “http”, “https”, or “grpc” or any other value of the
# # api.protocol attribute. Should usually be set to api.protocol.
# #
# # Optional.
# apiProtocol string
traces:
newrelic-span:
traceId: request.headers["x-b3-traceid"] | ""
spanId: request.headers["x-b3-spanid"] | ""
parentSpanId: request.headers["x-b3-parentspanid"] | ""
spanName: destination.workload.name | destination.service.name | "unknown"
startTime: request.time
endTime: response.time
httpStatusCode: response.code | 0
clientSpan: (context.reporter.kind | "inbound") == "outbound"
rewriteClientSpanId: "false"
sourceName: source.workload.name | "unknown"
sourceIp: source.ip | ip("0.0.0.0")
destinationName: destination.workload.name | "unknown"
destinationIp: destination.ip | ip("0.0.0.0")
requestSize: request.size | 0
requestTotalSize: request.total_size | 0
responseSize: response.size | 0
responseTotalSize: response.total_size | 0
apiProtocol: api.protocol | ""
spanTags:
api.name: api.service | "unknown"
api.version: api.version | "unknown"
destination.owner: destination.owner | "unknown"
destination.port: destination.port | 0
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
destination.workload.name: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
request.path: request.path | ""
request.operation: conditional((context.protocol | "unknown") == "grpc", request.path | "unknown", request.method | "unknown")
request.protocol: context.protocol | "unknown"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
source.owner: source.owner | "unknown"
source.workload.name: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
# https://istio.io/docs/reference/config/policy-and-telemetry/templates/metric/
# # The key name is the name of the Istio instance using the metric template.
# INSTANCE_NAME:
# # The name field is the name passed to New Relic for the metric
# name: NEW_RELIC_NAME
# # The type of Dimensional Metric in New Relic the metric is converted to.
# type: NEW_RELIC_TYPE
# # The interpreted instance value
# value: INSTANCE_VALUE
# # New Relic metric attributes and instance dimensions.
# dimensions:
# # Interpreted instance dimensions and New Relic metric attributes.
# key: value
#
metrics:
newrelic-request-count:
name: "request.total"
type: COUNT
value: "1"
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.host | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
request.protocol: api.protocol | context.protocol | "unknown"
response.code: response.code | 200
response.flags: context.proxy_error_code | "-"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
newrelic-request-size:
name: "request.bytes"
type: GAUGE
value: request.size | 0
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.host | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
request.protocol: api.protocol | context.protocol | "unknown"
response.code: response.code | 200
response.flags: context.proxy_error_code | "-"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
newrelic-request-duration:
name: "request.duration.milliseconds"
type: SUMMARY
value: response.duration | "0ms"
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.host | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
request.protocol: api.protocol | context.protocol | "unknown"
response.code: response.code | 200
response.flags: context.proxy_error_code | "-"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
newrelic-response-size:
name: "response.bytes"
type: GAUGE
value: response.size | 0
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.host | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
request.protocol: api.protocol | context.protocol | "unknown"
response.code: response.code | 200
response.flags: context.proxy_error_code | "-"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
newrelic-bytes-sent:
name: "tcp.sent.bytes"
type: COUNT
value: connection.sent.bytes | 0
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.host | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
response.flags: context.proxy_error_code | "-"
newrelic-bytes-received:
name: "tcp.received.bytes"
type: COUNT
value: connection.received.bytes | 0
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.host | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
response.flags: context.proxy_error_code | "-"
newrelic-connections-opened:
name: "tcp.connections.opened"
type: COUNT
value: "1"
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.name | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
response.flags: context.proxy_error_code | "-"
newrelic-connections-closed:
name: "tcp.connections.closed"
type: COUNT
value: "1"
dimensions:
reporter: conditional((context.reporter.kind | "inbound") == "outbound", "source", "destination")
service.name: conditional((context.reporter.kind | "inbound") == "outbound", source.workload.name | "unknown", destination.workload.name | "unknown")
source.workload: source.workload.name | "unknown"
source.workload.namespace: source.workload.namespace | "unknown"
source.principal: source.principal | "unknown"
source.app: source.labels["app"] | "unknown"
source.version: source.labels["version"] | "unknown"
destination.workload: destination.workload.name | "unknown"
destination.workload.namespace: destination.workload.namespace | "unknown"
destination.principal: destination.principal | "unknown"
destination.app: destination.labels["app"] | "unknown"
destination.version: destination.labels["version"] | "unknown"
destination.service: destination.service.name | "unknown"
destination.service.name: destination.service.name | "unknown"
destination.service.namespace: destination.service.namespace | "unknown"
connection.securityPolicy: conditional((context.reporter.kind | "inbound") == "outbound", "unknown", conditional(connection.mtls | false, "mutual_tls", "none"))
response.flags: context.proxy_error_code | "-"
# https://istio.io/docs/reference/config/policy-and-telemetry/istio.policy.v1beta1/
rules:
newrelic-http-connection:
match: (context.protocol == "http" || context.protocol == "grpc") && (match((request.useragent | "-"), "kube-probe*") == false)
instances:
- newrelic-request-count
- newrelic-request-size
- newrelic-request-duration
- newrelic-response-size
newrelic-tcp-connection:
match: context.protocol == "tcp"
instances:
- newrelic-bytes-sent
- newrelic-bytes-received
newrelic-tcp-connection-open:
match: context.protocol == "tcp" && ((connection.event | "na") == "open")
instances:
- newrelic-connections-opened
newrelic-tcp-connection-closed:
match: context.protocol == "tcp" && ((connection.event | "na") == "close")
instances:
- newrelic-connections-closed
## Span instances from Istio are not sent to the adapter by default.
## The following can be uncommented if spans for inter-service communication
## should be sent to New Relic.
#newrelic-tracing:
# match: (context.protocol == "http" || context.protocol == "grpc") && destination.workload.name != "istio-telemetry" && destination.workload.name != "istio-pilot" && ((request.headers["x-b3-sampled"] | "") == "1")
# instances:
# - newrelic-span