• Balasankar "Balu" C's avatar
    Deprecate prometheus.enable and prometheus.listen_address · f8b8d4a8
    Balasankar "Balu" C authored
    We introduced `prometheus.server_address` setting in `gitlab.yml` which
    is to be Rails application's SSOT regarding a Prometheus address.
    Hence, we can deprecate the existing settings `enable` and
    `listen_address`.
    
    Changes:
    * To `Gitlab::Prometheus::Internal` class methods:
      * `server_address` method renamed to `uri_without_protocol`, to
        reflect what the method actually does.
      * `listen_address` method renamed to `server_address`.
      * `promtheus_enabled?` method now depends on presence of
        `server_address`.
    
    * To `Gitlab::DatabaseImporters::SelfMonitoring::Project::CreateService`
      class methods:
      * `prometheus_listen_address` method renamed to
        `prometheus_server_address`.
      * `internal_prometheus_listen_address_uri` renamed to
        `internal_prometheus_server_address_uri`.
    Signed-off-by: default avatarBalasankar "Balu" C <balasankarc@autistici.org>
    f8b8d4a8
internal_spec.rb 2.69 KB