Skip to content

Commit

Permalink
only .azurepipeline revert left
Browse files Browse the repository at this point in the history
  • Loading branch information
bragi92 committed Mar 6, 2024
1 parent 73ea37c commit 63d6bba
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 238 deletions.
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
scrape_configs:
- job_name: prometheus_ref_app_apiserver
scheme: http
scrape_interval: $$SCRAPE_INTERVAL$$
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: "prometheus-reference-app"
# scrape_configs:
# - job_name: controlplane-apiserver
# scrape_interval: $$SCRAPE_INTERVAL$$
# label_limit: 63
# label_name_length_limit: 511
# label_value_length_limit: 1023
# kubernetes_sd_configs:
# - role: endpoints
# namespaces:
# names:
# - $$POD_NAMESPACE$$
# scheme: https
# tls_config:
# ca_file: /etc/kubernetes/secrets/ca.pem
# cert_file: /etc/kubernetes/secrets/client.pem
# key_file: /etc/kubernetes/secrets/client-key.pem
# insecure_skip_verify: true
# relabel_configs:
# - source_labels:
# - __meta_kubernetes_pod_label_k8s_app
# - __meta_kubernetes_pod_container_name
# - job_name: prometheus_ref_app_apiserver
# scheme: http
# scrape_interval: $$SCRAPE_INTERVAL$$
# kubernetes_sd_configs:
# - role: pod
# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_label_app]
# action: keep
# regex: kube-apiserver;kube-apiserver
# - source_labels: [ __meta_kubernetes_pod_name ]
# regex: (.*)
# target_label: instance
# action: replace
# metric_relabel_configs:
# - source_labels: [ __name__ ]
# action: drop
# regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
# regex: "prometheus-reference-app"
scrape_configs:
- job_name: controlplane-apiserver
scrape_interval: $$SCRAPE_INTERVAL$$
label_limit: 63
label_name_length_limit: 511
label_value_length_limit: 1023
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- $$POD_NAMESPACE$$
scheme: https
tls_config:
ca_file: /etc/kubernetes/secrets/ca.pem
cert_file: /etc/kubernetes/secrets/client.pem
key_file: /etc/kubernetes/secrets/client-key.pem
insecure_skip_verify: true
relabel_configs:
- source_labels:
- __meta_kubernetes_pod_label_k8s_app
- __meta_kubernetes_pod_container_name
action: keep
regex: kube-apiserver;kube-apiserver
- source_labels: [ __meta_kubernetes_pod_name ]
regex: (.*)
target_label: instance
action: replace
metric_relabel_configs:
- source_labels: [ __name__ ]
action: drop
regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
scrape_configs:
- job_name: prometheus_ref_app_cluster_autoscaler
scheme: http
scrape_interval: $$SCRAPE_INTERVAL$$
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: "prometheus-reference-app"
# scrape_configs:
# - job_name: controlplane-cluster-autoscaler
# scrape_interval: $$SCRAPE_INTERVAL$$
# follow_redirects: false
# label_limit: 63
# label_name_length_limit: 511
# label_value_length_limit: 1023
# kubernetes_sd_configs:
# - job_name: prometheus_ref_app_cluster_autoscaler
# scheme: http
# scrape_interval: $$SCRAPE_INTERVAL$$
# kubernetes_sd_configs:
# - role: pod
# namespaces:
# names:
# - $$POD_NAMESPACE$$
# tls_config:
# ca_file: /etc/kubernetes/secrets/ca.pem
# cert_file: /etc/kubernetes/secrets/client.pem
# key_file: /etc/kubernetes/secrets/client-key.pem
# insecure_skip_verify: true
# relabel_configs:
# - source_labels: [ __meta_kubernetes_pod_label_app, __meta_kubernetes_pod_container_name ]
# action: keep
# regex: cluster-autoscaler;cluster-autoscaler
# - source_labels: [ __meta_kubernetes_pod_annotation_aks_prometheus_io_scrape ]
# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_label_app]
# action: keep
# regex: true
# - source_labels: [ __meta_kubernetes_pod_annotation_aks_prometheus_io_path ]
# action: replace
# target_label: __metrics_path__
# regex: (.+)
# - source_labels: [ __address__, __meta_kubernetes_pod_annotation_aks_prometheus_io_port ]
# action: replace
# separator: ":"
# target_label: __address__
# - source_labels: [ __meta_kubernetes_pod_name ]
# regex: (.*)
# target_label: instance
# action: replace
# metric_relabel_configs:
# - source_labels: [ __name__ ]
# action: drop
# regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
# regex: "prometheus-reference-app"
scrape_configs:
- job_name: controlplane-cluster-autoscaler
scrape_interval: $$SCRAPE_INTERVAL$$
follow_redirects: false
label_limit: 63
label_name_length_limit: 511
label_value_length_limit: 1023
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- $$POD_NAMESPACE$$
tls_config:
ca_file: /etc/kubernetes/secrets/ca.pem
cert_file: /etc/kubernetes/secrets/client.pem
key_file: /etc/kubernetes/secrets/client-key.pem
insecure_skip_verify: true
relabel_configs:
- source_labels: [ __meta_kubernetes_pod_label_app, __meta_kubernetes_pod_container_name ]
action: keep
regex: cluster-autoscaler;cluster-autoscaler
- source_labels: [ __meta_kubernetes_pod_annotation_aks_prometheus_io_scrape ]
action: keep
regex: true
- source_labels: [ __meta_kubernetes_pod_annotation_aks_prometheus_io_path ]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [ __address__, __meta_kubernetes_pod_annotation_aks_prometheus_io_port ]
action: replace
separator: ":"
target_label: __address__
- source_labels: [ __meta_kubernetes_pod_name ]
regex: (.*)
target_label: instance
action: replace
metric_relabel_configs:
- source_labels: [ __name__ ]
action: drop
regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
scrape_configs:
- job_name: prometheus_ref_app_etcd
scheme: http
scrape_interval: $$SCRAPE_INTERVAL$$
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: "prometheus-reference-app"
- source_labels: [__meta_kubernetes_pod_name]
target_label: new_label
action: replace
regex: "(.*)"
replacement: new_value:$$1
# scrape_configs:
# - job_name: controlplane-etcd
# scrape_interval: $$SCRAPE_INTERVAL$$
# follow_redirects: false
# scheme: https
# label_limit: 63
# label_name_length_limit: 511
# label_value_length_limit: 1023
# kubernetes_sd_configs:
# - role: endpoints
# namespaces:
# names:
# - $$POD_NAMESPACE$$
# tls_config:
# ca_file: /etc/kubernetes/secrets/etcd-client-ca.crt
# cert_file: /etc/kubernetes/secrets/etcd-client.crt
# key_file: /etc/kubernetes/secrets/etcd-client.key
# insecure_skip_verify: true
# relabel_configs:
# - source_labels: [ __meta_kubernetes_service_label_app, __meta_kubernetes_pod_container_port_number ]
# - job_name: prometheus_ref_app_etcd
# scheme: http
# scrape_interval: $$SCRAPE_INTERVAL$$
# kubernetes_sd_configs:
# - role: pod
# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_label_app]
# action: keep
# regex: etcd;2379
# - source_labels: [ __meta_kubernetes_pod_name ]
# regex: (.*)
# target_label: instance
# regex: "prometheus-reference-app"
# - source_labels: [__meta_kubernetes_pod_name]
# target_label: new_label
# action: replace
# - source_labels: [ __meta_kubernetes_pod_name ]
# action: drop
# regex: (etcd2-.*)
# metric_relabel_configs:
# - source_labels: [ __name__ ]
# action: drop
# regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
# regex: "(.*)"
# replacement: new_value:$$1
scrape_configs:
- job_name: controlplane-etcd
scrape_interval: $$SCRAPE_INTERVAL$$
follow_redirects: false
scheme: https
label_limit: 63
label_name_length_limit: 511
label_value_length_limit: 1023
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- $$POD_NAMESPACE$$
tls_config:
ca_file: /etc/kubernetes/secrets/etcd-client-ca.crt
cert_file: /etc/kubernetes/secrets/etcd-client.crt
key_file: /etc/kubernetes/secrets/etcd-client.key
insecure_skip_verify: true
relabel_configs:
- source_labels: [ __meta_kubernetes_service_label_app, __meta_kubernetes_pod_container_port_number ]
action: keep
regex: etcd;2379
- source_labels: [ __meta_kubernetes_pod_name ]
regex: (.*)
target_label: instance
action: replace
- source_labels: [ __meta_kubernetes_pod_name ]
action: drop
regex: (etcd2-.*)
metric_relabel_configs:
- source_labels: [ __name__ ]
action: drop
regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
scrape_configs:
- job_name: prometheus_ref_app_kube_controller_manager
scheme: http
scrape_interval: $$SCRAPE_INTERVAL$$
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: "prometheus-reference-app"
# scrape_configs:
# - job_name: controlplane-kube-controller-manager
# scrape_interval: $$SCRAPE_INTERVAL$$
# follow_redirects: false
# scheme: https
# label_limit: 63
# label_name_length_limit: 511
# label_value_length_limit: 1023
# kubernetes_sd_configs:
# - job_name: prometheus_ref_app_kube_controller_manager
# scheme: http
# scrape_interval: $$SCRAPE_INTERVAL$$
# kubernetes_sd_configs:
# - role: pod
# namespaces:
# names:
# - $$POD_NAMESPACE$$
# tls_config:
# ca_file: /etc/kubernetes/secrets/ca.pem
# cert_file: /etc/kubernetes/secrets/client.pem
# key_file: /etc/kubernetes/secrets/client-key.pem
# insecure_skip_verify: true
# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_label_k8s_app, __meta_kubernetes_pod_container_name]
# action: keep
# regex: kube-controller-manager;kube-controller-manager
# - source_labels: [__meta_kubernetes_pod_annotation_aks_prometheus_io_scrape]
# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_label_app]
# action: keep
# regex: true
# - source_labels: [__meta_kubernetes_pod_annotation_aks_prometheus_io_path]
# action: replace
# target_label: __metrics_path__
# regex: (.+)
# - source_labels: [ __address__, __meta_kubernetes_pod_annotation_aks_prometheus_io_port ]
# action: replace
# separator: ":"
# target_label: __address__
# - source_labels: [__meta_kubernetes_pod_name]
# regex: (.*)
# target_label: instance
# action: replace
# metric_relabel_configs:
# - source_labels: [ __name__ ]
# action: drop
# regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
# regex: "prometheus-reference-app"
scrape_configs:
- job_name: controlplane-kube-controller-manager
scrape_interval: $$SCRAPE_INTERVAL$$
follow_redirects: false
scheme: https
label_limit: 63
label_name_length_limit: 511
label_value_length_limit: 1023
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- $$POD_NAMESPACE$$
tls_config:
ca_file: /etc/kubernetes/secrets/ca.pem
cert_file: /etc/kubernetes/secrets/client.pem
key_file: /etc/kubernetes/secrets/client-key.pem
insecure_skip_verify: true
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_k8s_app, __meta_kubernetes_pod_container_name]
action: keep
regex: kube-controller-manager;kube-controller-manager
- source_labels: [__meta_kubernetes_pod_annotation_aks_prometheus_io_scrape]
action: keep
regex: true
- source_labels: [__meta_kubernetes_pod_annotation_aks_prometheus_io_path]
action: replace
target_label: __metrics_path__
regex: (.+)
- source_labels: [ __address__, __meta_kubernetes_pod_annotation_aks_prometheus_io_port ]
action: replace
separator: ":"
target_label: __address__
- source_labels: [__meta_kubernetes_pod_name]
regex: (.*)
target_label: instance
action: replace
metric_relabel_configs:
- source_labels: [ __name__ ]
action: drop
regex: (go_.*|process_(cpu|max|resident|virtual|open)_.*)
Loading

0 comments on commit 63d6bba

Please sign in to comment.