Replies: 121 comments
-
I faced with an Issue, in which I couldn't open grafana and prometheus applications (link https://grafana.192.168.0.106.nip.io)
In the browser I got same Issue "Unable to connect". I'm using k3s and I configured my master ip address I managed to successfully deploy all pods but I don't know how do I need to connect to the applications
Do you have any suggestions ? |
Beta Was this translation helpful? Give feedback.
-
You need to troubleshoot the access to your K3s cluster ingress that bridges the outside HTTP/HTTPS traffic to the pods. Here is a reference: https://rancher.com/docs/k3s/latest/en/networking/ Have you deployed any application that uses HTTP(like NGINX, Apache) and been able to access it from your computer? It's similar to access Prometheus, Grafana and AlertManager. |
Beta Was this translation helpful? Give feedback.
-
Yes, I created own blog site on JS but I didn't use ingress, I configured externalIP on Service, so... I will try to troubleshoot this issue. |
Beta Was this translation helpful? Give feedback.
-
I solve this issue. Thank for advice, at the end I just installed nginx, configured it and after that I was able to access to prometheus and grafana. |
Beta Was this translation helpful? Give feedback.
-
Love this project! I am unable to access prometheus.*.nip.io . I can access both Grafana and Alert manager. My ingress shows Prometheus, and is setup correctly. The one odd thing is when I look at all my pods in Monitoring ns; I do not have Prometheus-K8s (or something along those lines that I have seen in videos). The pods I have are Prometheus Adapter and Operator. I have Re-ran make vendor and deployed them. Same thing, again no errors anywhere. And also Prometheus-K8s has a service as I just looked. Does this make any sense? TIA |
Beta Was this translation helpful? Give feedback.
-
Is there a way to deploy grafana and prometheus pods to the master node only ? Because sometimes they are deployed to workers |
Beta Was this translation helpful? Give feedback.
-
@exArax You need to set your master nodes as schedulable. Even this way, Kubernetes can deploy the pods to other nodes. If you need to set to a specific set of nodes, you need pod affinity. |
Beta Was this translation helpful? Give feedback.
-
Doesn't make too much sense since the pods are created by the operator. Re-check your cluster and re-deploy the stack. |
Beta Was this translation helpful? Give feedback.
-
I redeployed and all is well, thank you |
Beta Was this translation helpful? Give feedback.
-
In case of grafana, I have to add the node affinity on the grafana-deployment.yaml that is inside the manifests folder, right? |
Beta Was this translation helpful? Give feedback.
-
Hello Carlos, The same issue on Alertmanager/Prometheus. Could you please help me? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Yes, since the jsonnet code doesn't have the pod affinity for this. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi Carlos, root@asus:~/cluster-monitoring# Do you have any suggestions? This is the configuration:
Thank you in advance! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@ToMe25 @jevy the endpoints changed a bit in the past versions, might need adjusts in the k3s-overrides.jsonnet that creates the endpoints for them. |
Beta Was this translation helpful? Give feedback.
-
Hi, Nice work! Is it possible to add the speed-test-exporter (https://docs.miguelndecarvalho.pt/projects/speedtest-exporter) to this deployment? Seems like I need to add the exporter to the prometheus.yml but this file is buried in the prometheus-k8s-0 pod and not exposed. Any guidance if someone has already done it? Thanks |
Beta Was this translation helpful? Give feedback.
-
Love the project - I'm wondering how I go about updating though? I want to get Basically I just want to know if it's safe to bump versions and what I should be looking out for - I haven't had much luck so far. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hey, I am not sure where my problem is. I am unable to connect to any of the ingresses.
but opening the browser on that address fails. All pods seems to be running:
|
Beta Was this translation helpful? Give feedback.
-
Try kubectl get ingress -n monitoring Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress still exist today |
Beta Was this translation helpful? Give feedback.
-
How does one can create a custom scarper? I have my own metrics endpoint and I want Prometheus to scrape it, how can I add that? |
Beta Was this translation helpful? Give feedback.
-
I've created a new PR for just this here: #116 cc: @carlosedp |
Beta Was this translation helpful? Give feedback.
-
It seems that the I came across a newer project which has been kept up to date https://github.com/jsonnet-libs/k8s-libsonnet and gave it a shot porting this project over to using it, but with not much success (I'm not very familiar with jsonnet). By the looks of things it might be a bit of work to do it. Wondering what your thoughts are @carlosedp and if you might have the time to update? |
Beta Was this translation helpful? Give feedback.
-
@carlosedp I have locally updated all dependencies, once to the latest kube-prometheus version, and once to version 0.8, which is the last one that supports Kubernetes 1.20. Should I push this as a Draft PR as a starting point for someone else to continue, or discard it since I couldn't get it to work? |
Beta Was this translation helpful? Give feedback.
-
@carlosedp Any idea what the end points need to look like? It seems they now only respond when accessed over localhost/127.0.0.1 and not over the cluster ip for the manager (even locally). I tried to change the IP to 127.0.0.1 in the endpoint manifest for kube control manager but it won't allow it. Any idea how we can fix this? |
Beta Was this translation helpful? Give feedback.
-
Hi @carlosedp , I want to add in this stack a pod thati s actually an exporter for Kubevirt. The procedure requires to add a deployment file and service file for sure, but how would I configure Prometheus to scrape from kubevirt-prometheus-metrics? Which file should I edit? Update If found that I don't need an exporter. Based on thishttps://kubevirt.io/user-guide/operations/component_monitoring/ I can integrate Kubevirt with Prometheus Operator. The thing is that I am applying to Kubevirt the namespace monitoring and the service account of the Operator (prometheus-operator) and I can't see the metrics that start with kubevirt_vmi. |
Beta Was this translation helpful? Give feedback.
-
@radicalgeek I actually locally tweaked I compared the generated manifests with those for kube-dns, and couldn't find any difference that I could explain this with.
|
Beta Was this translation helpful? Give feedback.
-
Hi again, I am deploying a VM through Kubevirt, which has cirros inside with node exporter. How can I add an endpoint for this exporter to Prometheus? |
Beta Was this translation helpful? Give feedback.
-
Hi all, I've just enabled Discussions on the project so we can have a proper forum for talking about it. Please head to https://github.com/carlosedp/cluster-monitoring/discussions. I've migrated this issue to a discussion but I suggest new topics to be opened instead of following on this one. Thanks everyone! |
Beta Was this translation helpful? Give feedback.
-
Since I don't have too many resources and time to address all questions regarding the deployments, the Issues section is a place to report problems or improvements to the stack.
This issue is a place where you can add a comment in case of a question where me or any community member can answer in a best effort manner.
If you deployed the monitoring stack and some targets are not available or showing no metrics in Grafana, make sure you don't have IPTables rules or use a firewall on your nodes before deploying Kubernetes.
If you don't want to receive further notifications, click "Unsubscribe" in the right bar, right above the participants list.
Beta Was this translation helpful? Give feedback.
All reactions