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

[BOP-602] Monitoring page #11

Closed
wants to merge 2 commits into from
Closed

[BOP-602] Monitoring page #11

wants to merge 2 commits into from

Conversation

nsteph
Copy link
Collaborator

@nsteph nsteph commented May 15, 2024

Adds an inital docs page for monitoring describing which monitoring components are installed by MKE4, how they can be configured and how to access the UI components.

@nsteph nsteph requested a review from a team May 24, 2024 17:28
@nsteph nsteph requested a review from ry4nz May 28, 2024 15:55

`$ kubectl --namespace mke port-forward svc/prometheus-k8s 9090`

Then access via http://localhost:9090
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably add localhost to the ignore section

https://github.com/Mirantis/mke-docs/pull/16/files


### Prometheus

`$ kubectl --namespace mke port-forward svc/prometheus-k8s 9090`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command doesn't work.

 kubectl --namespace mke port-forward svc/prometheus-k8s 9090
Error from server (NotFound): services "prometheus-k8s" not found
 k get svc -n mke
NAME                                    TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                                        AGE
authentication-dex                      NodePort    10.99.155.129    <none>        5556:34324/TCP,5554:33443/TCP,5558:33534/TCP   14m
minio                                   NodePort    10.99.60.250     <none>        9000:35371/TCP,9001:33100/TCP                  14m
monitoring-grafana                      ClusterIP   10.107.228.160   <none>        80/TCP                                         14m
monitoring-kube-prometheus-operator     ClusterIP   10.103.47.104    <none>        443/TCP                                        14m
monitoring-kube-prometheus-prometheus   ClusterIP   10.105.195.138   <none>        9090/TCP,8080/TCP                              14m
monitoring-kube-state-metrics           ClusterIP   10.107.112.186   <none>        8080/TCP                                       14m
monitoring-prometheus-node-exporter     ClusterIP   10.101.83.32     <none>        9100/TCP                                       14m
prometheus-operated                     ClusterIP   None             <none>        9090/TCP                                       13m
velero                                  ClusterIP   10.102.130.79    <none>        8085/TCP                                       13m
 kubectl --namespace mke port-forward svc/prometheus-operated 9090
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
Handling connection for 9090

Recommend changing the command to this:

$ kubectl --namespace mke port-forward svc/prometheus-operated 9090


### Grafana

`$ kubectl --namespace mke port-forward svc/grafana 3000:80`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command doesn't work.

 kubectl --namespace mke port-forward svc/grafana 3000:80
Error from server (NotFound): services "grafana" not found
 k get svc -n mke
NAME                                    TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)                                        AGE
authentication-dex                      NodePort    10.99.155.129    <none>        5556:34324/TCP,5554:33443/TCP,5558:33534/TCP   14m
minio                                   NodePort    10.99.60.250     <none>        9000:35371/TCP,9001:33100/TCP                  14m
monitoring-grafana                      ClusterIP   10.107.228.160   <none>        80/TCP                                         14m
monitoring-kube-prometheus-operator     ClusterIP   10.103.47.104    <none>        443/TCP                                        14m
monitoring-kube-prometheus-prometheus   ClusterIP   10.105.195.138   <none>        9090/TCP,8080/TCP                              14m
monitoring-kube-state-metrics           ClusterIP   10.107.112.186   <none>        8080/TCP                                       14m
monitoring-prometheus-node-exporter     ClusterIP   10.101.83.32     <none>        9100/TCP                                       14m
prometheus-operated                     ClusterIP   None             <none>        9090/TCP                                       13m
velero                                  ClusterIP   10.102.130.79    <none>        8085/TCP                                       13m
 kubectl --namespace mke port-forward svc/monitoring-grafana 3000:80
Forwarding from 127.0.0.1:3000 -> 3000
Forwarding from [::1]:3000 -> 3000

Recommend changing the command to this:

$ kubectl --namespace mke port-forward svc/monitoring-grafana 3000:80

@nsteph nsteph closed this Jun 2, 2024
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

Successfully merging this pull request may close these issues.

4 participants