|
| 1 | +#! parse-kind: ClusterServiceVersion |
| 2 | +apiVersion: operators.coreos.com/v1alpha1 |
| 3 | +kind: ClusterServiceVersion |
| 4 | +metadata: |
| 5 | + name: prometheusoperator.0.15.0 |
| 6 | + namespace: placeholder |
| 7 | + annotations: |
| 8 | + tectonic-visibility: ocs |
| 9 | + alm-examples: '[{"apiVersion":"monitoring.coreos.com/v1","kind":"Prometheus","metadata":{"name":"example","labels":{"prometheus":"k8s"}},"spec":{"replicas":2,"version":"v1.7.0","serviceAccountName":"prometheus-k8s","serviceMonitorSelector":{"matchExpressions":[{"key":"k8s-app","operator":"Exists"}]},"ruleSelector":{"matchLabels":{"role":"prometheus-rulefiles","prometheus":"k8s"}},"resources":{"requests":{"memory":"400Mi"}},"alerting":{"alertmanagers":[{"namespace":"monitoring","name":"alertmanager-main","port":"web"}]}}},{"apiVersion":"monitoring.coreos.com/v1","kind":"ServiceMonitor","metadata":{"name":"example","labels":{"k8s-app":"prometheus"}},"spec":{"selector":{"matchLabels":{"k8s-app":"prometheus","prometheus":"k8s"}},"namespaceSelector":{"matchNames":["monitoring"]},"endpoints":[{"port":"web","interval":"30s"}]}},{"apiVersion":"monitoring.coreos.com/v1","kind":"Alertmanager","metadata":{"name":"alertmanager-main"},"spec":{"replicas":3}}]' |
| 10 | +spec: |
| 11 | + replaces: prometheusoperator.0.14.0 |
| 12 | + displayName: Prometheus |
| 13 | + description: | |
| 14 | + An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach. |
| 15 | +
|
| 16 | + _The Prometheus Open Cloud Service is Public Alpha. The goal before Beta is for additional user testing and minor bug fixes._ |
| 17 | +
|
| 18 | + ### Monitoring applications |
| 19 | +
|
| 20 | + Prometheus scrapes your application metrics based on targets maintained in a ServiceMonitor object. When alerts need to be sent, they are processsed by an AlertManager. |
| 21 | +
|
| 22 | + [Read the complete guide to monitoring applications with the Prometheus Open Cloud Service](https://coreos.com/tectonic/docs/latest/alm/prometheus-ocs.html) |
| 23 | +
|
| 24 | + ### Supported Features |
| 25 | +
|
| 26 | +
|
| 27 | + **High availability** |
| 28 | +
|
| 29 | +
|
| 30 | + Multiple instances are run across failure zones and data is replicated. This keeps your monitoring available during an outage, when you need it most. |
| 31 | +
|
| 32 | +
|
| 33 | + **Updates via automated operations** |
| 34 | +
|
| 35 | +
|
| 36 | + New Prometheus versions are deployed using a rolling update with no downtime, making it easy to stay up to date. |
| 37 | +
|
| 38 | +
|
| 39 | + **Handles the dynamic nature of containers** |
| 40 | +
|
| 41 | +
|
| 42 | + Alerting rules are attached to groups of containers instead of individual instances, which is ideal for the highly dynamic nature of container deployment. |
| 43 | +
|
| 44 | + keywords: ['prometheus', 'monitoring', 'tsdb', 'alerting'] |
| 45 | + |
| 46 | + maintainers: |
| 47 | + - name: CoreOS, Inc |
| 48 | + email: support@coreos.com |
| 49 | + |
| 50 | + provider: |
| 51 | + name: CoreOS, Inc |
| 52 | + |
| 53 | + links: |
| 54 | + - name: Prometheus |
| 55 | + url: https://www.prometheus.io/ |
| 56 | + - name: Documentation |
| 57 | + url: https://coreos.com/operators/prometheus/docs/latest/ |
| 58 | + - name: Prometheus Operator Source Code |
| 59 | + url: https://github.com/coreos/prometheus-operator |
| 60 | + |
| 61 | + labels: |
| 62 | + alm-status-descriptors: prometheusoperator.0.15.0 |
| 63 | + alm-owner-prometheus: prometheusoperator |
| 64 | + |
| 65 | + selector: |
| 66 | + matchLabels: |
| 67 | + alm-owner-prometheus: prometheusoperator |
| 68 | + |
| 69 | + icon: |
| 70 | + - base64data: PHN2ZyB3aWR0aD0iMjQ5MCIgaGVpZ2h0PSIyNTAwIiB2aWV3Qm94PSIwIDAgMjU2IDI1NyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZD0iTTEyOC4wMDEuNjY3QzU3LjMxMS42NjcgMCA1Ny45NzEgMCAxMjguNjY0YzAg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IDE0LjI4OS0zLjAxNiAxNC4yODktMy4wMTZsMjcuNDUtNS4zNTVjLjAwMi0uMDAyLTMuOTg3IDE2LjQwMS0xOS4zMTQgMzIuMTk3eiIgZmlsbD0iI0RBNEUzMSIvPjwvc3ZnPg== |
| 71 | + mediatype: image/svg+xml |
| 72 | + |
| 73 | + install: |
| 74 | + strategy: deployment |
| 75 | + spec: |
| 76 | + permissions: |
| 77 | + - serviceAccountName: prometheus-k8s |
| 78 | + rules: |
| 79 | + - apiGroups: [""] |
| 80 | + resources: |
| 81 | + - nodes |
| 82 | + - services |
| 83 | + - endpoints |
| 84 | + - pods |
| 85 | + verbs: ["get", "list", "watch"] |
| 86 | + - apiGroups: [""] |
| 87 | + resources: |
| 88 | + - configmaps |
| 89 | + verbs: ["get"] |
| 90 | + - serviceAccountName: prometheus-operator-0-14-0 |
| 91 | + rules: |
| 92 | + - apiGroups: |
| 93 | + - apiextensions.k8s.io |
| 94 | + resources: |
| 95 | + - customresourcedefinitions |
| 96 | + verbs: ["get", "list"] |
| 97 | + - apiGroups: |
| 98 | + - monitoring.coreos.com |
| 99 | + resources: |
| 100 | + - alertmanagers |
| 101 | + - prometheuses |
| 102 | + - servicemonitors |
| 103 | + verbs: |
| 104 | + - "*" |
| 105 | + - apiGroups: |
| 106 | + - apps |
| 107 | + resources: |
| 108 | + - statefulsets |
| 109 | + verbs: ["*"] |
| 110 | + - apiGroups: [""] |
| 111 | + resources: |
| 112 | + - configmaps |
| 113 | + - secrets |
| 114 | + verbs: ["*"] |
| 115 | + - apiGroups: [""] |
| 116 | + resources: |
| 117 | + - pods |
| 118 | + verbs: ["list", "delete"] |
| 119 | + - apiGroups: [""] |
| 120 | + resources: |
| 121 | + - services |
| 122 | + - endpoints |
| 123 | + verbs: ["get", "create", "update"] |
| 124 | + - apiGroups: [""] |
| 125 | + resources: |
| 126 | + - nodes |
| 127 | + verbs: ["list", "watch"] |
| 128 | + - apiGroups: [""] |
| 129 | + resources: |
| 130 | + - namespaces |
| 131 | + verbs: ['list'] |
| 132 | + deployments: |
| 133 | + - name: prometheus-operator |
| 134 | + spec: |
| 135 | + replicas: 1 |
| 136 | + selector: |
| 137 | + matchLabels: |
| 138 | + k8s-app: prometheus-operator |
| 139 | + template: |
| 140 | + metadata: |
| 141 | + labels: |
| 142 | + k8s-app: prometheus-operator |
| 143 | + spec: |
| 144 | + serviceAccount: prometheus-operator-0-14-0 |
| 145 | + containers: |
| 146 | + - name: prometheus-operator |
| 147 | + image: quay.io/coreos/prometheus-operator@sha256:0e92dd9b5789c4b13d53e1319d0a6375bcca4caaf0d698af61198061222a576d |
| 148 | + command: |
| 149 | + - sh |
| 150 | + - -c |
| 151 | + - > |
| 152 | + /bin/operator --namespace=$K8S_NAMESPACE --crd-apigroup monitoring.coreos.com |
| 153 | + --labels alm-status-descriptors=prometheusoperator.0.15.0,alm-owner-prometheus=prometheusoperator |
| 154 | + --kubelet-service=kube-system/kubelet |
| 155 | + --config-reloader-image=quay.io/coreos/configmap-reload:v0.0.1 |
| 156 | + env: |
| 157 | + - name: K8S_NAMESPACE |
| 158 | + valueFrom: |
| 159 | + fieldRef: |
| 160 | + fieldPath: metadata.namespace |
| 161 | + ports: |
| 162 | + - containerPort: 8080 |
| 163 | + name: http |
| 164 | + resources: |
| 165 | + limits: |
| 166 | + cpu: 200m |
| 167 | + memory: 100Mi |
| 168 | + requests: |
| 169 | + cpu: 100m |
| 170 | + memory: 50Mi |
| 171 | + maturity: alpha |
| 172 | + version: 0.15.0 |
| 173 | + customresourcedefinitions: |
| 174 | + owned: |
| 175 | + - name: prometheuses.monitoring.coreos.com |
| 176 | + version: v1 |
| 177 | + kind: Prometheus |
| 178 | + displayName: Prometheus |
| 179 | + description: A running Prometheus instance |
| 180 | + resources: |
| 181 | + - kind: StatefulSet |
| 182 | + version: v1beta2 |
| 183 | + - kind: Pod |
| 184 | + version: v1 |
| 185 | + specDescriptors: |
| 186 | + - description: Desired number of Pods for the cluster |
| 187 | + displayName: Size |
| 188 | + path: replicas |
| 189 | + x-descriptors: |
| 190 | + - 'urn:alm:descriptor:com.tectonic.ui:podCount' |
| 191 | + - description: A selector for the ConfigMaps from which to load rule files |
| 192 | + displayName: Rule Config Map Selector |
| 193 | + path: ruleSelector |
| 194 | + x-descriptors: |
| 195 | + - 'urn:alm:descriptor:com.tectonic.ui:selector:core:v1:ConfigMap' |
| 196 | + - description: ServiceMonitors to be selected for target discovery |
| 197 | + displayName: Service Monitor Selector |
| 198 | + path: serviceMonitorSelector |
| 199 | + x-descriptors: |
| 200 | + - 'urn:alm:descriptor:com.tectonic.ui:selector:monitoring.coreos.com:v1:ServiceMonitor' |
| 201 | + - description: The ServiceAccount to use to run the Prometheus pods |
| 202 | + displayName: Service Account |
| 203 | + path: serviceAccountName |
| 204 | + x-descriptors: |
| 205 | + - 'urn:alm:descriptor:io.kubernetes:ServiceAccount' |
| 206 | + - description: Limits describes the minimum/maximum amount of compute resources required/allowed |
| 207 | + displayName: Resource Requirements |
| 208 | + path: resources |
| 209 | + x-descriptors: |
| 210 | + - 'urn:alm:descriptor:com.tectonic.ui:resourceRequirements' |
| 211 | + statusDescriptors: |
| 212 | + - description: The current number of Pods for the cluster |
| 213 | + displayName: Cluster Size |
| 214 | + path: replicas |
| 215 | + - path: prometheusSelector |
| 216 | + displayName: Prometheus Service Selector |
| 217 | + description: Label selector to find the service that routes to this prometheus |
| 218 | + x-descriptors: |
| 219 | + - 'urn:alm:descriptor:label:selector' |
| 220 | + - name: servicemonitors.monitoring.coreos.com |
| 221 | + version: v1 |
| 222 | + kind: ServiceMonitor |
| 223 | + displayName: Service Monitor |
| 224 | + description: Configures prometheus to monitor a particular k8s service |
| 225 | + resources: |
| 226 | + - kind: Pod |
| 227 | + version: v1 |
| 228 | + specDescriptors: |
| 229 | + - description: Selector to select which namespaces the Endpoints objects are discovered from |
| 230 | + displayName: Monitoring Namespaces |
| 231 | + path: namespaceSelector |
| 232 | + x-descriptors: |
| 233 | + - 'urn:alm:descriptor:com.tectonic.ui:namespaceSelector' |
| 234 | + - description: The label to use to retrieve the job name from |
| 235 | + displayName: Job Label |
| 236 | + path: jobLabel |
| 237 | + x-descriptors: |
| 238 | + - 'urn:alm:descriptor:com.tectonic.ui:label' |
| 239 | + - description: A list of endpoints allowed as part of this ServiceMonitor |
| 240 | + displayName: Endpoints |
| 241 | + path: endpoints |
| 242 | + x-descriptors: |
| 243 | + - 'urn:alm:descriptor:com.tectonic.ui:endpointList' |
| 244 | + - name: alertmanagers.monitoring.coreos.com |
| 245 | + version: v1 |
| 246 | + kind: Alertmanager |
| 247 | + displayName: Alert Manager |
| 248 | + description: Configures an Alert Manager for the namespace |
| 249 | + resources: |
| 250 | + - kind: StatefulSet |
| 251 | + version: v1beta2 |
| 252 | + - kind: Pod |
| 253 | + version: v1 |
| 254 | + specDescriptors: |
| 255 | + - description: Desired number of Pods for the cluster |
| 256 | + displayName: Size |
| 257 | + path: replicas |
| 258 | + x-descriptors: |
| 259 | + - 'urn:alm:descriptor:com.tectonic.ui:podCount' |
| 260 | + - description: Limits describes the minimum/maximum amount of compute resources required/allowed |
| 261 | + displayName: Resource Requirements |
| 262 | + path: resources |
| 263 | + x-descriptors: |
| 264 | + - 'urn:alm:descriptor:com.tectonic.ui:resourceRequirements' |
0 commit comments