이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 11. Prometheus and Grafana metrics under Red Hat Quay
Red Hat Quay exports a Prometheus- and Grafana-compatible endpoint on each instance to allow for easy monitoring and alerting.
11.1. Exposing the Prometheus endpoint 링크 복사링크가 클립보드에 복사되었습니다!
The Prometheus- and Grafana-compatible endpoint on the Red Hat Quay instance can be found at port 9091
. See Monitoring Quay with Prometheus and Grafana for details on configuring Prometheus and Grafana to monitor Quay repository counts.
11.1.1. Setting up Prometheus to consume metrics 링크 복사링크가 클립보드에 복사되었습니다!
Prometheus needs a way to access all Red Hat Quay instances running in a cluster. In the typical setup, this is done by listing all the Red Hat Quay instances in a single named DNS entry, which is then given to Prometheus.
11.1.2. DNS configuration under Kubernetes 링크 복사링크가 클립보드에 복사되었습니다!
A simple Kubernetes service can be configured to provide the DNS entry for Prometheus. Details on running Prometheus under Kubernetes can be found at Prometheus and Kubernetes and Monitoring Kubernetes with Prometheus.
11.1.3. DNS configuration for a manual cluster 링크 복사링크가 클립보드에 복사되었습니다!
SkyDNS is a simple solution for managing this DNS record when not using Kubernetes. SkyDNS can run on an etcd cluster. Entries for each Red Hat Quay instance in the cluster can be added and removed in the etcd store. SkyDNS will regularly read them from there and update the list of Quay instances in the DNS record accordingly.