elastic / elastic/beats

Provide entire beats config file in environment variable

Open
#43,355 4 comments 0 reactions 0 assignees View on GitHub
needs_team Stalled
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 2h
Merged PRs (30d)
364

Description

**Describe the enhancement:**

I would like to be able to provide the entire Metricbeat config file in a single environment variable rather than having to manage and mount a separate file into a docker container or build the config file into the docker container and rebuild the container for any configuration changes.

**Describe a specific use case for the enhancement or feature:**

Due to limitations of Elastic Agent Integrations not supporting all Metricbeat configuration options, we are needing to run Metricbeat as a sidecar in AWS ECS Fargate to retrieve metrics from a Prometheus endpoint. Ideally we wouldn't have to build the config file into the docker container or rig up some terraform to upload the config file and we could just pass it inline to an environment variable that Metricbeat can use directly.

As an example, we run Atlantis in ECS and it accepts a config file in json format as an alternative to mounting the file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.