Skip to content

Commit

Permalink
Merge pull request #89 from prashant-shahi/release/signoz-0.4.1
Browse files Browse the repository at this point in the history
Release/signoz 0.4.1
  • Loading branch information
prashant-shahi authored Oct 7, 2022
2 parents a478d90 + 2f9ee66 commit db83e52
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 11 deletions.
8 changes: 4 additions & 4 deletions charts/signoz/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: clickhouse
repository: https://signoz.github.io/charts
version: 23.5.3
version: 23.5.4
- name: k8s-infra
repository: https://signoz.github.io/charts
version: 0.1.1
digest: sha256:93b7e038ab092cef0258fb896ed099851332693b872ebba846d6026d571ca392
generated: "2022-09-15T21:42:03.603868236+05:30"
version: 0.1.4
digest: sha256:bd469632c886fca7c49128e7b45ed57682f73e74997182c4c441070ed5b80767
generated: "2022-10-07T09:46:00.838177249+05:45"
6 changes: 3 additions & 3 deletions charts/signoz/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: signoz
version: 0.4.0
version: 0.4.1
appVersion: "0.11.1"
description: SigNoz Observability Platform Helm Chart
type: application
Expand All @@ -21,11 +21,11 @@ dependencies:
- name: clickhouse
repository: "https://signoz.github.io/charts"
condition: clickhouse.enabled
version: 23.5.3
version: 23.5.4
- name: k8s-infra
repository: "https://signoz.github.io/charts"
condition: k8s-infra.enabled
version: 0.1.1
version: 0.1.4
maintainers:
- name: SigNoz
email: [email protected]
Expand Down
Binary file removed charts/signoz/charts/clickhouse-23.5.3.tgz
Binary file not shown.
Binary file added charts/signoz/charts/clickhouse-23.5.4.tgz
Binary file not shown.
Binary file removed charts/signoz/charts/k8s-infra-0.1.1.tgz
Binary file not shown.
Binary file added charts/signoz/charts/k8s-infra-0.1.4.tgz
Binary file not shown.
215 changes: 211 additions & 4 deletions charts/signoz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ otelCollector:
# -- Configure liveness and readiness probes.
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
livenessProbe:
enabled: false
enabled: true
port: 13133
path: /
initialDelaySeconds: 5
Expand All @@ -1033,7 +1033,7 @@ otelCollector:
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: false
enabled: true
port: 13133
path: /
initialDelaySeconds: 5
Expand Down Expand Up @@ -1398,7 +1398,7 @@ otelCollectorMetrics:
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
##
livenessProbe:
enabled: false
enabled: true
port: 13133
path: /
initialDelaySeconds: 5
Expand All @@ -1407,7 +1407,7 @@ otelCollectorMetrics:
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: false
enabled: true
port: 13133
path: /
initialDelaySeconds: 5
Expand Down Expand Up @@ -1642,6 +1642,162 @@ k8s-infra:
# cpu: 1000m
# memory: 1Gi

# -- Configurations for OtelAgent
# @default -- See `values.yaml` for defaults
config:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
load: {}
memory: {}
disk: {}
filesystem: {}
network: {}
filelog/k8s:
include:
# Include logs from all container
- /var/log/pods/*/*/*.log
exclude:
# Exclude logs from all containers from kube-system namespace
- /var/log/pods/kube-system_*/*/*.log
# Exclude logs from all hotrod containers
- /var/log/pods/*_hotrod-*/*/*.log
- /var/log/pods/*_locust-*_*/*/*.log
start_at: beginning
include_file_path: true
include_file_name: false
operators:
# Find out which format is used by kubernetes
- type: router
id: get-format
routes:
- output: parser-docker
expr: 'body matches "^\\{"'
- output: parser-crio
expr: 'body matches "^[^ Z]+ "'
- output: parser-containerd
expr: 'body matches "^[^ Z]+Z"'
# Parse CRI-O format
- type: regex_parser
id: parser-crio
regex: '^(?P<time>[^ Z]+) (?P<stream>stdout|stderr) (?P<logtag>[^ ]*) ?(?P<log>.*)$'
output: extract_metadata_from_filepath
timestamp:
parse_from: attributes.time
layout_type: gotime
layout: '2006-01-02T15:04:05.000000000-07:00'
# Parse CRI-Containerd format
- type: regex_parser
id: parser-containerd
regex: '^(?P<time>[^ ^Z]+Z) (?P<stream>stdout|stderr) (?P<logtag>[^ ]*) ?(?P<log>.*)$'
output: extract_metadata_from_filepath
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
# Parse Docker format
- type: json_parser
id: parser-docker
output: extract_metadata_from_filepath
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
# Extract metadata from file path
- type: regex_parser
id: extract_metadata_from_filepath
regex: '^.*\/(?P<namespace>[^_]+)_(?P<pod_name>[^_]+)_(?P<uid>[a-f0-9\-]+)\/(?P<container_name>[^\._]+)\/(?P<restart_count>\d+)\.log$'
parse_from: attributes["log.file.path"]
# Rename attributes
- type: move
from: attributes.stream
to: attributes["log.iostream"]
- type: move
from: attributes.container_name
to: attributes["k8s.container.name"]
- type: move
from: attributes.namespace
to: attributes["k8s.namespace.name"]
- type: move
from: attributes.pod_name
to: attributes["k8s.pod.name"]
- type: move
from: attributes.restart_count
to: attributes["k8s.container.restart_count"]
- type: move
from: attributes.uid
to: attributes["k8s.pod.uid"]
- type: move
from: attributes.log
to: body
prometheus:
config:
global:
scrape_interval: 60s
scrape_configs:
- job_name: otel-agent
static_configs:
- targets:
- ${MY_POD_IP}:8888
processors:
batch:
send_batch_size: 5000
timeout: 5s
# Resource detection processor config.
# ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md
resourcedetection:
detectors: [env, system] # Include ec2/eks for AWS, gce/gke for GCP and azure/aks for Azure
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels
timeout: 2s
system:
hostname_sources: [os] # Alternatively, use [dns,os] for setting FQDN as host.name and os as fallback
# Memory Limiter processor config.
# If set to null, will be overridden with values based on k8s resource limits.
# ref: https://github.com/open-telemetry/opentelemetry-collector/tree/main/processor/memorylimiterprocessor
memory_limiter: null
extensions:
health_check:
endpoint: 0.0.0.0:13133
zpages:
endpoint: localhost:55679
pprof:
endpoint: localhost:1777
exporters:
otlp:
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT}
tls:
insecure: ${OTEL_EXPORTER_OTLP_INSECURE}
headers:
"signoz-access-token": "Bearer ${SIGNOZ_API_KEY}"
service:
telemetry:
metrics:
address: 0.0.0.0:8888
extensions: [health_check, zpages]
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
metrics/generic:
receivers: [hostmetrics, prometheus]
processors: [resourcedetection, batch]
exporters: [otlp]
logs:
receivers: [filelog/k8s, otlp]
processors: [batch]
exporters: [otlp]

# Default values for OtelDeployment
otelDeployment:
name: "otel-deployment"
Expand Down Expand Up @@ -1681,3 +1837,54 @@ k8s-infra:
# limits:
# cpu: 1000m
# memory: 1Gi

# -- Configurations for OtelDeployment
# @default -- See `values.yaml` for defaults
config:
receivers:
# k8s cluster metrics
k8s_cluster:
collection_interval: 30s
node_conditions_to_report: [Ready, MemoryPressure]
allocatable_types_to_report: [cpu, memory]
# prometheus scrape config
prometheus:
config:
scrape_configs:
# deployment internal metrics
- job_name: "otel-deployment"
scrape_interval: 60s
static_configs:
- targets:
- ${MY_POD_IP}:8888
processors:
batch:
send_batch_size: 5000
timeout: 5s
# Memory Limiter processor.
# If set to null, will be overridden with values based on k8s resource limits.
memory_limiter: null
extensions:
health_check:
endpoint: 0.0.0.0:13133
zpages:
endpoint: localhost:55679
pprof:
endpoint: localhost:1777
exporters:
otlp:
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT}
tls:
insecure: ${OTEL_EXPORTER_OTLP_INSECURE}
headers:
"signoz-access-token": "Bearer ${SIGNOZ_API_KEY}"
service:
telemetry:
metrics:
address: 0.0.0.0:8888
extensions: [health_check, zpages, pprof]
pipelines:
metrics:
receivers: [k8s_cluster, prometheus]
processors: [batch]
exporters: [otlp]

0 comments on commit db83e52

Please sign in to comment.