请显示https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus.yaml的内容
时间: 2023-03-10 17:07:51 浏览: 369
prometheus.yml
答:以下是https://raw.githubusercontent.com/coreos/prometheus-operator/master/example/prometheus.yaml的内容: apiVersion: monitoring.coreos.com/v1 kind: Prometheus metadata: name: prometheus namespace: default spec: replicas: 2 serviceAccountName: prometheus-operator ruleSelector: matchLabels: role: alert-rules version: v1 serviceMonitorSelector: matchLabels: team: frontend resources: requests: memory: 400Mi storage: 5Gi config: alerting: alertmanagers: - name: alertmanager namespace: default port: web rules: groups: - name: alert.rules rules: - alert: InstanceDown expr: up == 0 for: 5m labels: severity: page annotations: summary: '{{ $labels.instance }} down' description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.' runbook: 'http://runbooks.com/on-call-guide#alerts' - alert: HighRequestLatency expr: 'job:request_latency_seconds:mean5m{job="myjob"} > 0.5' for: 10m labels: severity: warning annotations: summary: 'High request latency' description: 'Request latency is high for job {{ $labels.job }}.' runbook: 'http://runbooks.com/on-call-guide#alerts'
阅读全文