Skip to content

Commit

Permalink
Merge pull request #597 from kongfei605/docker_delete
Browse files Browse the repository at this point in the history
do not collect docker metrics
  • Loading branch information
kongfei605 committed Aug 11, 2023
2 parents dbe5505 + 5e3a74a commit 3e75749
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 86 deletions.
4 changes: 0 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ dockers:
- conf/input.kernel_vmstat/kernel_vmstat.toml
- conf/input.netstat/netstat.toml
- conf/input.net/net.toml
- conf/input.docker/docker.toml
- conf/input.kubernetes/kubernetes.toml
- conf/input.processes/processes.toml
use: buildx
Expand Down Expand Up @@ -182,7 +181,6 @@ dockers:
- conf/input.kernel_vmstat/kernel_vmstat.toml
- conf/input.netstat/netstat.toml
- conf/input.net/net.toml
- conf/input.docker/docker.toml
- conf/input.kubernetes/kubernetes.toml
- conf/input.processes/processes.toml
use: buildx
Expand Down Expand Up @@ -211,7 +209,6 @@ dockers:
- conf/input.kernel_vmstat/kernel_vmstat.toml
- conf/input.netstat/netstat.toml
- conf/input.net/net.toml
- conf/input.docker/docker.toml
- conf/input.kubernetes/kubernetes.toml
- conf/input.processes/processes.toml
use: buildx
Expand Down Expand Up @@ -240,7 +237,6 @@ dockers:
- conf/input.kernel_vmstat/kernel_vmstat.toml
- conf/input.netstat/netstat.toml
- conf/input.net/net.toml
- conf/input.docker/docker.toml
- conf/input.kubernetes/kubernetes.toml
- conf/input.processes/processes.toml
use: buildx
Expand Down
82 changes: 0 additions & 82 deletions k8s/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,76 +177,6 @@ data:
# devices = ["sda", "sdb", "vd*"]
---
kind: ConfigMap
metadata:
name: input-docker
apiVersion: v1
data:
docker.toml: |
# # collect interval
# interval = 15
[[instances]]
# # append some labels for series
# labels = { region="cloud", product="n9e" }
# # interval = global.interval * interval_times
# interval_times = 1
## Docker Endpoint
## To use TCP, set endpoint = "tcp://[ip]:[port]"
## To use environment variables (ie, docker-machine), set endpoint = "ENV"
endpoint = "unix:///var/run/docker.sock"
## Set to true to collect Swarm metrics(desired_replicas, running_replicas)
gather_services = false
gather_extend_memstats = false
container_id_label_enable = true
container_id_label_short_style = false
## Containers to include and exclude. Globs accepted.
## Note that an empty array for both will include all containers
container_name_include = []
container_name_exclude = []
## Container states to include and exclude. Globs accepted.
## When empty only containers in the "running" state will be captured.
## example: container_state_include = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
## example: container_state_exclude = ["created", "restarting", "running", "removing", "paused", "exited", "dead"]
# container_state_include = []
# container_state_exclude = []
## Timeout for docker list, info, and stats commands
timeout = "5s"
## Specifies for which classes a per-device metric should be issued
## Possible values are 'cpu' (cpu0, cpu1, ...), 'blkio' (8:0, 8:1, ...) and 'network' (eth0, eth1, ...)
## Please note that this setting has no effect if 'perdevice' is set to 'true'
perdevice_include = []
## Specifies for which classes a total metric should be issued. Total is an aggregated of the 'perdevice' values.
## Possible values are 'cpu', 'blkio' and 'network'
## Total 'cpu' is reported directly by Docker daemon, and 'network' and 'blkio' totals are aggregated by this plugin.
## Please note that this setting has no effect if 'total' is set to 'false'
total_include = ["cpu", "blkio", "network"]
## Which environment variables should we use as a tag
##tag_env = ["JAVA_HOME", "HEAP_SIZE"]
## docker labels to include and exclude as tags. Globs accepted.
## Note that an empty array for both will include all labels as tags
docker_label_include = []
docker_label_exclude = ["annotation*", "io.kubernetes*", "*description*", "*maintainer*", "*hash", "*author*"]
## Optional TLS Config
# use_tls = false
# tls_ca = "/etc/telegraf/ca.pem"
# tls_cert = "/etc/telegraf/cert.pem"
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
---
kind: ConfigMap
metadata:
name: input-kubernetes
apiVersion: v1
Expand Down Expand Up @@ -595,8 +525,6 @@ spec:
name: input-disk
- mountPath: /etc/categraf/conf/input.diskio
name: input-diskio
- mountPath: /etc/categraf/conf/input.docker
name: input-docker
- mountPath: /etc/categraf/conf/input.kubernetes
name: input-kubernetes
- mountPath: /etc/categraf/conf/input.prometheus
Expand All @@ -623,8 +551,6 @@ spec:
- mountPath: /hostfs
name: hostrofs
readOnly: true
- mountPath: /var/run/docker.sock
name: docker-socket
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: n9e-categraf
hostNetwork: true
Expand Down Expand Up @@ -656,10 +582,6 @@ spec:
defaultMode: 420
name: input-diskio
name: input-diskio
- configMap:
defaultMode: 420
name: input-docker
name: input-docker
- configMap:
defaultMode: 420
name: input-kubernetes
Expand Down Expand Up @@ -708,7 +630,3 @@ spec:
path: /var/run/utmp
type: ""
name: hostroutmp
- hostPath:
path: /var/run/docker.sock
type: Socket
name: docker-socket

0 comments on commit 3e75749

Please sign in to comment.