Skip to content

Commit

Permalink
Merge pull request #22 from SumoLogic/byi-remove-container-eq-POD
Browse files Browse the repository at this point in the history
Byi remove container eq pod
  • Loading branch information
Bin Yi committed May 6, 2019
2 parents cb4b66f + 78d40e1 commit 726149a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
30 changes: 30 additions & 0 deletions deploy/helm/overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,26 +77,56 @@ prometheus:
# cadvisor container metrics
- url: http://fluentd:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: drop
regex: POD
sourceLabels: [container]
- action: drop
regex: POD
sourceLabels: [container_name]
- action: keep
regex: kubelet;container_cpu_(?:load_average_10s|(?:system|usage)_seconds_total)
sourceLabels: [job, __name__]
- url: http://fluentd:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: drop
regex: POD
sourceLabels: [container]
- action: drop
regex: POD
sourceLabels: [container_name]
- action: keep
regex: kubelet;container_memory_(?:usage_bytes|memory_swap)
sourceLabels: [job, __name__]
- url: http://fluentd:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: drop
regex: POD
sourceLabels: [container]
- action: drop
regex: POD
sourceLabels: [container_name]
- action: keep
regex: kubelet;container_spec_memory_(?:|swap|reservation)_limit_bytes
sourceLabels: [job, __name__]
- url: http://fluentd:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: drop
regex: POD
sourceLabels: [container]
- action: drop
regex: POD
sourceLabels: [container_name]
- action: keep
regex: kubelet;container_fs_(?:(?:usage|limit)_bytes|(?:reads|writes)_bytes_total)
sourceLabels: [job, __name__]
- url: http://fluentd:9888/prometheus.metrics.container
writeRelabelConfigs:
- action: drop
regex: POD
sourceLabels: [container]
- action: drop
regex: POD
sourceLabels: [container_name]
- action: keep
regex: kubelet;container_network_(?:receive|transmit)_(?:bytes|errors)_total
sourceLabels: [job, __name__]
Expand Down
7 changes: 7 additions & 0 deletions deploy/kubernetes/fluentd-sumologic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,42 +81,49 @@ data:
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_APISERVER']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
<match prometheus.datapoint.kubelet**>
@type sumologic
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBELET']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
<match prometheus.datapoint.kube-controller-manager**>
@type sumologic
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBE_CONTROLLER_MANAGER']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
<match prometheus.datapoint.kube-scheduler**>
@type sumologic
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBE_SCHEDULER']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
<match prometheus.datapoint.kube-state**>
@type sumologic
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_KUBE_STATE']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
<match prometheus.datapoint.node-exporter**>
@type sumologic
endpoint "#{ENV['SUMO_ENDPOINT_METRICS_NODE_EXPORTER']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
<match prometheus.datapoint**>
@type sumologic
endpoint "#{ENV['SUMO_ENDPOINT_METRICS']}"
data_type metrics
metric_data_format prometheus
disable_cookies true
</match>
events.conf: |-
<source>
Expand Down

0 comments on commit 726149a

Please sign in to comment.