diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 984a45057bf..344f7dff736 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -19299,13 +19299,13 @@ type: long -- -*`istio.mixer.handler`*:: +*`istio.mixer.handler.name`*:: + -- The name of the daemon handler -type: long +type: keyword -- @@ -19315,7 +19315,7 @@ type: long The name of the variety -type: long +type: keyword -- @@ -19332,7 +19332,7 @@ Contains statistics related to the Istio pilot service Count of concurrent xDS client connections for Pilot. -type: integer +type: long -- @@ -19342,14 +19342,34 @@ type: integer Count of xDS messages sent, as well as errors building or sending xDS messages for lds, rds, cds and eds. -type: integer +type: long + +-- + +*`istio.pilot.xds.push.time.ms.bucket.*`*:: ++ +-- +Total time Pilot takes to push lds, rds, cds and eds, histogram buckets in milliseconds. + + +type: object + +-- + +*`istio.pilot.xds.push.time.ms.sum`*:: ++ +-- +Total time Pilot takes to push lds, rds, cds and eds, histogram sum of times in milliseconds. + + +type: long -- -*`istio.pilot.xds.push.time.sec`*:: +*`istio.pilot.xds.push.time.ms.count`*:: + -- -Total time in seconds Pilot takes to push lds, rds, cds and eds. +Total time Pilot takes to push lds, rds, cds and eds, histogram count of times. type: long @@ -19362,7 +19382,7 @@ type: long Instances for each cluster, as of last push. Zero instances is an error. -type: object +type: long -- @@ -19372,7 +19392,7 @@ type: object Number of errors (timeouts) initiating push context. -type: integer +type: long -- @@ -19382,7 +19402,7 @@ type: integer Total number of internal XDS errors in pilot. -type: integer +type: long -- @@ -19392,7 +19412,7 @@ type: integer Number of conflicting inbound listeners. -type: integer +type: long -- @@ -19402,7 +19422,7 @@ type: integer Number of conflicting wildcard http listeners with current wildcard tcp listener. -type: integer +type: long -- @@ -19412,7 +19432,7 @@ type: integer Number of conflicting HTTP listeners with well known HTTPS ports. -type: integer +type: long -- @@ -19422,7 +19442,7 @@ type: integer Number of conflicting wildcard tcp listeners with current wildcard http listener. -type: integer +type: long -- @@ -19432,7 +19452,7 @@ type: integer Number of conflicting tcp listeners with current tcp listener. -type: integer +type: long -- @@ -19456,30 +19476,30 @@ type: long -- -*`istio.pilot.services`*:: +*`istio.pilot.proxy.conv.ms.count`*:: + -- -Total services known to pilot. +Time needed by Pilot to push Envoy configurations, histogram count of times. -type: integer +type: long -- -*`istio.pilot.virt.services`*:: +*`istio.pilot.services`*:: + -- -Total virtual services known to pilot. +Total services known to pilot. type: integer -- -*`istio.pilot.proxy.conv.ms.count`*:: +*`istio.pilot.virt.services`*:: + -- -Time needed by Pilot to push Envoy configurations, histogram count of times. +Total virtual services known to pilot. type: long @@ -19492,7 +19512,7 @@ type: long Pods not found in the endpoint table, possibly invalid. -type: object +type: long -- diff --git a/x-pack/metricbeat/module/istio/fields.go b/x-pack/metricbeat/module/istio/fields.go index 51c2f60e66f..d270c2628ba 100644 --- a/x-pack/metricbeat/module/istio/fields.go +++ b/x-pack/metricbeat/module/istio/fields.go @@ -19,5 +19,5 @@ func init() { // AssetIstio returns asset data. // This is the base64 encoded gzipped contents of module/istio. func AssetIstio() string { - return "eJzUXFuT47bRfZ9f0eWXz/5qlvuamodUpca5bCV2bXadSiovMgS2RFggQANNaeRfn8KNpChSowupGc/DriSSOOegG43GjR9gg/snEJaEfgAgQRKf4Bv//ZsHgBwtN6IiodUT/PEBAMK98IPOa4kPAAYlMotPsERiDwArgTK3T/7WD6BYiW3x7o/2FT7B2ui6ir8MYLi/n/1TPwPXiphQFiwxcr9xC1Qwgh0aBIMsh5XRJXzqgHRJdIlwQSxH2fw+ROcEJff3PEDHoGSEOZAGKjAwgeeABRbNVnDsFNKvsvTXZ91lvjYVz0qkQucH15OCDe532vSvndDh/n4q0BcMAwUfAB9rmAp5qOQDaAcyLa57HPTKm8qgrZCT2I7QGeRlkRukhXNMo6VEs7BbvmCcL7hB5wgLjoYyrmtFg9SlVuvLeau6XKJxzF3xYiU4I7QQMSGv0TlgVACMe/xwWWiVjUgxWzQLozV50gt8qYTZLyxyrXI7yH4lNevrOoN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KT9jCUuP/ggNQVGQwI+5Ev2Eol40GkZac1M8gsutZ2pgKjr4v69HgEtWX4wCiDDlBWnTTxxLhnWWuU07WS5hxazRQhQYHRLQgVLZ7AWW+ziPkC1FUarGtWJpEqiHZ/9t8WyFfIRPR0NPb0i4sbe7mj7MXuUT9xVQgYzcZQ7XbdJ6Ixc4e5RFq5wJ/eDt3fcxdtg+8DJafBte/vsnPfR6zghYWq16EvQvPebj8QYIAE3Qmp6SLLCI2VKVjyXeQ/lP/gX0+iVM5zkWJ+//5IOpPucmvXJ6U9OyrRJOWZNa6ts++OOmuNz8CKRJ2AWdiil+z/6I++nfThm3DX+1+GNR807ObK0T2DcP7y0PqWG5YnsYpLna3lfp2rfF8o5+DAMQGyD1pma4zWt5enlWrQL5WZ8bOROHbEuLRQQ3yYmazH+nXJ4MnMv6LQAZ5m56/I/dhtyNxv8YwRctpbQ+CnmX5tiyQsp4L9o9HALb31R9ulMSdfrXCvCZ4r7tUzUfxwHJN+6/tMt2e9AKEGCkd+nuTFIBE7STK+ryktx/Mah7qVY//n+S2ItVFgeTm/ApOBUSGEJlc+TLnWrckUXfScmJNdnEQMS6OnzlhE53ZK/s6iImkJv0RRxTSmIT59s5+K8E7LkzJTgoHvmsBNUdTuG7iLi/TV3iHO/5bfnoSx/6jVS4xe+sKt3X3+BRhu6foyIj4bIqXnMGA27/9QQHYzj/eLmtr8zkl42tlDwx7Xavk5g4dYuhViGs6i4isX1689qq/eHOa3bo4pDoRlDinsUXB9PHMrIGkzcI+SSSOLsWzncArU+yupdtModv3LjzLK2FYaK3O8H8TTiC0Cuo6N0IXJ5h0+6DKn2lV9CY7IVVRneuEBsKfEJGm2tWMo9COWPn074txCKTTK77bGi7njoL//8/sdpUDr1jtfbEIPNhhrowyfAQrrzfwEAAP//6fCCkg==" } diff --git a/x-pack/metricbeat/module/istio/mixer/_meta/data.json b/x-pack/metricbeat/module/istio/mixer/_meta/data.json index d19f35c26bb..978fd549330 100644 --- a/x-pack/metricbeat/module/istio/mixer/_meta/data.json +++ b/x-pack/metricbeat/module/istio/mixer/_meta/data.json @@ -8,7 +8,8 @@ "istio": { "mixer": { "handler": { - "daemons": 1 + "daemons": 1, + "name": "prometheus.istio-system" } } }, diff --git a/x-pack/metricbeat/module/istio/mixer/_meta/fields.yml b/x-pack/metricbeat/module/istio/mixer/_meta/fields.yml index 0e1fe6643ba..04efd635f8a 100644 --- a/x-pack/metricbeat/module/istio/mixer/_meta/fields.yml +++ b/x-pack/metricbeat/module/istio/mixer/_meta/fields.yml @@ -88,11 +88,11 @@ type: long description: > The number of handlers that were re-used during config transition. - - name: handler - type: long + - name: handler.name + type: keyword description: > The name of the daemon handler - name: variety - type: long + type: keyword description: > The name of the variety diff --git a/x-pack/metricbeat/module/istio/mixer/_meta/testdata/docs.plain-expected.json b/x-pack/metricbeat/module/istio/mixer/_meta/testdata/docs.plain-expected.json index 600e33e83d5..95e749c59df 100644 --- a/x-pack/metricbeat/module/istio/mixer/_meta/testdata/docs.plain-expected.json +++ b/x-pack/metricbeat/module/istio/mixer/_meta/testdata/docs.plain-expected.json @@ -8,7 +8,8 @@ "istio": { "mixer": { "handler": { - "daemons": 1 + "daemons": 1, + "name": "prometheus.istio-system" } } }, @@ -42,6 +43,29 @@ "type": "istio" } }, + { + "event": { + "dataset": "istio.mixer", + "duration": 115000, + "module": "istio" + }, + "istio": { + "mixer": { + "handler": { + "daemons": 4, + "name": "kubernetesenv.istio-system" + } + } + }, + "metricset": { + "name": "mixer", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "istio" + } + }, { "event": { "dataset": "istio.mixer", @@ -118,28 +142,6 @@ "type": "istio" } }, - { - "event": { - "dataset": "istio.mixer", - "duration": 115000, - "module": "istio" - }, - "istio": { - "mixer": { - "handler": { - "daemons": 4 - } - } - }, - "metricset": { - "name": "mixer", - "period": 10000 - }, - "service": { - "address": "127.0.0.1:55555", - "type": "istio" - } - }, { "event": { "dataset": "istio.mixer", diff --git a/x-pack/metricbeat/module/istio/mixer/mixer.go b/x-pack/metricbeat/module/istio/mixer/mixer.go index cf324ef2da5..357624485d8 100644 --- a/x-pack/metricbeat/module/istio/mixer/mixer.go +++ b/x-pack/metricbeat/module/istio/mixer/mixer.go @@ -48,7 +48,7 @@ var mapping = &prometheus.MetricsMapping{ }, Labels: map[string]prometheus.LabelMap{ - "handler": prometheus.KeyLabel("handler"), + "handler": prometheus.KeyLabel("handler.name"), "variety": prometheus.KeyLabel("variety"), }, } diff --git a/x-pack/metricbeat/module/istio/pilot/_meta/fields.yml b/x-pack/metricbeat/module/istio/pilot/_meta/fields.yml index 6830fb8643c..af220be0faa 100644 --- a/x-pack/metricbeat/module/istio/pilot/_meta/fields.yml +++ b/x-pack/metricbeat/module/istio/pilot/_meta/fields.yml @@ -5,48 +5,57 @@ release: beta fields: - name: xds.count - type: integer + type: long description: > Count of concurrent xDS client connections for Pilot. - name: xds.pushes - type: integer + type: long description: > Count of xDS messages sent, as well as errors building or sending xDS messages for lds, rds, cds and eds. - - name: xds.push.time.sec + - name: xds.push.time.ms.bucket.* + type: object + object_type: long + description: > + Total time Pilot takes to push lds, rds, cds and eds, histogram buckets in milliseconds. + - name: xds.push.time.ms.sum type: long description: > - Total time in seconds Pilot takes to push lds, rds, cds and eds. + Total time Pilot takes to push lds, rds, cds and eds, histogram sum of times in milliseconds. + - name: xds.push.time.ms.count + type: long + description: > + Total time Pilot takes to push lds, rds, cds and eds, histogram count of times. - name: xds.eds.instances - type: object + type: long description: > Instances for each cluster, as of last push. Zero instances is an error. - name: xds.push.context.errors - type: integer + type: long description: > Number of errors (timeouts) initiating push context. - name: xds.internal.errors - type: integer + type: long description: > Total number of internal XDS errors in pilot. - name: conflict.listener.inbound - type: integer + type: long description: > Number of conflicting inbound listeners. - name: conflict.listener.outbound.http.over.current.tcp - type: integer + type: long description: > Number of conflicting wildcard http listeners with current wildcard tcp listener. - name: conflict.listener.outbound.http.over.https - type: integer + type: long description: > Number of conflicting HTTP listeners with well known HTTPS ports. - name: conflict.listener.outbound.tcp.over.current.http - type: integer + type: long description: > Number of conflicting wildcard tcp listeners with current wildcard http listener. - name: conflict.listener.outbound.tcp.over.current.tcp - type: integer + type: long description: > Number of conflicting tcp listeners with current tcp listener. - name: proxy.conv.ms.bucket.* @@ -58,20 +67,20 @@ type: long description: > Time needed by Pilot to push Envoy configurations, histogram sum of times in milliseconds. + - name: proxy.conv.ms.count + type: long + description: > + Time needed by Pilot to push Envoy configurations, histogram count of times. - name: services type: integer description: > Total services known to pilot. - name: virt.services - type: integer - description: > - Total virtual services known to pilot. - - name: proxy.conv.ms.count type: long description: > - Time needed by Pilot to push Envoy configurations, histogram count of times. + Total virtual services known to pilot. - name: no.ip - type: object + type: long description: > Pods not found in the endpoint table, possibly invalid. - name: cluster @@ -81,4 +90,4 @@ - name: type type: text description: > - The Envoy proxy configuration type. \ No newline at end of file + The Envoy proxy configuration type. diff --git a/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain b/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain index 78a99d0154e..9907bbc612f 100644 --- a/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain +++ b/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain @@ -290,6 +290,52 @@ pilot_xds_eds_instances{cluster="outbound|9091||istio-telemetry.istio-system.svc pilot_xds_eds_instances{cluster="outbound|9153||kube-dns.kube-system.svc.cluster.local"} 2 pilot_xds_eds_instances{cluster="outbound|9411||zipkin.istio-system.svc.cluster.local"} 1 pilot_xds_eds_instances{cluster="outbound|9901||istio-galley.istio-system.svc.cluster.local"} 1 +# HELP pilot_xds_push_time Total time in seconds Pilot takes to push lds, rds, cds and eds. +# TYPE pilot_xds_push_time histogram +pilot_xds_push_time_bucket{type="cds",le="0.01"} 7 +pilot_xds_push_time_bucket{type="cds",le="0.1"} 7 +pilot_xds_push_time_bucket{type="cds",le="1"} 7 +pilot_xds_push_time_bucket{type="cds",le="3"} 7 +pilot_xds_push_time_bucket{type="cds",le="5"} 7 +pilot_xds_push_time_bucket{type="cds",le="10"} 7 +pilot_xds_push_time_bucket{type="cds",le="20"} 7 +pilot_xds_push_time_bucket{type="cds",le="30"} 7 +pilot_xds_push_time_bucket{type="cds",le="+Inf"} 7 +pilot_xds_push_time_sum{type="cds"} 0.005687965 +pilot_xds_push_time_count{type="cds"} 7 +pilot_xds_push_time_bucket{type="eds",le="0.01"} 7 +pilot_xds_push_time_bucket{type="eds",le="0.1"} 7 +pilot_xds_push_time_bucket{type="eds",le="1"} 7 +pilot_xds_push_time_bucket{type="eds",le="3"} 7 +pilot_xds_push_time_bucket{type="eds",le="5"} 7 +pilot_xds_push_time_bucket{type="eds",le="10"} 7 +pilot_xds_push_time_bucket{type="eds",le="20"} 7 +pilot_xds_push_time_bucket{type="eds",le="30"} 7 +pilot_xds_push_time_bucket{type="eds",le="+Inf"} 7 +pilot_xds_push_time_sum{type="eds"} 0.01707105 +pilot_xds_push_time_count{type="eds"} 7 +pilot_xds_push_time_bucket{type="lds",le="0.01"} 7 +pilot_xds_push_time_bucket{type="lds",le="0.1"} 7 +pilot_xds_push_time_bucket{type="lds",le="1"} 7 +pilot_xds_push_time_bucket{type="lds",le="3"} 7 +pilot_xds_push_time_bucket{type="lds",le="5"} 7 +pilot_xds_push_time_bucket{type="lds",le="10"} 7 +pilot_xds_push_time_bucket{type="lds",le="20"} 7 +pilot_xds_push_time_bucket{type="lds",le="30"} 7 +pilot_xds_push_time_bucket{type="lds",le="+Inf"} 7 +pilot_xds_push_time_sum{type="lds"} 0.0036923069999999997 +pilot_xds_push_time_count{type="lds"} 7 +pilot_xds_push_time_bucket{type="rds",le="0.01"} 3 +pilot_xds_push_time_bucket{type="rds",le="0.1"} 3 +pilot_xds_push_time_bucket{type="rds",le="1"} 3 +pilot_xds_push_time_bucket{type="rds",le="3"} 3 +pilot_xds_push_time_bucket{type="rds",le="5"} 3 +pilot_xds_push_time_bucket{type="rds",le="10"} 3 +pilot_xds_push_time_bucket{type="rds",le="20"} 3 +pilot_xds_push_time_bucket{type="rds",le="30"} 3 +pilot_xds_push_time_bucket{type="rds",le="+Inf"} 3 +pilot_xds_push_time_sum{type="rds"} 0.00041217400000000007 +pilot_xds_push_time_count{type="rds"} 3 # HELP pilot_xds_push_context_errors Number of errors (timeouts) initiating push context. # TYPE pilot_xds_push_context_errors counter pilot_xds_push_context_errors 0 diff --git a/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain-expected.json b/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain-expected.json index 1e5b26bc30a..4e0814dd51d 100644 --- a/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain-expected.json +++ b/x-pack/metricbeat/module/istio/pilot/_meta/testdata/docs.plain-expected.json @@ -399,6 +399,48 @@ "type": "istio" } }, + { + "event": { + "dataset": "istio.pilot", + "duration": 115000, + "module": "istio" + }, + "istio": { + "pilot": { + "type": "cds", + "xds": { + "push": { + "time": { + "ms": { + "bucket": { + "+Inf": 7, + "10": 7, + "100": 7, + "1000": 7, + "10000": 7, + "20000": 7, + "3000": 7, + "30000": 7, + "5000": 7 + }, + "count": 7, + "sum": 5.687964999999999 + } + } + }, + "pushes": 250 + } + } + }, + "metricset": { + "name": "pilot", + "period": 10000 + }, + "service": { + "address": "127.0.0.1:55555", + "type": "istio" + } + }, { "event": { "dataset": "istio.pilot", @@ -857,11 +899,28 @@ }, "istio": { "pilot": { - "cluster": "outbound_.443_._.kubernetes.default.svc.cluster.local", + "type": "lds", "xds": { - "eds": { - "instances": 1 - } + "push": { + "time": { + "ms": { + "bucket": { + "+Inf": 7, + "10": 7, + "100": 7, + "1000": 7, + "10000": 7, + "20000": 7, + "3000": 7, + "30000": 7, + "5000": 7 + }, + "count": 7, + "sum": 3.6923069999999996 + } + } + }, + "pushes": 248 } } }, @@ -882,9 +941,11 @@ }, "istio": { "pilot": { - "type": "lds_senderr", + "cluster": "outbound_.443_._.kubernetes.default.svc.cluster.local", "xds": { - "pushes": 2 + "eds": { + "instances": 1 + } } } }, @@ -905,11 +966,9 @@ }, "istio": { "pilot": { - "cluster": "outbound|15029||istio-ingressgateway.istio-system.svc.cluster.local", + "type": "lds_senderr", "xds": { - "eds": { - "instances": 1 - } + "pushes": 2 } } }, @@ -930,7 +989,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.42422_._.istio-telemetry.istio-system.svc.cluster.local", + "cluster": "outbound|15029||istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -955,7 +1014,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|443||istio-sidecar-injector.istio-system.svc.cluster.local", + "cluster": "outbound_.42422_._.istio-telemetry.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -980,7 +1039,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|443||istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound|443||istio-sidecar-injector.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1005,7 +1064,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.15011_._.istio-pilot.istio-system.svc.cluster.local", + "cluster": "outbound|443||istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1030,7 +1089,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|3000||grafana.istio-system.svc.cluster.local", + "cluster": "outbound_.15011_._.istio-pilot.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1055,9 +1114,11 @@ }, "istio": { "pilot": { - "type": "lds", + "cluster": "outbound|3000||grafana.istio-system.svc.cluster.local", "xds": { - "pushes": 248 + "eds": { + "instances": 1 + } } } }, @@ -1145,29 +1206,6 @@ "type": "istio" } }, - { - "event": { - "dataset": "istio.pilot", - "duration": 115000, - "module": "istio" - }, - "istio": { - "pilot": { - "type": "eds", - "xds": { - "pushes": 309 - } - } - }, - "metricset": { - "name": "pilot", - "period": 10000 - }, - "service": { - "address": "127.0.0.1:55555", - "type": "istio" - } - }, { "event": { "dataset": "istio.pilot", @@ -1729,9 +1767,11 @@ }, "istio": { "pilot": { - "type": "rds", + "cluster": "outbound_.15014_._.istio-telemetry.istio-system.svc.cluster.local", "xds": { - "pushes": 181 + "eds": { + "instances": 1 + } } } }, @@ -1752,7 +1792,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.15014_._.istio-telemetry.istio-system.svc.cluster.local", + "cluster": "outbound_.80_._.httpbin.default.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1777,7 +1817,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.80_._.httpbin.default.svc.cluster.local", + "cluster": "outbound|443||istio-galley.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1802,7 +1842,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|443||istio-galley.istio-system.svc.cluster.local", + "cluster": "outbound|15443||istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1827,7 +1867,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|15443||istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound_.443_._.istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1852,7 +1892,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.443_._.istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound_.15004_._.istio-policy.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1877,9 +1917,11 @@ }, "istio": { "pilot": { - "type": "cds", + "cluster": "outbound_.15020_._.istio-ingressgateway.istio-system.svc.cluster.local", "xds": { - "pushes": 250 + "eds": { + "instances": 1 + } } } }, @@ -1900,7 +1942,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.15004_._.istio-policy.istio-system.svc.cluster.local", + "cluster": "outbound|15031||istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1925,7 +1967,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.15020_._.istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound|15030||istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1950,7 +1992,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|15031||istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound|9901||istio-galley.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -1975,7 +2017,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|15030||istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -2000,10 +2042,10 @@ }, "istio": { "pilot": { - "cluster": "outbound|9901||istio-galley.istio-system.svc.cluster.local", + "cluster": "outbound_.53_._.kube-dns.kube-system.svc.cluster.local", "xds": { "eds": { - "instances": 1 + "instances": 2 } } } @@ -2025,11 +2067,28 @@ }, "istio": { "pilot": { - "cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local", + "type": "rds", "xds": { - "eds": { - "instances": 1 - } + "push": { + "time": { + "ms": { + "bucket": { + "+Inf": 3, + "10": 3, + "100": 3, + "1000": 3, + "10000": 3, + "20000": 3, + "3000": 3, + "30000": 3, + "5000": 3 + }, + "count": 3, + "sum": 0.4121740000000001 + } + } + }, + "pushes": 181 } } }, @@ -2050,10 +2109,10 @@ }, "istio": { "pilot": { - "cluster": "outbound_.53_._.kube-dns.kube-system.svc.cluster.local", + "cluster": "outbound|9080||details.default.svc.cluster.local", "xds": { "eds": { - "instances": 2 + "instances": 1 } } } @@ -2075,7 +2134,7 @@ }, "istio": { "pilot": { - "cluster": "outbound|9080||details.default.svc.cluster.local", + "cluster": "outbound_.15029_._.istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -2100,7 +2159,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.15029_._.istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound_.15030_._.istio-ingressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -2125,7 +2184,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.15030_._.istio-ingressgateway.istio-system.svc.cluster.local", + "cluster": "outbound_.443_._.istio-egressgateway.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -2150,7 +2209,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.443_._.istio-egressgateway.istio-system.svc.cluster.local", + "cluster": "outbound_.80_._.default-http-backend.kube-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -2175,7 +2234,7 @@ }, "istio": { "pilot": { - "cluster": "outbound_.80_._.default-http-backend.kube-system.svc.cluster.local", + "cluster": "outbound_.80_._.tracing.istio-system.svc.cluster.local", "xds": { "eds": { "instances": 1 @@ -2200,11 +2259,28 @@ }, "istio": { "pilot": { - "cluster": "outbound_.80_._.tracing.istio-system.svc.cluster.local", + "type": "eds", "xds": { - "eds": { - "instances": 1 - } + "push": { + "time": { + "ms": { + "bucket": { + "+Inf": 7, + "10": 7, + "100": 7, + "1000": 7, + "10000": 7, + "20000": 7, + "3000": 7, + "30000": 7, + "5000": 7 + }, + "count": 7, + "sum": 17.07105 + } + } + }, + "pushes": 309 } } }, diff --git a/x-pack/metricbeat/module/istio/pilot/pilot.go b/x-pack/metricbeat/module/istio/pilot/pilot.go index 7307373c2fb..45d9d6df28d 100644 --- a/x-pack/metricbeat/module/istio/pilot/pilot.go +++ b/x-pack/metricbeat/module/istio/pilot/pilot.go @@ -26,7 +26,7 @@ var mapping = &prometheus.MetricsMapping{ Metrics: map[string]prometheus.MetricMap{ "pilot_xds": prometheus.Metric("xds.count"), "pilot_xds_pushes": prometheus.Metric("xds.pushes"), - "pilot_xds_push_time": prometheus.Metric("xds.push.time.sec"), + "pilot_xds_push_time": prometheus.Metric("xds.push.time.ms", prometheus.OpMultiplyBuckets(1000)), "pilot_xds_eds_instances": prometheus.Metric("xds.eds.instances"), "pilot_xds_push_context_errors": prometheus.Metric("xds.push.context.errors"), "pilot_total_xds_internal_errors": prometheus.Metric("xds.internal.errors"),