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

Scraping mode: agent stuck at startup when etcd endpoint can't be resolved #3333

Open
cristiangreco opened this issue Mar 22, 2023 · 0 comments
Labels
enhancement New feature or request variant/static Related to Grafana Agent Static.

Comments

@cristiangreco
Copy link
Contributor

Agent version: v0.32.1


When running in scraping mode with etcd as store, if the etcd address can't be resolved the agent becomes stuck at startup after emitting just a couple of lines, e.g.

ts=2023-03-22T16:03:39.032615629Z caller=server.go:191 level=info msg="server listening on addresses" http=:80 grpc=127.0.0.1:12346 http_tls_enabled=false grpc_tls_enabled=false
ts=2023-03-22T16:03:39.033073588Z caller=node.go:85 level=info agent=prometheus component=cluster msg="applying config"

It'd be good to have more logging to figure out what is going on.

Example config:

metrics:
    scraping_service:
        enabled: true
        kvstore:
            etcd:
                endpoints:
                    - etcd.default.svc.cluster.local:2379
            store: etcd
        lifecycler:
            ring:
                kvstore:
                    etcd:
                        endpoints:
                            - etcd.default.svc.cluster.local:2379
                    store: etcd
                replication_factor: 1
    wal_directory: /tmp/agent
server:
    log_level: debug
@rfratto rfratto added enhancement New feature or request type/signals labels Mar 22, 2023
@thepalbi thepalbi self-assigned this Jul 27, 2023
@rfratto rfratto added the variant/static Related to Grafana Agent Static. label Apr 9, 2024
@thepalbi thepalbi removed their assignment Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request variant/static Related to Grafana Agent Static.
Projects
No open projects
Development

No branches or pull requests

3 participants