Skip to content

es-exporter log failed to get cluster info connect: connection refused #1030

Open
@ccnh0827

Description

@ccnh0827

log:
time=2025-04-08T02:43:03.759Z level=INFO source=clusterinfo.go:211 msg="triggering initial cluster info call"
time=2025-04-08T02:43:03.759Z level=INFO source=clusterinfo.go:182 msg="providing consumers with updated cluster info label"
time=2025-04-08T02:43:03.759Z level=ERROR source=clusterinfo.go:258 msg="failed to get cluster info" err="Get "http://elastic:***@10.0.157.166:9200/\": dial tcp 10.0.157.166:9200: connect: connection refused"
time=2025-04-08T02:43:03.759Z level=ERROR source=clusterinfo.go:185 msg="failed to retrieve cluster info from ES" err="Get "http://elastic:***@10.0.157.166:9200/\": dial tcp 10.0.157.166:9200: connect: connection refused"
time=2025-04-08T02:43:13.760Z level=INFO source=main.go:246 msg="initial cluster info call timed out"
time=2025-04-08T02:43:13.761Z level=INFO source=tls_config.go:347 msg="Listening on" address=[::]:9114
time=2025-04-08T02:43:13.761Z level=INFO source=tls_config.go:350 msg="TLS is disabled." http2=false address=[::]:9114

config:
apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch-exporter
labels:
app: elasticsearch-exporter
spec:
replicas: 1
selector:
matchLabels:
app: elasticsearch-exporter
template:
metadata:
labels:
app: elasticsearch-exporter
spec:
containers:
- name: elasticsearch-exporter
image: 10.0.157.132:5000/elasticsearch-exporter:v4
ports:
- containerPort: 9114
env:
- name: ES_URL
value: "http://elastic:[email protected]:9200"

elasticsearch version is 8.6.2

in pod can curl elasticsearch like is:

Image

my question is where i did wrong ? thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions