Hi,
i need some help to get the docker-daemon-metrics Check working.
I executed it on the Agent Machine with http-get and it seems to provide valid output.
./http-get --timeout 10 --url “http127.0.0.1:9323/metrics”| head
# HELP builder_builds_failed_total Number of failed image builds
# TYPE builder_builds_failed_total counter
builder_builds_failed_total{reason=“build_canceled”} 0
builder_builds_failed_total{reason=“build_target_not_reachable_error”} 0
builder_builds_failed_total{reason=“command_not_supported_error”} 0
builder_builds_failed_total{reason=“dockerfile_empty_error”} 0
builder_builds_failed_total{reason=“dockerfile_syntax_error”} 0
builder_builds_failed_total{reason=“error_processing_commands_error”} 0
builder_builds_failed_total{reason=“missing_onbuild_arguments_error”} 0
builder_builds_failed_total{reason=“unknown_instruction_error”} 0
I checked the Logs of sensu-agent:
Nov 01 23:22:10 xxx.xxy.de sensu-agent[529187]: {“check”:“docker-daemon-metrics”,“component”:“agent”,“entity”:“xxx.xxy.de”,“event_uuid”:“f9007b05-3421-4793-90bd-38d5e300381e”,“level”:“info”,“metrics”:true,“msg”:“sending event to backend”,“time”:“2024-11-01T22:22:10Z”}
But i don’t get an Event on the Backend for this Check/Entity.
the Check Config:
sensuctl check info docker-daemon-metrics
=== docker-daemon-metrics
Name: docker-daemon-metrics
Interval: 30
Command: http-get --timeout 10 --url “http127.0.0.1:9323/metrics”
Cron:
Timeout: 0
TTL: 0
Subscriptions: docker, docker-daemon, docker-machine
Handlers:
Runtime Assets: sensu/http-checks:0.7.0
Hooks:
Publish?: true
Stdin?: false
Proxy Entity Name:
Namespace: default
Metric Format: prometheus_text
Metric Handlers:
Can someone please help?
Thanks!
EDIT:
I removed the http:// from localhost Connection, because the forum doesn’t allow me as new user to insert “Links”