This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: istio-test | |
labels: | |
istio-injection: enabled | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "VAR_JOB", | |
"type": "constant", | |
"label": "job", | |
"value": "java", | |
"description": "" | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://time.geekbang.org/column/article/126504 | |
// 张大爷在胡同口等着 ... | |
// 碰见一个李大爷:127.0.0.1:59668 | |
// 耗时: 40.354851ms | |
package main | |
import ( | |
"bytes" | |
"encoding/binary" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [], | |
"__requires": [ | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "5.2.4" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [], | |
"__requires": [ | |
{ | |
"type": "grafana", | |
"id": "grafana", | |
"name": "Grafana", | |
"version": "5.2.4" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__inputs": [ | |
{ | |
"name": "VAR_JOB", | |
"type": "constant", | |
"label": "Job", | |
"value": "java", | |
"description": "" | |
} | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################## | |
# cd demo | |
# mvn clean install -Pdocker -Pstaging | |
################################## | |
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.20.0:start (start) on project pojo-client: Execution start of goal io.fabric8:docker-maven-plugin:0.20.0:start failed: Start-Job failed with unexpected exception: [pojo-server:2.0.0] "pojo-server": Timeout after 120669 ms while waiting on log out 'Register microservice instance success' and on tcp port '[/172.17.0.4:8080]' -> [Help 1] | |
################################## | |
# pojo-server:2.0.0 container log | |
################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => "/path/to/tomcat/logs/localhost_access_log*.txt" | |
} | |
} | |
filter { | |
grok { | |
match => { | |
"message" => "%{COMBINEDAPACHELOG} %{IPORHOST:serverip} %{NUMBER:serverport} %{NUMBER:elapsed_millis} %{NOTSPACE:sessionid} %{QS:proxiedip} %{QS:loginame}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OpenAPI Object | |
openAPI.openapi.gte=3.0.2 | |
openAPI.tags.size.gte=1 | |
openAPI.security.size.eq=0 | |
# Info Object | |
info.description.required=true | |
# Tag Object | |
tag.name.case=upper-camel-case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo 'usage: init-tiller-sa.sh <namespace>' | |
exit 1 | |
fi | |
namespace=$1 | |
cat <<EOF | kubectl apply -f - |
NewerOlder