<p>In Kubernetes cluster installed Prometheus using:</p>

<pre><code>helm install stable/prometheus
</code></pre>

<p>It succese:</p>

<pre><code>kubectl get pods
NAME                                                           READY     STATUS    RESTARTS   AGE
winsome-otter-prometheus-alertmanager-3488774855-mk4ph         2/2       Running   0          5m
winsome-otter-prometheus-kube-state-metrics-2907311046-ggnwx   1/1       Running   0          5m
winsome-otter-prometheus-node-exporter-dp9b3                   1/1       Running   0          5m
winsome-otter-prometheus-pushgateway-3103937292-fvw8m          1/1       Running   0          5m
winsome-otter-prometheus-server-2211167584-hjlp6               2/2       Running   0          5m

kubectl get service
NAME                                          TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)    AGE
kubernetes                                    ClusterIP   10.0.0.1     &lt;none&gt;        443/TCP    4d
winsome-otter-prometheus-alertmanager         ClusterIP   10.0.0.215   &lt;none&gt;        80/TCP     8m
winsome-otter-prometheus-kube-state-metrics   ClusterIP   None         &lt;none&gt;        80/TCP     8m
winsome-otter-prometheus-node-exporter        ClusterIP   None         &lt;none&gt;        9100/TCP   8m
winsome-otter-prometheus-pushgateway          ClusterIP   10.0.0.168   &lt;none&gt;        9091/TCP   8m
winsome-otter-prometheus-server               ClusterIP   10.0.0.62    &lt;none&gt;        80/TCP     8m
</code></pre>

<p>How can access it from browser? Use which port? How can know?</p>

<p>You need to forward port 9090 from your localhost to prometheus pod first:</p>

<pre><code>export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 9090
</code></pre>

<p>Now you can access Prometheus via browser on <a href="http://localhost:9090" rel="nofollow noreferrer">http://localhost:9090</a></p>

<p>You can do the same for <code>alertmanager</code> as well:</p>

<pre><code>export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=alertmanager" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 9093
</code></pre>

<p>Now Alertmanager is available via browser on <a href="http://localhost:9093" rel="nofollow noreferrer">http://localhost:9093</a></p>
