-
Notifications
You must be signed in to change notification settings - Fork 329
Closed
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Relevant config.toml
# conf/input.docker/docker.toml
# # 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 = true
gather_extend_memstats = true
container_id_label_enable = true
container_id_label_short_style = true
## 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_OPTS", "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*", "*org_*", "*date*", "*url*", "*docker_compose*"]
## Optional TLS Config
# use_tls = false
# 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 = falseLogs from categraf
2025/12/08 14:34:00 docker.go:156: E! failed to gather docker info: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.43
2025/12/08 14:34:15 docker.go:156: E! failed to gather docker info: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.43
2025/12/08 14:34:30 docker.go:156: E! failed to gather docker info: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.43
System info
categraf v0.4.30, Ubuntu 22.04.2 LTS, Docker 24.0.5, Docker API version: 1.43 (minimum version 1.12)
Docker
FROM flashcatcloud/categraf:latest AS origin
FROM alpine
COPY --from=origin /usr/bin/categraf /usr/bin/
COPY --from=origin /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/
ADD entrypoint.sh /
ADD conf /etc/categraf
VOLUME /hostfs
VOLUME /var/run/docker.sock
CMD ["/entrypoint.sh"]
Steps to reproduce
- endpoint = "unix:///var/run/docker.sock"
- docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock flashcatcloud/categraf:alpine categraf --test --inputs docker
...
Expected behavior
Collect all running containers.
Actual behavior
2025/12/08 14:34:00 docker.go:156: E! failed to gather docker info: Error response from daemon: client version 1.44 is too new. Maximum supported API version is 1.43
Additional info
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request