Skip to content

Instantly share code, notes, and snippets.

View ghostflare76's full-sized avatar

kim hyung suk ghostflare76

View GitHub Profile
@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:
개별 배포 파이프라인에 원격 Jenkins Webhook 수행
#매개변수 JOB 구성
String Parameter
appName
fizz-download-service
String Parameter
FEATURE
fizz.v2.V2Reporter#testFileFeature
%spark
import okhttp3.Call
import okhttp3.MediaType
import okhttp3.MultipartBody
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.Response
import org.apache.spark.ml.{Pipeline, PipelineModel}
import org.apache.spark.ml.classification.{RandomForestClassificationModel, RandomForestClassifier, NaiveBayes}
import org.apache.spark.ml.evaluation.MulticlassClassificationEvaluator
import org.apache.spark.ml.feature.{StringIndexer, HashingTF, VectorIndexer, StopWordsRemover, NGram, Word2Vec, CountVectorizer, IDF}
import org.apache.spark.ml.tuning.{CrossValidator, CrossValidatorModel, ParamGridBuilder}
import org.apache.spark.sql.Encoders
import com.johnsnowlabs.nlp.pretrained.PretrainedPipeline
import com.johnsnowlabs.nlp.SparkNLP
import com.johnsnowlabs.nlp.annotator._
import com.johnsnowlabs.nlp.base._