diff --git a/docker/categraf/conf/input.kubernetes/kubernetes.toml b/docker/categraf/conf/input.kubernetes/kubernetes.toml deleted file mode 100644 index fd4b0991..00000000 --- a/docker/categraf/conf/input.kubernetes/kubernetes.toml +++ /dev/null @@ -1,41 +0,0 @@ -# # collect interval -# interval = 15 - -[[instances]] -# # append some labels for series -# labels = { region="cloud", product="n9e" } - -# # interval = global.interval * interval_times -# interval_times = 1 - -# URL for the kubelet -url = "https://127.0.0.1:10250" - -gather_system_container_metrics = true -gather_node_metrics = true -gather_pod_container_metrics = true -gather_pod_volume_metrics = true -gather_pod_network_metrics = true - -## Use bearer token for authorization. ('bearer_token' takes priority) -## If both of these are empty, we'll use the default serviceaccount: -## at: /var/run/secrets/kubernetes.io/serviceaccount/token -# bearer_token = "/path/to/bearer/token" -## OR -# bearer_token_string = "abc_123" - -## Pod labels to be added as tags. An empty array for both include and -## exclude will include all labels. -# label_include = [] -# label_exclude = ["*"] - -## Set response_timeout (default 5 seconds) -# response_timeout = "5s" - -## Optional TLS Config -use_tls = true -# tls_ca = "/etc/categraf/ca.pem" -# tls_cert = "/etc/categraf/cert.pem" -# tls_key = "/etc/categraf/key.pem" -## Use TLS but skip chain & host verification -insecure_skip_verify = true diff --git a/docker/categraf/conf/input.procstat/procstat.toml b/docker/categraf/conf/input.procstat/procstat.toml deleted file mode 100644 index 6e985876..00000000 --- a/docker/categraf/conf/input.procstat/procstat.toml +++ /dev/null @@ -1,31 +0,0 @@ -# # collect interval -# interval = 15 - -# [[instances]] -# # executable name (ie, pgrep ) -# search_exec_substring = "nginx" - -# # pattern as argument for pgrep (ie, pgrep -f ) -# search_cmdline_substring = "n9e server" - -# # windows service name -# search_win_service = "" - -# # append some labels for series -# labels = { region="cloud", product="n9e" } - -# # interval = global.interval * interval_times -# interval_times = 1 - -# # mode to use when calculating CPU usage. can be one of 'solaris' or 'irix' -# mode = "irix" - -# gather_more_metrics = [ -# "threads", -# "fd", -# "io", -# "uptime", -# "cpu", -# "mem", -# "limit" -# ] diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 79c75f3d..8e5777c8 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -141,8 +141,13 @@ services: restart: always environment: TZ: Asia/Shanghai + HOST_PROC: /hostfs/proc + HOST_SYS: /hostfs/sys + HOST_MOUNT_PREFIX: /hostfs volumes: - ./categraf/conf:/etc/categraf/conf + - /:/hostfs + - /var/run/docker.sock:/var/run/docker.sock ports: - "8094:8094/tcp" networks: