Skip to content

Commit

Permalink
manifests: remove prometheus.io/scrape annotations
Browse files Browse the repository at this point in the history
These annotations made sense in pre v1.3.0 Prometheus releases, however,
with >=v1.3.0 and the Prometheus Operator these annotations are more
confusing then helpful.
  • Loading branch information
brancz committed Dec 2, 2016
1 parent 20f88ee commit 0c1bb5c
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 24 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ To tear it all down again, run:
hack/cluster-monitoring/teardown
```

> All services in the manifest still contain the `prometheus.io/scrape = true`
> annotations. It is not used by the Prometheus Operator. They remain for
> pre Prometheus v1.3.0 deployments as in [this example configuration](https://github.com/prometheus/prometheus/blob/6703404cb431f57ca4c5097bc2762438d3c1968e/documentation/examples/prometheus-kubernetes.yml).
## Monitoring custom services

The example manifests in [/manifests/examples/example-app](/manifests/examples/example-app)
Expand Down Expand Up @@ -133,4 +129,4 @@ default kubernetes 172.17.4.101:443
kube-system kube-controller-manager-prometheus-discovery 10.2.30.2:10252 1h
kube-system kube-scheduler-prometheus-discovery 10.2.30.4:10251 1h
monitoring etcd-k8s 172.17.4.51:2379 1h
```
```
4 changes: 1 addition & 3 deletions manifests/etcd/etcd-bootkube-gce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ metadata:
labels:
app: etcd
etcd: k8s
annotations:
prometheus.io/scrape: 'true'
spec:
type: ClusterIP
clusterIP: None
Expand All @@ -29,4 +27,4 @@ subsets:
ports:
- name: api
port: 2379
protocol: TCP
protocol: TCP
4 changes: 1 addition & 3 deletions manifests/etcd/etcd-bootkube-vagrant-multi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ metadata:
labels:
app: etcd
etcd: k8s
annotations:
prometheus.io/scrape: 'true'
spec:
type: ClusterIP
clusterIP: None
Expand All @@ -29,4 +27,4 @@ subsets:
ports:
- name: api
port: 2379
protocol: TCP
protocol: TCP
2 changes: 0 additions & 2 deletions manifests/examples/example-app/example-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ metadata:
name: example-app
labels:
tier: frontend
annotations:
prometheus.io/scrape: 'true'
spec:
selector:
app: example-app
Expand Down
2 changes: 0 additions & 2 deletions manifests/exporters/kube-state-metrics-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: 'true'
labels:
app: kube-state-metrics
name: kube-state-metrics
Expand Down
2 changes: 0 additions & 2 deletions manifests/exporters/node-exporter-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ kind: Service
metadata:
labels:
app: node-exporter
annotations:
prometheus.io/scrape: 'true'
name: node-exporter
spec:
type: ClusterIP
Expand Down
4 changes: 1 addition & 3 deletions manifests/grafana/grafana-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ metadata:
name: grafana
labels:
app: grafana
annotations:
prometheus.io/scrape: 'true'
spec:
type: NodePort
ports:
Expand All @@ -14,4 +12,4 @@ spec:
protocol: TCP
nodePort: 30902
selector:
app: grafana
app: grafana
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ metadata:
name: kube-controller-manager-prometheus-discovery
labels:
k8s-app: kube-controller-manager
annotations:
prometheus.io/scrape: 'true'
spec:
selector:
k8s-app: kube-controller-manager
Expand Down
2 changes: 0 additions & 2 deletions manifests/k8s/kube-scheduler-bootkube-vagrant-multi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ metadata:
name: kube-scheduler-prometheus-discovery
labels:
k8s-app: kube-scheduler
annotations:
prometheus.io/scrape: 'true'
spec:
selector:
k8s-app: kube-scheduler
Expand Down

0 comments on commit 0c1bb5c

Please sign in to comment.