This plugin provides native HTTP instrumentation for monitoring and metrics collection, including: response code, JSON response, HTTP last modified, SSL expiry, and metrics via `curl`.
Like usual in documentation, there's something basic missing which is just assumed that you know, but not stated explicitely. The requirements on the agent.
I am running sensu-backend and sensu-agent via docker. It's basically working. the agent is based on sensu/sensu:latest and extended with ruby etc from alpine packages like so:
FROM sensu/sensu:latest
RUN apk add -U --no-cache ruby bash docker openssh
My checks tell me: sh: check-cpu.rb: not found
I understand that those files, obviously coming from ruby-runtime are missing on the agent. But how to install?
Obviously, sensuctl asset add sensu/sensu-ruby-runtime is not enough. It's actually not documented anywhere, what this really does behind the scenes. Does it populate the plugin to the agent?
My docker knowledge is pretty solid, but I don't get how the sensu agent thing works. I know there's communication via http and rabbit, but not how it exactly looks like.
I've read all about the asset thing, and still don't understand how it works.
I followed the instructions on https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime to create the Docker Alpine Image and tried to start as agent, but sensu-agent is missing in this image. Which leads me to the assumtion, it's not ought to be done this way.
I'm absolutely new to sensu and perhaps my question is not in the right place here, but I don't know where to start. I followed both beginner guides https://docs.sensu.io/sensu-go/latest/guides/monitor-server-resources/ and https://docs.sensu.io/sensu-go/latest/guides/monitor-external-resources/
Like usual in documentation, there's something basic missing which is just assumed that you know, but not stated explicitely. The requirements on the agent.
I am running sensu-backend and sensu-agent via docker. It's basically working. the agent is based on
sensu/sensu:latest
and extended with ruby etc from alpine packages like so:My checks tell me:
sh: check-cpu.rb: not found
I understand that those files, obviously coming from
ruby-runtime
are missing on the agent. But how to install? Obviously,sensuctl asset add sensu/sensu-ruby-runtime
is not enough. It's actually not documented anywhere, what this really does behind the scenes. Does it populate the plugin to the agent?My docker knowledge is pretty solid, but I don't get how the sensu agent thing works. I know there's communication via http and rabbit, but not how it exactly looks like. I've read all about the asset thing, and still don't understand how it works.
I followed the instructions on https://bonsai.sensu.io/assets/sensu/sensu-ruby-runtime to create the Docker Alpine Image and tried to start as agent, but
sensu-agent
is missing in this image. Which leads me to the assumtion, it's not ought to be done this way.I'm lost, please help :-D
thats my swarm docker-compose.yml for testing: https://gist.github.com/port22/c4b98464e0fe7f39d4966c20301e79c9