Servers metrics
Requirements and manual setup.
Since version 1.6.0 RoRvsWild monitors server metrics:
- Load average
- CPU
- Memory
- Swap
- Disk space
Requirements
For now, only Linux servers are supported.
Configuration
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"})