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).
<source lang="c++"pre>
# kubectl get Endpoints router -n default -o yaml
apiVersion: v1
ports:
- name: 1936-tcp
</sourcepre>
<br>