thelastpickle / tlp-cluster

tlp-cluster, a tool for launching Cassandra clusters in AWS
http://thelastpickle.com/tlp-cluster/
Other
21 stars 11 forks source link

Refactor prometheus configuration generation #99

Closed rustyrazorblade closed 5 years ago

rustyrazorblade commented 5 years ago

The prometheus configuration is generated using the same Yaml class as the Cassandra configuration. This was not the intent of the Yaml class. Unfortunately when the Yaml class was originally written, I did a poor job of documenting it and the intent.

Here we'll rename the Yaml to CassandraYaml, and extract the Prometheus server config logic to dedicated classes using Jackson's object mapping to serialize the data to files.