This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description= Vendor-agnostic OpenTelemetry Collector distribution with programmable pipelines | |
Documentation=https://grafana.com/docs/alloy | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Restart=always | |
User=root | |
Environment=HOSTNAME=%H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/haproxy.service | |
[Unit] | |
Description=HAProxy Load Balancer | |
After=network.target | |
[Service] | |
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/var/run/haproxy.pid" | |
ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q | |
ExecStart=/usr/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: python | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: httpbin | |
... | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: tools | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import boto3 | |
import datetime | |
import logging | |
import json | |
from kafka import KafkaProducer | |
logging.basicConfig(level=logging.DEBUG) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
############ GLOBAL ############ | |
# | |
include: | |
- local: "/templates/helm-ci-deploy-simple.template.yml" | |
.global_rules_reference: | |
- if: $CI_PIPELINE_SOURCE == "merge_request_event" | |
changes: | |
- $HELM_VALUES/$RELEASE_NAME.values.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from opentelemetry import trace | |
from opentelemetry.exporter.jaeger.thrift import JaegerExporter | |
from opentelemetry.sdk.resources import SERVICE_NAME, Resource | |
from opentelemetry.sdk.trace import TracerProvider | |
from opentelemetry.sdk.trace.export import BatchSpanProcessor | |
trace.set_tracer_provider( | |
TracerProvider( | |
resource=Resource.create({SERVICE_NAME: "python-test-connection"}) |