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.
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.