Skip to content

Commit

Permalink
feat :: opentelemetry 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSu1768 committed Jun 15, 2024
1 parent 54bc694 commit a6828ab
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 1 deletion.
5 changes: 5 additions & 0 deletions apps/opentelemetry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v2
name: opentelemetry
version: 1.0.0
appVersion: "1.0.0"
description: Xquare application
20 changes: 20 additions & 0 deletions apps/opentelemetry/templates/instrumentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
name: my-instrumentation
spec:
exporter:
endpoint: http://otel-collector:4317
propagators:
- tracecontext
- baggage
- b3
sampler:
type: parentbased_traceidratio
argument: "0.25"
java:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-java:latest
nodejs:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-nodejs:latest
python:
image: ghcr.io/open-telemetry/opentelemetry-operator/autoinstrumentation-python:latest
22 changes: 22 additions & 0 deletions apps/opentelemetry/templates/opentelemetry-collector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: otel
spec:
config: |
receivers:
otlp:
protocols:
grpc:
http:
processors:
exporters:
logging:
service:
pipelines:
traces:
receivers: [otlp]
processors: []
exporters: [logging]
82 changes: 82 additions & 0 deletions apps/opentelemetry/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Default values for opentelemetry.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
port: 80

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}
2 changes: 1 addition & 1 deletion charts/xquare-application/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
type: application
name: xquare-application
version: 1.0.50
version: 1.0.51
appVersion: "1.0.0"
description: Xquare application
9 changes: 9 additions & 0 deletions charts/xquare-application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ projects:
source:
path: apps/karpenter-nodepool
repoURL: https://github.com/team-xquare/k8s-resource.git
syncPolicy:
automated:
prune: false
selfHeal: true
- name: opentelemetry
namespace: monitoring
source:
path: apps/opentelemetry
repoURL: https://github.com/team-xquare/k8s-resource.git
syncPolicy:
automated:
prune: false
Expand Down

0 comments on commit a6828ab

Please sign in to comment.