Servers metrics
Requirements and manual setup.
Since version 1.6.0 RoRvsWild monitors server metrics such as load average, CPU, memory, swap and disk space.
For now, only Linux servers are supported.
The data are available in a server tab beside requests and jobs.
Metrics are grouped by hostnames. Cloud providers give random hostnames which change on every deployment. You can manually define them:
# config/rorvswild.yml
production:
api_key: API_KEY
server:
name: <%= "Some code that return a relevant hostname" %>
Here is the equivalent if you prefer initialising RoRvsWild manually:
# config/initializers/rorvswild.rb
RorVsWild.start(api_key: "API_KEY", server: {name: "host.name"})