Commit 9a6debbc authored by jayunit100's avatar jayunit100

Prometheus service json

Update to use a public IP so that services have a sane web-root
parent 39011ae2
...@@ -31,11 +31,17 @@ Looks open enough :). ...@@ -31,11 +31,17 @@ Looks open enough :).
You can launch prometheus easily, by simply running. You can launch prometheus easily, by simply running.
`kubectl create -f cluster/addons/prometheus/prometheus-all.json` `kubectl create -f contrib/prometheus/prometheus-all.json`
This will bind to port 9090 locally. You can see the prometheus database at that URL. Then (edit the publicIP field in prometheus-service to be a public ip on one of your kubelets),
# How it works and run
`kubectl create -f contrib/prometheus/prometheus-service.json`
Now, you can access the service `wget 10.0.1.89:9090`, and build graphs.
## How it works
This is a v1beta3 based, containerized prometheus ReplicationController, which scrapes endpoints which are readable on the KUBERNETES_RO service (the internal kubernetes service running in the default namespace, which is visible to all pods). This is a v1beta3 based, containerized prometheus ReplicationController, which scrapes endpoints which are readable on the KUBERNETES_RO service (the internal kubernetes service running in the default namespace, which is visible to all pods).
......
{
"kind":"Service",
"apiVersion":"v1beta3",
"metadata":{
"name":"prometheus",
"labels":{
"name":"prometheus"
}
},
"spec":{
"publicIPs":["10.0.1.89"],
"ports": [
{
"port":9090,
"targetPort":9090,
"protocol":"TCP"
}],
"selector":{
"name":"kube-prometheus"
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment