Skip to content

Instantly share code, notes, and snippets.

View edeNFed's full-sized avatar

Eden Federman edeNFed

View GitHub Profile
@edeNFed
edeNFed / config.yaml
Created August 15, 2023 08:56
config.yaml
receivers:
filelog:
include: [ /root/emojivoto/emoji.log, /root/emojivoto/voting.log, /root/emojivoto/web.log ]
operators:
- type: regex_parser
regex: '^(?P<msg>.*)$'
otlp:
protocols:
grpc:
endpoint: localhost:4319
apiVersion: apps/v1
kind: Deployment
metadata:
name: emoji
namespace: emojivoto
labels:
app.kubernetes.io/name: emoji
app.kubernetes.io/part-of: emojivoto
app.kubernetes.io/version: v11
spec:
@edeNFed
edeNFed / values.yaml
Created February 15, 2023 01:50
Odigos v0.1.4 of dockerhub
autoscaler:
image:
repository: keyval/autoscaler
tag: v0.1.4
scheduler:
image:
repository: keyval/scheduler
tag: v0.1.4
CMD rm -rf /tmp \
&& ln -s /proc/1/root/tmp / \
&& java -cp .:${JAVA_HOME}/lib/tools.jar Log4jHotPatch
@edeNFed
edeNFed / profile
Last active September 9, 2020 04:01
BCC Profile with python type bug fixed
#!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
#
# profile Profile CPU usage by sampling stack traces at a timed interval.
# For Linux, uses BCC, BPF, perf_events. Embedded C.
#
# This is an efficient profiler, as stack traces are frequency counted in
# kernel context, rather than passing every stack to user space for frequency
# counting there. Only the unique stacks and counts are passed to user space
# at the end of the profile, greatly reducing the kernel<->user transfer.