7,540
edits
Changes
→Prometheus integration
Look for the definition of '' 'Endpoint' '' for routers. This will be added to the prometheus configuration so you can search for all router pods. We will look for an endpoint called '' 'router' '' and have a port called '' '1936-tcp' '' through which we will query the HAproxy metrics via the default metric endpoint (/ metrics).
<presource lang="c++">
# kubectl get Endpoints router -n default -o yaml
apiVersion: v1
ports:
- name: 1936-tcp
</presource>
<br>
<br>
In the Promethues configuration, you need to add a new '' 'target' 'in which to find the' Endpoint 'named' '' router '' and '' with '' 'kubernetes_sd_configs' ''. Port of '1936-tcp' ''.
<presource lang="c++">
- job_name: 'openshift-router'
scheme: https
action: keep
regex: router;1936-tcp
</presource>
Update the '' '' 'ConfigMap' '' of your Prometheus configuration.
Next, open the Promethues target page on the console: http://mon.192.168.42.185.nip.io/targets
[[File: ClipCapIt-190722-233253.PNG]]<br>
If there were more routers in the cluster, they would all appear here as separate endpoints.
<br>
<br>
==Metric varieties==
http://people.redhat.com/jrivera/openshift-docs_preview/openshift-origin/glusterfs-review/architecture/networking/haproxy-router.html <br>