Skip to content

Commit

Permalink
fix(DMVP-3107): Add Adot metric for node monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
aramkarapetian committed Nov 28, 2023
1 parent 15ed573 commit 0669d98
Showing 1 changed file with 1 addition and 68 deletions.
69 changes: 1 addition & 68 deletions modules/adot/templates/adot-values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,55 +32,6 @@ adotCollector:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus/node2:
config:
global:
scrape_interval: 60s
scrape_timeout: 10s
scrape_configs:
- job_name: kubernetes-service-endpoints
sample_limit: 10000
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
# collect if service.annotation: prometheus.io/scrape: true
- source_labels:
- __meta_kubernetes_service_annotation_prometheus_io_scrape
regex: true
action: keep
# replaces the schema
- source_labels:
- __meta_kubernetes_service_annotation_prometheus_io_scheme
regex: (https?)
action: replace
target_label: __scheme__
- source_labels:
- __meta_kubernetes_service_annotation_prometheus_io_path
regex: (.+)
action: replace
target_label: __metrics_path__
- source_labels:
- __address__
- __meta_kubernetes_service_annotation_prometheus_io_port
regex: ([^:]+)(?::\d+)?;(\d+)
action: replace
replacement: $$1:$$2
target_label: __address__
- regex: __meta_service_pod_label_(.+)
action: labelmap
metric_relabel_configs:
- action: keep
source_labels:
- resource
regex: (pods)
- action: replace
source_labels:
- node
target_label: Node
- action: replace
source_labels:
- resource
target_label: Resource
prometheus/node:
config:
global:
Expand Down Expand Up @@ -209,14 +160,6 @@ adotCollector:
resource_attributes:
- key: Namespace
value: ${accept_namespace_regex}
experimental_metricsgeneration:
rules:
- name: kube_node_status_condition_all
unit: Bytes
type: scale
metric1: kube_node_status_condition
operation: multiply
scale_by: 1
filter/metrics_include:
metrics:
include:
Expand Down Expand Up @@ -270,17 +213,11 @@ adotCollector:
- Resource
metric_name_selectors:
- kube_node_status_capacity
- dimensions:
- - Node
- Condition
- Status
metric_name_selectors:
- kube_node_status_condition
- dimensions:
- - Condition
- Status
metric_name_selectors:
- kube_node_status_condition_all
- kube_node_status_condition
namespace: ContainerInsights
parse_json_encoded_attr_values:
- Sources
Expand Down Expand Up @@ -360,10 +297,6 @@ adotCollector:
region: "${region}"
service:
pipelines:
metrics/awsemf_prometheus_new:
receivers: ["prometheus/node2"]
processors: ["experimental_metricsgeneration"]
exporters: ["awsemf/prometheus"]
metrics/awsemf_prometheus:
receivers: ["prometheus","prometheus/node"]
processors: ["resource/set_attributes"]
Expand Down

0 comments on commit 0669d98

Please sign in to comment.