application.yml 3.9 KB
Newer Older
wu-sheng's avatar
wu-sheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.

P
peng-yongsheng 已提交
17 18 19 20
#cluster:
#  zookeeper:
#    hostPort: localhost:2181
#    sessionTimeout: 100000
21 22
naming:
  jetty:
wu-sheng's avatar
wu-sheng 已提交
23
    #OS real network IP(binding required), for agent to find collector cluster
24
    host: localhost
wu-sheng's avatar
wu-sheng 已提交
25
    port: 10800
26
    contextPath: /
彭勇升 pengys 已提交
27 28 29
cache:
#  guava:
  caffeine:
30 31
remote:
  gRPC:
wu-sheng's avatar
wu-sheng 已提交
32
    # OS real network IP(binding required), for collector nodes communicate with each other in cluster. collectorN --(gRPC) --> collectorM
33
    host: localhost
wu-sheng's avatar
wu-sheng 已提交
34
    port: 11800
35
agent_gRPC:
36
  gRPC:
wu-sheng's avatar
wu-sheng 已提交
37
    #OS real network IP(binding required), for agent to uplink data(trace/metrics) to collector. agent--(gRPC)--> collector
38 39
    host: localhost
    port: 11800
wu-sheng's avatar
wu-sheng 已提交
40
    # Set these two setting to open ssl
41 42
    #sslCertChainFile: $path
    #sslPrivateKeyFile: $path
43

wu-sheng's avatar
wu-sheng 已提交
44
    # Set your own token to active auth
45
    #authentication: xxxxxx
46
agent_jetty:
47
  jetty:
wu-sheng's avatar
wu-sheng 已提交
48 49 50
    # OS real network IP(binding required), for agent to uplink data(trace/metrics) to collector through HTTP. agent--(HTTP)--> collector
    # SkyWalking native Java/.Net/node.js agents don't use this.
    # Open this for other implementor.
51 52
    host: localhost
    port: 12800
53
    contextPath: /
P
peng-yongsheng 已提交
54 55 56 57 58
analysis_register:
  default:
analysis_jvm:
  default:
analysis_segment_parser:
59
  default:
60 61 62
    bufferFilePath: ../buffer/
    bufferOffsetMaxFileSize: 10M
    bufferSegmentMaxFileSize: 500M
彭勇升 pengys 已提交
63
    bufferFileCleanWhenRestart: true
64 65
ui:
  jetty:
wu-sheng's avatar
wu-sheng 已提交
66 67
    # Stay in `localhost` if UI starts up in default mode.
    # Change it to OS real network IP(binding required), if deploy collector in different machine.
68 69
    host: localhost
    port: 12800
70
    contextPath: /
71
storage:
72
  elasticsearch:
73 74 75 76 77
    clusterName: CollectorDBCluster
    clusterTransportSniffer: true
    clusterNodes: localhost:9300
    indexShardsNumber: 2
    indexReplicasNumber: 0
彭勇升 pengys 已提交
78
    highPerformanceMode: true
79 80 81 82 83
    # Batch process setting, refer to https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.5/java-docs-bulk-processor.html
    bulkActions: 2000 # Execute the bulk every 2000 requests
    bulkSize: 20 # flush the bulk every 20mb
    flushInterval: 10 # flush the bulk every 10 seconds whatever the number of requests
    concurrentRequests: 2 # the number of concurrent requests
84 85 86 87 88 89
    # Set a timeout on metric data. After the timeout has expired, the metric data will automatically be deleted.
    traceDataTTL: 90 # Unit is minute
    minuteMetricDataTTL: 90 # Unit is minute
    hourMetricDataTTL: 36 # Unit is hour
    dayMetricDataTTL: 45 # Unit is day
    monthMetricDataTTL: 18 # Unit is month
90 91
#storage:
#  h2:
92 93
#    url: jdbc:h2:~/memorydb
#    userName: sa
94 95
configuration:
  default:
wu-sheng's avatar
wu-sheng 已提交
96 97
    #namespace: xxxxx
    # alarm threshold
98 99 100 101 102 103
    applicationApdexThreshold: 2000
    serviceErrorRateThreshold: 10.00
    serviceAverageResponseTimeThreshold: 2000
    instanceErrorRateThreshold: 10.00
    instanceAverageResponseTimeThreshold: 2000
    applicationErrorRateThreshold: 10.00
104
    applicationAverageResponseTimeThreshold: 2000
wu-sheng's avatar
wu-sheng 已提交
105
    # thermodynamic
106
    thermodynamicResponseTimeStep: 50
彭勇升 pengys 已提交
107
    thermodynamicCountOfResponseTimeSteps: 40
wu-sheng's avatar
wu-sheng 已提交
108
    # max collection's size of worker cache collection, setting it smaller when collector OutOfMemory crashed.
109 110 111 112 113
    workerCacheMaxSize: 10000
#receiver_zipkin:
#  default:
#    host: localhost
#    port: 9411
114
#    contextPath: /