@@ -40,11 +40,6 @@ The Prometheus Receiver monitors each applications deployment using the service
40
40
- job_name : ' kubernetes-service-endpoints'
41
41
kubernetes_sd_configs :
42
42
- role : endpoints
43
-
44
- tls_config :
45
- ca_file : /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
46
- insecure_skip_verify : true
47
- bearer_token_file : /var/run/secrets/kubernetes.io/serviceaccount/token
48
43
49
44
relabel_configs :
50
45
# Example relabel to scrape only endpoints that have
@@ -59,7 +54,7 @@ The Prometheus Receiver monitors each applications deployment using the service
59
54
# source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
60
55
# target_label: __scheme__
61
56
# Example relabel to customize metric path based on endpoints
62
- # "prometheus.io/metric_path = <metric path>" annotation.
57
+ # "prometheus.io/path = <metric path>" annotation.
63
58
# - action: replace
64
59
# regex: (.+)
65
60
# source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
@@ -108,10 +103,6 @@ When monitoring pods, we want to watch the pod deployment patterns, total pod in
108
103
sample_limit : 10000
109
104
kubernetes_sd_configs :
110
105
- role : pod
111
- tls_config :
112
- ca_file : /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
113
- insecure_skip_verify : true
114
- bearer_token_file : /var/run/secrets/kubernetes.io/serviceaccount/token
115
106
relabel_configs :
116
107
# Example relabel to scrape only endpoints that have
117
108
# "prometheus.io/scrape = true" annotation.
@@ -125,7 +116,7 @@ When monitoring pods, we want to watch the pod deployment patterns, total pod in
125
116
# source_labels: [__meta_kubernetes_service_annotation_prometheus_io_scheme]
126
117
# target_label: __scheme__
127
118
# Example relabel to customize metric path based on endpoints
128
- # "prometheus.io/metric_path = <metric path>" annotation.
119
+ # "prometheus.io/path = <metric path>" annotation.
129
120
# - action: replace
130
121
# regex: (.+)
131
122
# source_labels: [__meta_kubernetes_service_annotation_prometheus_io_path]
@@ -303,10 +294,6 @@ replacing the `__address__`. If we do not want to probe all services, we can spe
303
294
304
295
kubernetes_sd_configs:
305
296
- role: service
306
- tls_config:
307
- ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
308
- insecure_skip_verify: true
309
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
310
297
311
298
relabel_configs:
312
299
# Example relabel to probe only some services that have "prometheus.io/should_be_probed = true" annotation
@@ -356,10 +343,6 @@ As setup in `services`, this will also require the Blackbox Exporter.
356
343
357
344
kubernetes_sd_configs:
358
345
- role: ingress
359
- tls_config:
360
- ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
361
- insecure_skip_verify: true
362
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
363
346
364
347
relabel_configs:
365
348
# Example relabel to probe only some services that have "prometheus.io/should_be_probed = true" annotation
@@ -548,4 +531,4 @@ If you would like a more basic setup, please take a look at the
548
531
[getting started with the AWS Distro for OpenTelemetry Collector-AMP Pipeline in EKS Guide](/docs/getting-started/prometheus-remote-write-exporter).
549
532
550
533
We would love to hear more common configuration scenarios or improvements to this documentation from you! Please submit an issue
551
- on the [aws-otel community](https://github.com/aws-observability/aws-otel-community) to let us know.
534
+ on the [aws-otel community](https://github.com/aws-observability/aws-otel-community) to let us know.
0 commit comments