Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet server + Agent option #111

Open
jeremywgleeson opened this issue Dec 23, 2023 · 2 comments
Open

Fleet server + Agent option #111

jeremywgleeson opened this issue Dec 23, 2023 · 2 comments

Comments

@jeremywgleeson
Copy link

Is your feature request related to a problem? Please describe.
No, not related to a problem. I wanted to use Fleet + Elastic Agents to more easily collect metrics + logs and this not currently supported.

Describe the solution you'd like
Provide a Fleet server service definition that users can enable instead of the APM server.

Describe alternatives you've considered
Continue letting users roll their own Fleet configuration.

Additional context
Implementation suggestion:
Docker compose profiles could be a nice way to implement this and would allow all core services to exist in the same compose file.

@GelsonTJunior
Copy link

I'm facing the same problem, I currently use the elastdocker stack, but I'm not able to link fleet-angent with the stack.

if you can help

@derekbking
Copy link

derekbking commented Nov 14, 2024

Spent some time getting this working today. Here's a snippet from my docker-compose:

    fleet-server:
        image: docker.elastic.co/elastic-agent/elastic-agent:${ELK_VERSION}
        hostname: ${FLEETSERVER_HOST}
        restart: always
        ports:
            - "8220:8220"
        environment:
            FLEET_SERVER_ENABLE: true
            FLEET_SERVER_ELASTICSEARCH_HOST: https://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}
            FLEET_SERVER_SERVICE_TOKEN: ${FLEET_SERVER_SERVICE_TOKEN}
            FLEET_SERVER_PORT: ${FLEETSERVER_PORT:-8220}
            FLEET_SERVER_ELASTICSEARCH_CA: /certs/ca.crt
        secrets:
            - source: elastic.ca
              target: /certs/ca.crt

Screenshot of my Fleet server policy. I have SSL setup on my load balancer in AWS. You may need to trust the ca configured by elastdocker docker if it's not signed by an official CA.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants