istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/bootstrap/testdata/tracing_zipkin_golden.json (about)

     1  {
     2    "application_log_config": {
     3      "log_format": {
     4          "text_format": "%Y-%m-%dT%T.%fZ\t%l\tenvoy %n %g:%#\t%v\tthread=%t"
     5      }
     6    },
     7    "node": {
     8      "id": "sidecar~1.2.3.4~foo~bar",
     9      "cluster": "istio-proxy",
    10      "locality": {
    11      },
    12      "metadata": {"ENVOY_PROMETHEUS_PORT":15090,"ENVOY_STATUS_PORT":15021,"INSTANCE_IPS":"10.3.3.3,10.4.4.4,10.5.5.5,10.6.6.6","ISTIO_VERSION":"binary-1.0","OUTLIER_LOG_PATH":"/dev/stdout","PILOT_SAN":["spiffe://cluster.local/ns/istio-system/sa/istio-pilot-service-account"],"PROXY_CONFIG":{"binaryPath":"/usr/local/bin/envoy","configPath":"/tmp/bootstrap/tracing_zipkin","customConfigFile":"envoy_bootstrap.json","discoveryAddress":"istio-pilot:15010","drainDuration":"2s","proxyAdminPort":15000,"serviceCluster":"istio-proxy","statusPort":15020,"tracing":{"zipkin":{"address":"localhost:6000"}}}}
    13    },
    14    "layered_runtime": {
    15        "layers": [
    16            {
    17              "name": "global config",
    18              "static_layer": {"envoy.deprecated_features:envoy.config.listener.v3.Listener.hidden_envoy_deprecated_use_original_dst":true,"envoy.reloadable_features.http_reject_path_with_fragment":false,"overload.global_downstream_max_connections":"2147483647","re2.max_program_size.error_level":"32768"}
    19            },
    20            {
    21                "name": "admin",
    22                "admin_layer": {}
    23            }
    24        ]
    25    },
    26    "bootstrap_extensions": [
    27      {
    28        "name": "envoy.bootstrap.internal_listener",
    29        "typed_config": {
    30          "@type":"type.googleapis.com/udpa.type.v1.TypedStruct",
    31          "type_url": "type.googleapis.com/envoy.extensions.bootstrap.internal_listener.v3.InternalListener",
    32          "value": {
    33            "buffer_size_kb": 64
    34          }
    35        }
    36      }
    37    ],
    38    "stats_config": {
    39      "use_all_default_tags": false,
    40      "stats_tags": [
    41        {
    42          "tag_name": "cluster_name",
    43          "regex": "^cluster\\.((.+?(\\..+?\\.svc\\.cluster\\.local)?)\\.)"
    44        },
    45        {
    46          "tag_name": "tcp_prefix",
    47          "regex": "^tcp\\.((.*?)\\.)\\w+?$"
    48        },
    49        {
    50          "regex": "_rq(_(\\d{3}))$",
    51          "tag_name": "response_code"
    52        },
    53        {
    54          "tag_name": "response_code_class",
    55          "regex": "_rq(_(\\dxx))$"
    56        },
    57        {
    58          "tag_name": "http_conn_manager_listener_prefix",
    59          "regex": "^listener(?=\\.).*?\\.http\\.(((?:[_.[:digit:]]*|[_\\[\\]aAbBcCdDeEfF[:digit:]]*))\\.)"
    60        },
    61        {
    62          "tag_name": "http_conn_manager_prefix",
    63          "regex": "^http\\.(((?:[_.[:digit:]]*|[_\\[\\]aAbBcCdDeEfF[:digit:]]*))\\.)"
    64        },
    65        {
    66          "tag_name": "listener_address",
    67          "regex": "^listener\\.(((?:[_.[:digit:]]*|[_\\[\\]aAbBcCdDeEfF[:digit:]]*))\\.)"
    68        },
    69        {
    70          "tag_name": "mongo_prefix",
    71          "regex": "^mongo\\.(.+?)\\.(collection|cmd|cx_|op_|delays_|decoding_)(.*?)$"
    72        },
    73        {
    74          "regex": "(cache\\.(.+?)\\.)",
    75          "tag_name": "cache"
    76        },
    77        {
    78          "regex": "(component\\.(.+?)\\.)",
    79          "tag_name": "component"
    80        },
    81        {
    82          "regex": "(tag\\.(.+?);\\.)",
    83          "tag_name": "tag"
    84        },
    85        {
    86          "regex": "(wasm_filter\\.(.+?)\\.)",
    87          "tag_name": "wasm_filter"
    88        },
    89        {
    90          "tag_name": "authz_enforce_result",
    91          "regex": "rbac(\\.(allowed|denied))"
    92        },
    93        {
    94          "tag_name": "authz_dry_run_action",
    95          "regex": "(\\.istio_dry_run_(allow|deny)_)"
    96        },
    97        {
    98          "tag_name": "authz_dry_run_result",
    99          "regex": "(\\.shadow_(allowed|denied))"
   100        }
   101      ],
   102      "stats_matcher": {
   103        "inclusion_list": {
   104          "patterns": [
   105            {
   106            "prefix": "reporter="
   107            },
   108            {
   109            "prefix": "cluster_manager"
   110            },
   111            {
   112            "prefix": "listener_manager"
   113            },
   114            {
   115            "prefix": "server"
   116            },
   117            {
   118            "prefix": "cluster.xds-grpc"
   119            },
   120            {
   121            "prefix": "wasm"
   122            },
   123            {
   124            "suffix": "rbac.allowed"
   125            },
   126            {
   127            "suffix": "rbac.denied"
   128            },
   129            {
   130            "suffix": "shadow_allowed"
   131            },
   132            {
   133            "suffix": "shadow_denied"
   134            },
   135            {
   136            "safe_regex": {"regex":"vhost\\.*\\.route\\.*"}
   137            },
   138            {
   139            "prefix": "component"
   140            },
   141            {
   142            "prefix": "istio"
   143            }
   144          ]
   145        }
   146      }
   147    },
   148    "admin": {
   149      "access_log": [
   150        {
   151          "name": "envoy.access_loggers.file",
   152          "typed_config": {
   153            "@type": "type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog",
   154            "path": "/dev/null"
   155          }
   156        }
   157      ],
   158      "profile_path": "/var/lib/istio/data/envoy.prof",
   159      "address": {
   160        "socket_address": {
   161          "address": "127.0.0.1",
   162          "port_value": 15000
   163        }
   164      }
   165    },
   166    "dynamic_resources": {
   167      "lds_config": {
   168        "ads": {},
   169        "initial_fetch_timeout": "0s",
   170        "resource_api_version": "V3"
   171      },
   172      "cds_config": {
   173        "ads": {},
   174        "initial_fetch_timeout": "0s",
   175        "resource_api_version": "V3"
   176      },
   177      "ads_config": {
   178        "api_type": "DELTA_GRPC",
   179        "set_node_on_first_message_only": true,
   180        "transport_api_version": "V3",
   181        "grpc_services": [
   182          {
   183            "envoy_grpc": {
   184              "cluster_name": "xds-grpc"
   185            }
   186          }
   187        ]
   188      }
   189    },
   190    "static_resources": {
   191      "clusters": [
   192        {
   193          "name": "prometheus_stats",
   194          "type": "STATIC",
   195          "connect_timeout": "0.250s",
   196          "lb_policy": "ROUND_ROBIN",
   197          "load_assignment": {
   198            "cluster_name": "prometheus_stats",
   199            "endpoints": [{
   200              "lb_endpoints": [{
   201                "endpoint": {
   202                  "address":{
   203                    "socket_address": {
   204                      "protocol": "TCP",
   205                      "address": "127.0.0.1",
   206                      "port_value": 15000
   207                    }
   208                  }
   209                }
   210              }]
   211            }]
   212          }
   213        },
   214        {
   215          "name": "agent",
   216          "type": "STATIC",
   217          "connect_timeout": "0.250s",
   218          "lb_policy": "ROUND_ROBIN",
   219          "load_assignment": {
   220            "cluster_name": "agent",
   221            "endpoints": [{
   222              "lb_endpoints": [{
   223                "endpoint": {
   224                  "address":{
   225                    "socket_address": {
   226                      "protocol": "TCP",
   227                      "address": "127.0.0.1",
   228                      "port_value": 15020
   229                    }
   230                  }
   231                }
   232              }]
   233            }]
   234          }
   235        },
   236        {
   237          "name": "sds-grpc",
   238          "type": "STATIC",
   239          "typed_extension_protocol_options": {
   240            "envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
   241             "@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
   242             "explicit_http_config": {
   243              "http2_protocol_options": {}
   244             }
   245            }
   246          },
   247          "connect_timeout": "1s",
   248          "lb_policy": "ROUND_ROBIN",
   249          "load_assignment": {
   250            "cluster_name": "sds-grpc",
   251            "endpoints": [{
   252              "lb_endpoints": [{
   253                "endpoint": {
   254                  "address":{
   255                    "pipe": {
   256                      "path": "./var/run/secrets/workload-spiffe-uds/socket"
   257                    }
   258                  }
   259                }
   260              }]
   261            }]
   262          }
   263        },
   264        {
   265          "name": "xds-grpc",
   266          "type" : "STATIC",
   267          "connect_timeout": "1s",
   268          "lb_policy": "ROUND_ROBIN",
   269          "load_assignment": {
   270            "cluster_name": "xds-grpc",
   271            "endpoints": [{
   272              "lb_endpoints": [{
   273                "endpoint": {
   274                  "address":{
   275                    "pipe": {
   276                      "path": "/tmp/XDS"
   277                    }
   278                  }
   279                }
   280              }]
   281            }]
   282          },
   283          "circuit_breakers": {
   284            "thresholds": [
   285              {
   286                "priority": "DEFAULT",
   287                "max_connections": 100000,
   288                "max_pending_requests": 100000,
   289                "max_requests": 100000
   290              },
   291              {
   292                "priority": "HIGH",
   293                "max_connections": 100000,
   294                "max_pending_requests": 100000,
   295                "max_requests": 100000
   296              }
   297            ]
   298          },
   299          "upstream_connection_options": {
   300            "tcp_keepalive": {
   301              "keepalive_time": 300
   302            }
   303          },
   304          "max_requests_per_connection": 1,
   305          "typed_extension_protocol_options": {
   306            "envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
   307             "@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
   308             "explicit_http_config": {
   309              "http2_protocol_options": {}
   310             }
   311            }
   312          }
   313        }
   314        
   315        ,
   316        {
   317          "name": "zipkin",
   318          "type": "STRICT_DNS",
   319          "respect_dns_ttl": true,
   320          "dns_lookup_family": "V4_ONLY",
   321          "dns_refresh_rate": "30s",
   322          "connect_timeout": "1s",
   323          "lb_policy": "ROUND_ROBIN",
   324          "load_assignment": {
   325            "cluster_name": "zipkin",
   326            "endpoints": [{
   327              "lb_endpoints": [{
   328                "endpoint": {
   329                  "address":{
   330                    "socket_address": {"address": "localhost", "port_value": 6000}
   331                  }
   332                }
   333              }]
   334            }]
   335          }
   336        }
   337        
   338        
   339      ],
   340      "listeners":[
   341        {
   342          "address": {
   343            "socket_address": {
   344              "protocol": "TCP",
   345              "address": "0.0.0.0",
   346              
   347              "port_value": 15090
   348            }
   349          },
   350          "filter_chains": [
   351            {
   352              "filters": [
   353                {
   354                  "name": "envoy.filters.network.http_connection_manager",
   355                  "typed_config": {
   356                    "@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
   357                    "codec_type": "AUTO",
   358                    "stat_prefix": "stats",
   359                    "route_config": {
   360                      "virtual_hosts": [
   361                        {
   362                          "name": "backend",
   363                          "domains": [
   364                            "*"
   365                          ],
   366                          "routes": [
   367                            {
   368                              "match": {
   369                                "prefix": "/stats/prometheus"
   370                              },
   371                              "route": {
   372                                "cluster": "prometheus_stats"
   373                              }
   374                            }
   375                          ]
   376                        }
   377                      ]
   378                    },
   379                    "http_filters": [
   380                    {
   381                      "name": "envoy.filters.http.router",
   382                      "typed_config": {
   383                        "@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
   384                      }
   385                    }]
   386                  }
   387                }
   388              ]
   389            }
   390          ]
   391        },
   392        {
   393          "address": {
   394             "socket_address": {
   395               "protocol": "TCP",
   396               "address": "0.0.0.0",
   397               "port_value": 15021
   398             }
   399          },
   400          "filter_chains": [
   401            {
   402              "filters": [
   403                {
   404                  "name": "envoy.filters.network.http_connection_manager",
   405                  "typed_config": {
   406                    "@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
   407                    "codec_type": "AUTO",
   408                    "stat_prefix": "agent",
   409                    "route_config": {
   410                      "virtual_hosts": [
   411                        {
   412                          "name": "backend",
   413                          "domains": [
   414                            "*"
   415                          ],
   416                          "routes": [
   417                            {
   418                              "match": {
   419                                "prefix": "/healthz/ready"
   420                              },
   421                              "route": {
   422                                "cluster": "agent"
   423                              }
   424                            }
   425                          ]
   426                        }
   427                      ]
   428                    },
   429                    "http_filters": [{
   430                      "name": "envoy.filters.http.router",
   431                      "typed_config": {
   432                        "@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
   433                      }
   434                    }]
   435                  }
   436                }
   437              ]
   438            }
   439          ]
   440        }
   441      ]
   442    }
   443    ,
   444    "tracing": {
   445      "http": {
   446        "name": "envoy.tracers.zipkin",
   447        "typed_config": {
   448          "@type": "type.googleapis.com/envoy.config.trace.v3.ZipkinConfig",
   449          "collector_cluster": "zipkin",
   450          "collector_endpoint": "/api/v2/spans",
   451          "collector_endpoint_version": "HTTP_JSON",
   452          "trace_id_128bit": true,
   453          "shared_span_context": false
   454        }
   455      }
   456    }
   457    
   458    
   459    ,
   460    "cluster_manager": {
   461      "outlier_detection": {
   462        "event_log_path": "/dev/stdout"
   463      }
   464    }
   465    
   466  }