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

Twice similar jobs with eck operator #335

Open
domcar opened this issue Jan 31, 2022 · 5 comments
Open

Twice similar jobs with eck operator #335

domcar opened this issue Jan 31, 2022 · 5 comments

Comments

@domcar
Copy link

domcar commented Jan 31, 2022

Hi everyone,

i recently installed a ES Cluster using the eck operator and then install the prometheus exporter to get metrics. Everything works without problems, only I get the same result twice:
For example, if I query prometheus with: es_os_mem_used_bytes
I get :

es_os_mem_used_bytes{cluster="elastic-jaeger", container="elasticsearch", endpoint="https", instance="10.43.11.105:9200", job="elastic-jaeger-es-http", namespace="eck-cluster", node="elastic-jaeger-es-masters-0", nodeid="RCaOVA6vRCOrAwWN7wJaBg", pod="elastic-jaeger-es-masters-0", service="elastic-jaeger-es-http"}

es_os_mem_used_bytes{cluster="elastic-jaeger", container="elasticsearch", endpoint="https", instance="10.43.11.105:9200", job="elastic-jaeger-es-masters", namespace="eck-cluster", node="elastic-jaeger-es-masters-0", nodeid="RCaOVA6vRCOrAwWN7wJaBg", pod="elastic-jaeger-es-masters-0", service="elastic-jaeger-es-masters"

where the only difference is the job name, this makes Grafana a bit messy.
The names seems to be the same as the services exposed by the cluster.

Anyone know what I did wrong or point me to the right direction?

@mindw
Copy link

mindw commented Mar 6, 2022

@domcar The above suggests you have two services for the pod and both are scraped for metrics.

@domcar
Copy link
Author

domcar commented Mar 9, 2022

Yes, I have two services, but they were deployed automatically with the elastic search operator, not sure if I can simply remove one

@mindw
Copy link

mindw commented Mar 9, 2022

just one of the scraping configs needs to be removed. How does the prometheus scraping of the service configured?

@domcar
Copy link
Author

domcar commented Mar 9, 2022

I have a serviceMonitor with a labelsSelector, but unfortunately the two services coming from the eck-operator have the same labels :( So I can change them manually and it's fine, but I can't find how I can modify them using the operator

@domcar
Copy link
Author

domcar commented Mar 9, 2022

Maybe this is more an issue on the operator side and not here, unless you used it too and know how to handle this

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

No branches or pull requests

2 participants