Skip to content

Instantly share code, notes, and snippets.

View jpkrohling's full-sized avatar

Juraci Paixão Kröhling jpkrohling

View GitHub Profile
@jpkrohling
jpkrohling / otelcol.yaml
Created April 24, 2024 12:05
Local logs to GCL
receivers:
filelog/tcp:
include: [ /home/jpkroehling/Downloads/tmp/*.log ]
storage: file_storage/filelogreceivertcp
operators:
- type: regex_parser
regex: '^(?P<timestamp>[^ ]* [^ ]*) (?P<process>[^[]*)[[](?P<process_id>[^]]*)[]][[](?P<level>[^]]*)[]] (?P<message>.*)$'
timestamp:
parse_from: attributes.timestamp
layout: '%Y-%m-%d %H.%M.%S.%L'
@jpkrohling
jpkrohling / resources-current.yaml
Created April 22, 2024 13:20
Configs to use with issue #4274
apiVersion: v1
kind: Namespace
metadata:
name: observability
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
namespace: observability
@jpkrohling
jpkrohling / otelcol.yaml
Created February 29, 2024 14:28
resilient log pipeline
receivers:
otlp:
protocols:
grpc:
processors:
batch:
send_batch_size: 20_000
exporters:
@jpkrohling
jpkrohling / config.collector.yaml
Last active January 12, 2024 15:48
OIDC Auth - Collector (server side)
extensions:
oidc/server:
issuer_url: http://0.0.0.0:8080/realms/opentelemetry
audience: collector
attribute: authorization
receivers:
otlp/secure:
protocols:
http:
@jpkrohling
jpkrohling / config.agent.yaml
Last active January 12, 2024 15:51
OIDC Auth - Agent
extensions:
oauth2client/client:
client_id: agent
client_secret: ESlCjBlChcsvzXu7QYvH9IWvgzK2aKtc
token_url: http://0.0.0.0:8080/realms/opentelemetry/protocol/openid-connect/token
receivers:
otlp:
protocols:
grpc:
@jpkrohling
jpkrohling / receiver-tls.yaml
Created January 12, 2024 14:56
Receiver TLS
receivers:
otlp/secure:
protocols:
http:
tls:
ca_file: ca.pem
cert_file: server.pem
key_file: server-key.pem
grpc:
tls:
@jpkrohling
jpkrohling / receiver-basic-auth.yaml
Created January 12, 2024 14:54
Basic Auth for Collector
extensions:
basicauth/server:
htpasswd:
inline: |
jdoe:correct horse battery staple
receivers:
otlp/secure:
protocols:
http:
@jpkrohling
jpkrohling / collector.yaml
Last active January 12, 2024 14:52
Simple OTLP to OTLP
receivers:
otlp:
protocols:
http:
grpc:
exporters:
otlp:
endpoint: otlp.example.com:4317
@jpkrohling
jpkrohling / otelcol.yaml
Created August 31, 2023 12:35
tail sampling with span metrics
exporters:
logging/traces:
logging/metrics:
verbosity: detailed
receivers:
otlp:
protocols:
grpc:
@jpkrohling
jpkrohling / configmap.yaml
Created January 17, 2023 17:36
target allocator
apiVersion: v1
data:
collector.yaml: |
exporters:
logging: null
receivers:
otlp:
protocols:
grpc: null
http: null