Description of problem: With a cloudForms connected to Openshift, you can't configure host for metrics, only port is configurable. Possible configuration : :ems_metrics_collector_worker_kubernetes: :poll_method: :escalate :metrics_port: 443 :metrics_path: "/hawkular/metrics" The only is currently to overwrite the code to avoid to take the same name as Openshift API : /var/www/miq/vmdb/app/models/manageiq/providers/kubernetes/container_manager/metrics_capture/capture_context.rb +114 def hawkular_entrypoint worker_class = ManageIQ::Providers::Kubernetes::ContainerManager::MetricsCollectorWorker URI::HTTPS.build( :host => @ext_management_system.hostname, <- Change host :port => worker_class.worker_settings[:metrics_port], :path => worker_class.worker_settings[:metrics_path]) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Not possible to set the metrics host name of service, it's the same as provider Api by default. Expected results: To be able to configure Hostname as well as port Additional info:
Added info for version inline (In reply to kpichard from comment #0) > Description of problem: > > With a cloudForms connected to Openshift, you can't configure host for > metrics, only port is configurable. > > Possible configuration : > :ems_metrics_collector_worker_kubernetes: > :poll_method: :escalate > :metrics_port: 443 > :metrics_path: "/hawkular/metrics" > > The only is currently to overwrite the code to avoid to take the same name > as Openshift API : > > /var/www/miq/vmdb/app/models/manageiq/providers/kubernetes/container_manager/ > metrics_capture/capture_context.rb +114 > def hawkular_entrypoint > worker_class = > ManageIQ::Providers::Kubernetes::ContainerManager::MetricsCollectorWorker > URI::HTTPS.build( > :host => @ext_management_system.hostname, <- > Change host > :port => worker_class.worker_settings[:metrics_port], > > :path => worker_class.worker_settings[:metrics_path]) > > Version-Release number of selected component (if applicable): 5.5.2.4 > > > How reproducible: > > > Steps to Reproduce: > 1. > 2. > 3. > > Actual results: > > Not possible to set the metrics host name of service, it's the same as > provider Api by default. > > Expected results: > > To be able to configure Hostname as well as port > > Additional info: