Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Last active December 3, 2022 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erangaeb/ad94504ee72da37ec8e02bf7da4d61d5 to your computer and use it in GitHub Desktop.
Save erangaeb/ad94504ee72da37ec8e02bf7da4d61d5 to your computer and use it in GitHub Desktop.
run service monitory
# run service monitory
kubectl apply -f servicemonitor.yaml
❯❯ kubectl get servicemonitors | grep blackbox-exporter
blackbox-exporter 69m
# access prometheus ui via port-forward
❯❯ kubectl port-forward svc/prom-kube-prometheus-stack-prometheus 9090:9090
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment