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
<source> | |
@type http | |
@id input1 | |
@label @mainstream | |
port 9880 | |
bind 0.0.0.0 | |
body_size_limit 32m | |
keepalive_timeout 10s | |
</source> |
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
import logging | |
from logging.handlers import QueueHandler, QueueListener | |
import queue | |
from pythonjsonlogger import jsonlogger | |
from fluent_http import FluentHttpHandler | |
def main(): | |
logger = logging.getLogger('sample') |
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
import logging | |
from pythonjsonlogger import jsonlogger | |
from fluent_http import FluentHttpHandler | |
def main(): | |
logger = logging.getLogger('sample') | |
fluent_handler = FluentHttpHandler(tag="python.info") |
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
import logging | |
from fluent_http import FluentHttpHandler | |
def main(): | |
logger = logging.getLogger('sample') | |
fluent_handler = FluentHttpHandler(tag="python.info") | |
logger.addHandler(fluent_handler) | |
logger.setLevel(logging.INFO) |
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
<source> | |
@type forward | |
@id input1 | |
@label @mainstream | |
port 24224 | |
</source> | |
<source> | |
@type http | |
@id input2 | |
@label @mainstream |
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 fluent/fluentd:v1.15-debian-1 | |
USER root | |
RUN gem uninstall -I elasticsearch | |
RUN gem install elasticsearch -v 7.17.0 | |
RUN gem install fluent-plugin-elasticsearch --no-document --version 5.2.0 | |
USER fluent |
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: fluentd | |
namespace: default | |
labels: | |
app: fluentd | |
spec: | |
selector: | |
matchLabels: |
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: kibana | |
namespace: default | |
labels: | |
app: kibana | |
spec: | |
selector: | |
matchLabels: |
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: PersistentVolumeClaim | |
metadata: | |
name: elastic-pvc | |
namespace: default | |
labels: | |
app: elastic-pvc | |
spec: | |
storageClassName: nfs-client | |
accessModes: |
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
import logging | |
from functools import wraps | |
from fastapi import FastAPI, Request | |
import time | |
import random | |
from opentelemetry.exporter.jaeger.thrift import JaegerExporter | |
from opentelemetry.sdk.trace.export import BatchSpanProcessor | |
from opentelemetry import trace | |
from opentelemetry.sdk.trace import TracerProvider |