#support

Monitoring HTTP Endpoints Health in Kubernetes Deployment

TLDR Narasimhamurthi faced issues with monitoring HTTP endpoints health and collector-metrics pod in a Kubernetes deployment. Srikanth provided guidance, and the issue was resolved after correcting the config.

Powered by Struct AI
44
7mo
Solved
Join the chat
Feb 20, 2023 (7 months ago)
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
11:48 AM
Hi,
To monitor health of the http endpoints ,for signoz deployed in k8s ,is it here https://github.com/SigNoz/charts/blob/main/charts/signoz/values.yaml#L2342 configuration to be update in helm chart as blow doc has for docker install method.

https://signoz.io/docs/monitor-http-endpoints/#steps-to-monitor-the-health-of-the-http-endpoints
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:01 PM
Srikanth added https check/* at L1760 and metrics at 1970 and oltp collector is failing.
I think this is for docker instal method. That’s y it is failing.can you give us k8s deployment method.
Image 1 for <span class="s-mention s-user"> <strong>Srikanth</strong></span> added https check/* at L1760 and metrics at 1970 and oltp collector is failing.<br>I think this is for docker instal method. That’s y it is failing.can you give us k8s deployment method.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:03 PM
The configuration is independent of the deployment method. Do you have those ... in the actual config? They are meant to be a placeholder for the rest of the config. You need to add receivers and just then add them to metrics pipelin.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:21 PM
Srikanth yes.I have added them properly. Please ignore … . I have added metrics https://github.com/SigNoz/charts/blob/225b9aaf4b38e8d708ce33df37aa9e563c81bb78/charts/signoz/values.yaml#L1978 .the Otel metric collector is failing
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:21 PM
What is the error message when it fails?
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:38 PM
Srikanth it is failing with crashloopbackoff due to otel-collector-metrics-Config.yaml
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:41 PM
What is the error? kubectl describe pod ... run this command and share the output for the pod
04:42
Srikanth
04:42 PM
Hope you didn’t copy the receivers line as is from the example because there is no otlp receiver here, the required change would be just adding the two httpcheck receivers.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:48 PM
I have oltp at the receiver line.
04:49
Narasimhamurthi
04:49 PM
Image 1 for
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:51 PM
Please share the full-text output. I can’t see the image clearly.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:53 PM
I just removed the otlp and it is up and running now
04:53
Narasimhamurthi
04:53 PM
How long it will take to see http endpoints health
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:54 PM
As soon as your collection interval elapses. If it is healthy 1 otherwise 0 for the metric value.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:57 PM
And the endpoint is publicly accessible.but I didn’t see any logs in the screen
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
04:57 PM
> but I didn’t see any logs in the screen
Which screen and what logs are you referring to?
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
04:58 PM
Monitor the 2 endpoint i have added i cont see here
04:59
Narasimhamurthi
04:59 PM
Image 1 for
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:00 PM
That is traces page. You will not see the metrics here. Create a dashboard and search for the metric httpcheck_status you will see them.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:08 PM
Httpcheck_status is not listing.
Image 1 for Httpcheck_status is not listing.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:10 PM
What do the collector-metrics pod logs show?
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:11 PM
I can see the pod logs.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:12 PM
Excellent, do you see any error logs?
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:14 PM
I can see all other info ,except our endpoint info in the logs.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:16 PM
Search for signoz_ in the metric name and if something shows up matching the text then please share your full config collector-metrics pod
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:19 PM
No metric starting with signoz.
Image 1 for No metric starting with signoz.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:20 PM
You most probably have an issue with the config. Please share the full config for the collector-metric pod.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:25 PM
Just sent you the Config file in one to one
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:26 PM
You have not added the httpcheck receivers to the pipeline.
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:27 PM
Instead metrics,do I need to addd metrics/httpcheck
05:29
Narasimhamurthi
05:29 PM
I just added it now the collector metrics pod is crashloopbackoff
Image 1 for I just added it now the collector metrics pod is crashloopbackoff
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:30 PM
What does the pod describe output show?
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:33 PM
Sent in 1:1
05:38
Narasimhamurthi
05:38 PM
I don’t understand what is happening behind.am I missing something.
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:38 PM
Check the receiver names correctly.
05:40
Srikanth
05:40 PM
There was an issue with the config. It exited with status code 1. You would see the error message in the logs. Please make sure the receivers names are same
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:40 PM
Checked the receivers name .
Image 1 for Checked the receivers name .Image 2 for Checked the receivers name .
05:40
Narasimhamurthi
05:40 PM
Both same same
05:41
Narasimhamurthi
05:41 PM
Oh 🤯
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
05:41 PM
/dev-agent vs /dev-agents
Narasimhamurthi
Photo of md5-3482ad9fa925b7ced08246b21d5e19d3
Narasimhamurthi
05:48 PM
Perfect catch.it is working now.
05:49
Narasimhamurthi
05:49 PM
Image 1 for
05:58
Narasimhamurthi
05:58 PM
Thanks Srikanth for your prompt response