赞
踩
下载地址:https://hub.docker.com/r/openzipkin/zipkin
jelex@jelexxudeMacBook-Pro zipkin-server % pwd
/Users/jelex/Documents/work/zipkin-server
先启动Es:
可能需要先删除 /Users/jelex/dockerV/es/plugins 目录下的.DS_Store
当端口占用时再次启动:
jelex@jelexxudeMacBook-Pro zipkin-server % java -jar zipkin-server-2.24.0-exec.jar --STORAGE_TYPE=elasticsearch --ES_HOSTS=localhost:9200 &
杀死进程:
启动ZIPKIN-server:
jelex@jelexxudeMacBook-Pro zipkin-server % pwd
/Users/jelex/Documents/work/zipkin-server
jelex@jelexxudeMacBook-Pro zipkin-server % java -jar zipkin-server-2.24.0-exec.jar --STORAGE_TYPE=elasticsearch --ES_HOSTS=localhost:9200 &
当es使用了用户名和密码时: 其中es使用x-pack认证:
jelex@bogon ~ % cd /Users/jelex/Documents/work/zipkin-server
jelex@bogon zipkin-server % java -jar zipkin-server-2.24.0-exec.jar --STORAGE_TYPE=elasticsearch \
--ES_HOSTS=101.43.xxx.xx:80 --ES_USERNAME=elastic --ES_PASSWORD=xxxx &
[1] 1914
访问http://localhost:9411/zipkin/
————————————————zipkin启动参数附录———————
Environment Variables
zipkin-server is a drop-in replacement for the scala query service.
yaml configuration binds the following environment variables from zipkin-scala:
CASSANDRA_KEYSPACE
: The keyspace to use. Defaults to “zipkin2”CASSANDRA_CONTACT_POINTS
: Comma separated list of host addresses part of Cassandra cluster. You can also specify a custom port with ‘host:port’. Defaults to localhost on port 9042.CASSANDRA_LOCAL_DC
: Name of the datacenter that will be considered “local” for latency load balancing. When unset, load-balancing is round-robin.CASSANDRA_ENSURE_SCHEMA
: Ensuring cassandra has the latest schema. If enabled tries to execute scripts in the classpath prefixed with cassandra-schema-cql3
. Defaults to trueCASSANDRA_USERNAME
and CASSANDRA_PASSWORD
: Cassandra authentication. Will throw an exception on startup if authentication fails. No defaultCASSANDRA_USE_SSL
: Requires javax.net.ssl.trustStore
and javax.net.ssl.trustStorePassword
, defaults to false.ES_HOSTS
: A comma separated list of elasticsearch base urls to connect to ex. http://host:9200.ES_PIPELINE
: Indicates the ingest pipeline used before spans are indexed. No default.ES_TIMEOUT
: Controls the connect, read and write socket timeouts (in milliseconds) forES_INDEX
: The index prefix to use when generating daily index names. Defaults to zipkin.ES_DATE_SEPARATOR
: The date separator to use when generating daily index names. Defaults to ‘-’.ES_INDEX_SHARDS
: The number of shards to split the index into. Each shard and its replicasES_INDEX_REPLICAS
: The number of replica copies of each shard in the index. Each shard andES_ENSURE_TEMPLATES
: Installs Zipkin index templates when missing. Setting this to false canES_USERNAME
and ES_PASSWORD
: Elasticsearch basic authentication, which defaults to empty string.ES_CREDENTIALS_FILE
: The location of a file containing Elasticsearch basic authenticationzipkin.storage.elasticsearch.username
, password zipkin.storage.elasticsearch.password
.ES_CREDENTIALS_REFRESH_INTERVAL
ES_CREDENTIALS_REFRESH_INTERVAL
: Credentials refresh interval in seconds, which defaults toES_HTTP_LOGGING
: When set, controls the volume of HTTP logging of the Elasticsearch API.ES_SSL_NO_VERIFY
: When true, disables the verification of server’s key certificate chain.ES_TEMPLATE_PRIORITY
: The priority value of the composable index templates. This is only applicableMYSQL_DB
: The database to use. Defaults to “zipkin”.MYSQL_USER
and MYSQL_PASS
: MySQL authentication, which defaults to empty string.MYSQL_HOST
: Defaults to localhostMYSQL_TCP_PORT
: Defaults to 3306MYSQL_MAX_CONNECTIONS
: Maximum concurrent connections, defaults to 10MYSQL_USE_SSL
: Requires javax.net.ssl.trustStore
and javax.net.ssl.trustStorePassword
, defaults to false.https://github.com/openzipkin/zipkin/tree/master/zipkin-server
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。