Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/expect -f
set timeout 3
#log_user 1
spawn ./test
expect "Enter command - start, stop or quit"
send "start\r"
@ghostflare76
ghostflare76 / Restart
Last active August 22, 2023 09:39
jenkins 서비스 독립 실행
sudo systemctl daemon-reload
sudo systemctl start jenkins
sudo systemctl status jenkins
binary로 다운로드시 daemon으로 구성해서 자동 관리
@ghostflare76
ghostflare76 / 서버시간 1:1동기화 스크립트
Last active August 22, 2023 09:38
서버간 1:1 시간 동기화
sudo date --set "$(ssh 계정@127.0.0.1 'date -u')"`
@ghostflare76
ghostflare76 / pod_check.sh
Last active August 22, 2023 09:27
k8s pod 상태 체크 스크립트
#!/bin/bash
if [ -z "$1" ]; then
echo "Error: labal app name is not specified."
exit 1
fi
if [ -z "$2" ]; then
echo "Error : zone is not specified."
version: '3.8'
services:
prometheus:
image: prom/prometheus:v2.40.7
command:
- --web.enable-remote-write-receiver
- --enable-feature=native-histograms
- --config.file=/etc/prometheus/prometheus.yml
ports:
@ghostflare76
ghostflare76 / clickhouse-plugin-config.yaml
Last active September 28, 2022 03:45
docker-compose.yaml (jaeger,clickhouse,grafana)
address: tcp://clickhouse:9000
@ghostflare76
ghostflare76 / docker-compose.yaml
Last active October 6, 2022 12:30
otel-jaeger-clickhouse.yaml
version: "3"
services:
clickhouse:
image: yandex/clickhouse-server:21
ports:
- "8123:8123"
- "9000:9000"
- "9009:9009"
- "9363:9363"
receivers:
otlp:
protocols:
grpc:
exporters:
logging:
zipkin:
endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
@ghostflare76
ghostflare76 / otel-docker-compose.yaml
Last active August 2, 2022 10:22
otel-docker-compose
version: "3"
services:
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./tempo-s3.yaml:/etc/tempo.yaml
- ./tempo-data:/tmp/tempo
ports: