Bug 1310657
| Summary: | [RFE] configure container metrics host | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | kpichard |
| Component: | Providers | Assignee: | Greg Blomquist <gblomqui> |
| Status: | CLOSED DUPLICATE | QA Contact: | Einat Pacifici <epacific> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.5.0 | CC: | fsimonce, gblomqui, hkataria, jfrey, jhardy, mpovolny, obarenbo |
| Target Milestone: | GA | Keywords: | FutureFeature |
| Target Release: | 5.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | container | ||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-29 15:09:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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: |
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: