Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nixm0nk3y/oteltail

Example of streaming S3 logs into a otel logging stack
https://github.com/nixm0nk3y/oteltail

aws golang opentelemetry promtail

Last synced: 12 days ago
JSON representation

Example of streaming S3 logs into a otel logging stack

Awesome Lists containing this project

README

        

# Welcome to oteltail

Example of streaming S3 logs into a otel stack using a lambda based on a modified [promtail](https://github.com/grafana/loki/tree/main/tools/lambda-promtail/lambda-promtail).

At the time of writing opentelemetry go sdk logging support is still [in progress](https://github.com/open-telemetry/opentelemetry-go/pull/4955/files#) so I've borrowed heavily from a [separate PR](https://github.com/dagger/dagger/pull/6835) so provide a functional otel logging SDK.

## Architecture

The CDK stands up a sample ALB access logging system with triggers `oteltail` via eventbridge notifications.

![diagram](_media/oteltail.png ":size=25%")

The `oteltail` should be capable of ingesting all the datasources originally supported by promtail e.g. SNS, SQL , Kinesis etc. Modifications have also been made to allow the ingest of custom datasources i.e. arbitrary json logs , however parsing of these logs is limited and left as a exercise for the ingesting system.

## Useful commands

- `make clean` remove any intermediate state
- `make diff` compare deployed stack with current state
- `make deploy ` deploy this stack to your default AWS account/region