agent.config 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. # The agent namespace
  17. # agent.namespace=${SW_AGENT_NAMESPACE:default-namespace}
  18. # The service name in UI
  19. agent.service_name=${SW_AGENT_NAME:Your_ApplicationName}
  20. # The number of sampled traces per 3 seconds
  21. # Negative or zero means off, by default
  22. agent.sample_n_per_3_secs=${SW_AGENT_SAMPLE:1000}
  23. # Authentication active is based on backend setting, see application.yml for more details.
  24. # agent.authentication = ${SW_AGENT_AUTHENTICATION:xxxx}
  25. # The max amount of spans in a single segment.
  26. # Through this config item, SkyWalking keep your application memory cost estimated.
  27. # agent.span_limit_per_segment=${SW_AGENT_SPAN_LIMIT:150}
  28. # If the operation name of the first span is included in this set, this segment should be ignored. Multiple values should be separated by `,`.
  29. # agent.ignore_suffix=${SW_AGENT_IGNORE_SUFFIX:.jpg,.jpeg,.js,.css,.png,.bmp,.gif,.ico,.mp3,.mp4,.html,.svg}
  30. # If true, SkyWalking agent will save all instrumented classes files in `/debugging` folder.
  31. # SkyWalking team may ask for these files in order to resolve compatible problem.
  32. # agent.is_open_debugging_class = ${SW_AGENT_OPEN_DEBUG:true}
  33. # If true, SkyWalking agent will cache all instrumented classes files to memory or disk files (decided by class cache mode),
  34. # allow other javaagent to enhance those classes that enhanced by SkyWalking agent.
  35. # agent.is_cache_enhanced_class = ${SW_AGENT_CACHE_CLASS:false}
  36. # The instrumented classes cache mode: MEMORY or FILE
  37. # MEMORY: cache class bytes to memory, if instrumented classes is too many or too large, it may take up more memory
  38. # FILE: cache class bytes in `/class-cache` folder, automatically clean up cached class files when the application exits
  39. # agent.class_cache_mode = ${SW_AGENT_CLASS_CACHE_MODE:MEMORY}
  40. # The operationName max length
  41. # Notice, in the current practice, we don't recommend the length over 190.
  42. # agent.operation_name_threshold=${SW_AGENT_OPERATION_NAME_THRESHOLD:150}
  43. # The agent use gRPC plain text in default.
  44. # If true, SkyWalking agent uses TLS even no CA file detected.
  45. # agent.force_tls=${SW_AGENT_FORCE_TLS:false}
  46. # If true, skywalking agent will enable profile when user create a new profile task. Otherwise disable profile.
  47. # profile.active=${SW_AGENT_PROFILE_ACTIVE:true}
  48. # Parallel monitor segment count
  49. # profile.max_parallel=${SW_AGENT_PROFILE_MAX_PARALLEL:5}
  50. # Max monitor segment time(minutes), if current segment monitor time out of limit, then stop it.
  51. # profile.duration=${SW_AGENT_PROFILE_DURATION:10}
  52. # Max dump thread stack depth
  53. # profile.dump_max_stack_depth=${SW_AGENT_PROFILE_DUMP_MAX_STACK_DEPTH:500}
  54. # Snapshot transport to backend buffer size
  55. # profile.snapshot_transport_buffer_size=${SW_AGENT_PROFILE_SNAPSHOT_TRANSPORT_BUFFER_SIZE:50}
  56. # Backend service addresses.
  57. collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.205.24:11800}
  58. # Logging file_name
  59. logging.file_name=${SW_LOGGING_FILE_NAME:skywalking-api.log}
  60. # Logging level
  61. logging.level=${SW_LOGGING_LEVEL:INFO}
  62. # Logging dir
  63. # logging.dir=${SW_LOGGING_DIR:""}
  64. # Logging max_file_size, default: 300 * 1024 * 1024 = 314572800
  65. # logging.max_file_size=${SW_LOGGING_MAX_FILE_SIZE:314572800}
  66. # The max history log files. When rollover happened, if log files exceed this number,
  67. # then the oldest file will be delete. Negative or zero means off, by default.
  68. # logging.max_history_files=${SW_LOGGING_MAX_HISTORY_FILES:-1}
  69. # Listed exceptions would not be treated as an error. Because in some codes, the exception is being used as a way of controlling business flow.
  70. # Besides, the annotation named IgnoredException in the trace toolkit is another way to configure ignored exceptions.
  71. # statuscheck.ignored_exceptions=${SW_STATUSCHECK_IGNORED_EXCEPTIONS:}
  72. # The max recursive depth when checking the exception traced by the agent. Typically, we don't recommend setting this more than 10, which could cause a performance issue. Negative value and 0 would be ignored, which means all exceptions would make the span tagged in error status.
  73. # statuscheck.max_recursive_depth=${SW_STATUSCHECK_MAX_RECURSIVE_DEPTH:1}
  74. # Mount the specific folders of the plugins. Plugins in mounted folders would work.
  75. plugin.mount=${SW_MOUNT_FOLDERS:plugins,activations}
  76. # Exclude activated plugins
  77. # plugin.exclude_plugins=${SW_EXCLUDE_PLUGINS:}
  78. # If set to true, the parameters of the sql (typically java.sql.PreparedStatement) would be collected.
  79. # plugin.jdbc.trace_sql_parameters=${SW_JDBC_TRACE_SQL_PARAMETERS:false}
  80. # Kafka producer configuration
  81. # plugin.kafka.bootstrap_servers=${SW_KAFKA_BOOTSTRAP_SERVERS:localhost:9092}
  82. # if you want to set namespace. please make sure the OAP server has set it in Kafka fetcher module
  83. # plugin.kafka.namespace=${SW_KAFKA_NAMESPACE:""}
  84. # Match spring bean with regex expression for classname
  85. # plugin.springannotation.classname_match_regex=${SW_SPRINGANNOTATION_CLASSNAME_MATCH_REGEX:}