This section contains some guidelines for handling errors that you may encounter when trying to collect metrics from a .NET application in Kubernetes.
- Incorrect token and/or listener URL
- Shipper connectivity failure
- Incorrect listener endpoint
- Kubernetes pod is not running
- .NET monitor Pod is not running
Problem: No metrics received
No metrics are observed in your Logz.io account.
Possible cause - Incorrect token and/or listener URL
Your Logz.io token and/or listener URL may be incorrect.
Suggested remedy
-
Navigate to Manage tokens > Data shipping tokens - Metrics and verify your account’s metrics token and listener URL.
-
Check in the integration code whether the token and listener URL are specified correctly.
Possible cause - Shipper connectivity failure
Your host/server may not be connected to your Logz.io listener.
Suggested remedy
Verify connectivity of your Logz.io listener as follows.
-
For Linux and Mac servers, use
telnet
:telnet listener.logz.io <<PORT>>
-
For Windows servers running Windows 8/Server 2012 and later, use the following command in PowerShell:
Test-NetConnection listener.logz.io -Port <<PORT>>
Replace
<<PORT>>
with the appropriate port nummber. For HTTPS communication use port 8053. For HTTP communication use port 8052.
Possible cause - Incorrect listener endpoint
Your Logz.io listener may not be using the correct endpoint.
Suggested remedy
Change the endpoint of your listener from https://<<LISTENER-HOST>>:<<PORT>>
to http://<<LISTENER-HOST>>:<<PORT>>
or from http://<<LISTENER-HOST>>:<<PORT>>
to https://<<LISTENER-HOST>>:<<PORT>>
Replace <<LISTENER-HOST>>
with the host for your region. For example, listener.logz.io
if your account is hosted on AWS US East, or listener-nl.logz.io
if hosted on Azure West Europe. The required port depends whether HTTP or HTTPS is used: HTTP = 8070, HTTPS = 8071.
Possible cause - Pod is not running
One of your Kubernetes pods may not be running.
Suggested remedy
Check if a required pod is runing by using the following command:
kubectl -n <<NAMESPACE>> get pods
Replace <<NAMESPACE>>
with the name of the namespace for the required pod.
Possible cause - Pod is not running
The dotnet monitor
pod may not be running.
Suggested remedy
Check the logs of the pod that was created for dotnet monitor.
If the logs do not appear, check the pod’s configuration by running:
dotnet monitor config show
If the configuration is correct, contact the Support team.