[In Development] Monitoring etcd

Configure the Server Density agent to monitor your etcd store to:

• Collect important metrics about health & sync status
• Identify overall server slowdowns caused by the server

Note: This plugin is still in development and is not yet available to install. We will add new plugins to our release notes.

Monitored metrics

  • etcd.store.gets.success
  • etcd.store.gets.fail
  • etcd.store.sets.success
  • etcd.store.sets.fail
  • etcd.store.delete.success
  • etcd.store.delete.fail
  • etcd.store.update.success
  • etcd.store.update.fail
  • etcd.store.create.success
  • etcd.store.create.fail
  • etcd.store.compareandswap.success
  • etcd.store.compareandswap.fail
  • etcd.store.compareanddelete.success
  • etcd.store.compareanddelete.fail
  • etcd.store.expire.count
  • etcd.store.watchers
  • etcd.self.recv.appendrequest.count
  • etcd.self.send.appendrequest.count
  • etcd.self.send.pkgrate
  • etcd.self.send.bandwidthrate
  • etcd.self.recv.bandwidthrate
  • etcd.self.recv.pkgrate

Configuring the agent to monitor etcd

1. Configure /etc/sd-agent/conf.d/etcd.yaml

init_config:

instances:
# API endpoint of your etcd instance
- url: "https://server:port"
  • To use key authentication or configure the etcd timeout, amend the rest of the config file as necessary

2. Restart the agent

sudo /etc/init.d/sd-agent restart

Verifying the configuration
Execute info to verify the configuration with the following:

sudo /etc/init.d/sd-agent info 

If the agent has been configured correctly you’ll see an output such as:

etcd
-----
  - instance #0 [OK]
  - Collected 10 metrics & 3 service checks

Configuring graphs

Click the name of your server from the Devices list in your Server Density account then go to the Metrics tab. Click the + Graph button on the right then choose the etcd metrics to display the graphs. The metrics will also be available to select when building dashboard graphs.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.