Etcd: Q: observabiltiy of changes

Created on 13 Sep 2020  路  2Comments  路  Source: etcd-io/etcd

I have not yet used etcd but I might in an upcoming project with the goal being to sync configuration for 50-100 servers. The thing is that I might need to perform some actions on each machine once some change is made. Does etcd support some kind of observability that I can hook into?

Most helpful comment

Please refer to this API: https://github.com/etcd-io/etcd/blob/76e769ce95ca0d4d0e3486712d96956260db04b8/clientv3/watch.go#L75

As an example, the command line tool etcdctl uses this API. Free feel to play with it so see if this is what you need.
https://github.com/etcd-io/etcd/tree/master/etcdctl#watch-options-key-or-prefix-range_end----exec-command-arg1-arg2-

All 2 comments

Please refer to this API: https://github.com/etcd-io/etcd/blob/76e769ce95ca0d4d0e3486712d96956260db04b8/clientv3/watch.go#L75

As an example, the command line tool etcdctl uses this API. Free feel to play with it so see if this is what you need.
https://github.com/etcd-io/etcd/tree/master/etcdctl#watch-options-key-or-prefix-range_end----exec-command-arg1-arg2-

great, thanks!

Was this page helpful?
0 / 5 - 0 ratings