metrices, logs and traces from eks-fargate to openobserve collector

0

How to set up pipeline to get logs, matrices and traces from my eks-fargate cluster to openobserve-collector installed in the same eks-cluster.

2 Answers
0

To set up a pipeline for collecting metrics, logs, and traces from your EKS Fargate cluster to an OpenObserve collector installed in the same EKS cluster, you'll need to follow these steps:

  1. Set up logging:

    • Create a dedicated Kubernetes namespace called 'aws-observability'.
    • Create a ConfigMap with Fluent Conf data to ship container logs. The Fargate log router uses Fluent Bit to process and route logs.
  2. Configure metrics collection:

    • Deploy the AWS Distro for OpenTelemetry (ADOT) Collector as a Kubernetes StatefulSet in your cluster.
    • The ADOT Collector will use a Prometheus Receiver to scrape cAdvisor metrics from the Kubernetes API server.
    • Configure the necessary processors in the ADOT Collector pipeline for filtering, renaming, and data aggregation.
  3. Set up tracing:

    • Ensure your applications are instrumented with OpenTelemetry SDKs to generate traces.
    • Configure the ADOT Collector to receive traces from your applications.
  4. Configure the OpenObserve collector:

    • Install the OpenObserve collector in your EKS cluster if you haven't already.
    • Set up the appropriate receivers in the OpenObserve collector configuration to accept metrics, logs, and traces from the ADOT Collector.
  5. IAM permissions:

    • Ensure that your Fargate pods have the necessary IAM permissions to send data to the OpenObserve collector.
    • You may need to create an IAM role for your Fargate pod execution and attach the required policies.
  6. Network configuration:

    • Make sure that your Fargate pods can communicate with the OpenObserve collector within the cluster.
    • You might need to configure appropriate security groups and network policies.
  7. Test and verify:

    • Deploy a sample application to generate logs, metrics, and traces.
    • Check the OpenObserve collector to ensure it's receiving the data from your Fargate pods.

Remember to allocate sufficient resources for the log router and ADOT Collector, as they require memory to function properly. Also, be aware that you may need to adjust the configuration based on your specific OpenObserve collector setup and requirements.
Sources
Start AWS Fargate logging for your cluster - Amazon EKS
Introducing Amazon CloudWatch Container Insights for Amazon EKS Fargate using AWS Distro for OpenTelemetry | Containers
OpenTelemetry Collector Contrib - Amazon CloudWatch

profile picture
answered 2 months ago
AWS
SUPPORT ENGINEER
reviewed 2 months ago
0

For EKS- Fargate logs, use AWS's built-in Fluent Bit log router with Kinesis Firehose as an intermediary to send logs to OpenObserve. Create a Fargate profile, set up the aws-observability namespace with a ConfigMap pointing to Firehose, and ensure proper IAM permissions. For detailed step-by-step instructions, check this guide: https://openobserve.ai/blog/eks-fargate-logging-with-openobserve/

For metrics, leverage CloudWatch as a bridge - Fargate publishes metrics to CloudWatch by default, which can then be forwarded to OpenObserve using the approach detailed in our CloudWatch metrics monitoring guide.: https://openobserve.ai/blog/monitor-aws-rds-with-cloudwatch-metrics/

Hope this helps!

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions