GithubHelp home page GithubHelp logo

Comments (7)

dmcnaught avatar dmcnaught commented on July 17, 2024 2

Yes, Kubernetes is listed now as a target and in alerts πŸ˜„ , so I'll update the docs too.

from kube-prometheus.

dmcnaught avatar dmcnaught commented on July 17, 2024

Same with KOPS 1.5.0-beta2, Kubernetes 1.4.8 (w prometheus-operator:v0.1.1)

from kube-prometheus.

dmcnaught avatar dmcnaught commented on July 17, 2024

Running ku -n kube-system create -f manifests/k8s/self-hosted/ updates to:

Alerts
K8SNodeDown (1 active)
K8SKubeletDown (1 active)
K8SKubeletNodeExporterDown (1 active)
K8SApiserverDown (1 active)
Targets
kube-controller-manager
Endpoint	State	Labels	Last Scrape	Error
http://10.101.91.106:10252/metrics
DOWN	instance="10.101.91.106:10252"	11.231s ago	context deadline exceeded
kube-dns
Endpoint	State	Labels	Last Scrape	Error
http://100.96.1.2:10054/metrics
UP	instance="100.96.1.2:10054"	4.934s ago	
http://100.96.1.2:10055/metrics
UP	instance="100.96.1.2:10055"	3.823s ago	
http://100.96.1.4:10054/metrics
UP	instance="100.96.1.4:10054"	1.97s ago	
http://100.96.1.4:10055/metrics
UP	instance="100.96.1.4:10055"	12.165s ago	
kube-scheduler
Endpoint	State	Labels	Last Scrape	Error
http://10.101.91.106:10251/metrics
DOWN	instance="10.101.91.106:10251"	24.405s ago	context deadline exceeded
kube-state-metrics
Endpoint	State	Labels	Last Scrape	Error
http://100.96.1.66:8080/metrics
UP	instance="100.96.1.66:8080"	13.793s ago	
kubelets
Endpoint	State	Labels	Last Scrape	Error
https://10.101.90.245:10250/metrics
UP	instance="ip-10-101-90-245.ec2.internal"	13.104s ago	
https://10.101.91.106:10250/metrics
DOWN	instance="ip-10-101-91-106.ec2.internal"	13.514s ago	context deadline exceeded
kubernetes
Endpoint	State	Labels	Last Scrape	Error
https://10.101.91.106:443/metrics
DOWN	instance="10.101.91.106:443"	12.117s ago	Get https://10.101.91.106:443/metrics: x509: certificate is valid for 100.64.0.1, not 10.101.91.106
node-exporter
Endpoint	State	Labels	Last Scrape	Error
http://10.101.90.245:9100/metrics
UP	instance="10.101.90.245:9100"	1.398s ago	
http://10.101.91.106:9100/metrics
DOWN	instance="10.101.91.106:9100"	14.259s ago	context deadline exceeded
prometheus
Endpoint	State	Labels	Last Scrape	Error
http://100.96.1.68:9090/metrics
UP	instance="100.96.1.68:9090"	14.541s ago	

from kube-prometheus.

dmcnaught avatar dmcnaught commented on July 17, 2024

Opening up 10250 and 9100 in the master SG to the nodes SG fixed the node exporter and kubelets communications errors. Then just have two errors:

K8SSchedulerDown (1 active)
K8SControllerManagerDown (1 active)

Running kubectl -n kube-system create -f manifests/k8s/self-hosted/
opening up ports again to master: 10252, 10251 leaves only one target error:

kubernetes
Endpoint	State	Labels	Last Scrape	Error
https://10.52.71.194:443/metrics
DOWN	instance="10.52.71.194:443"	3.711s ago	Get https://10.52.71.194:443/metrics: x509: certificate is valid for 100.64.0.1, not 10.52.71.194

and one alert:

K8SApiserverDown (1 active)

Related comment: #23 (comment)

from kube-prometheus.

brancz avatar brancz commented on July 17, 2024

Yeah that's correct, best would be to inspect the cert as described in #23 (comment) and set the serverName to kubernetes. In #33 I chose to ignore cert issues for now, however want to apply exactly what I mentioned to that, but wanted to get the general config generation in place first with #33. Could you maybe try out #33, and see if it works?

from kube-prometheus.

dmcnaught avatar dmcnaught commented on July 17, 2024

#33 tried out and feedback sent in Slack πŸ˜„

from kube-prometheus.

brancz avatar brancz commented on July 17, 2024

@dmcnaught can this be closed as the #49 is merged?

from kube-prometheus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.