Skip to content

Instantly share code, notes, and snippets.

View ramiyengar's full-sized avatar

Ram Iyengar ramiyengar

View GitHub Profile
./hack/generate-values.sh -d 35.192.46.62.xip.io > /home/ram/tempdir/cf-values.yml
vi /home/ram/tempdir/cf-values.yml
git clone https://github.com/cloudfoundry/cf-for-k8s.git
cd cf-for-k8s
git clone https://github.com/cloudfoundry/cf-k8s-prometheus.git
gcloud container clusters get-credentials <cluster-name> --zone <zone-name> --project <project-name>
cf push
curl localhost:2112/metrics
kubectl port-forward -n cf-workloads go-app-with-metrics-devel-cf3200ae74-0 2112
Forwarding from 127.0.0.1:2112 -> 2112
Forwarding from [::1]:2112 -> 2112
Handling connection for 2112
kubectl get pods -n cf-workloads
NAME READY STATUS RESTARTS AGE
go-app-with-metrics-devel-cf3200ae74-0 2/2 Running 0 4h38m
go-app-with-metrics-devel-cf3200ae74-1 2/2 Running 0 4h38m
restart-workloads-for-istio1-7-3-r6cxp 0/1 Completed 0 9h
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "2112"
prometheus.io/path: "/metrics"
git clone https://github.com/cloudfoundry/cf-for-k8s-metric-examples.git