Bug 1310657 - [RFE] configure container metrics host
[RFE] configure container metrics host
Status: CLOSED DUPLICATE of bug 1331433
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.5.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.6.0
Assigned To: Greg Blomquist
Einat Pacifici
container
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-22 07:41 EST by kpichard
Modified: 2016-04-29 11:09 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-04-29 11:09:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description kpichard 2016-02-22 07:41:50 EST
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:
Comment 2 kpichard 2016-02-22 07:46:12 EST
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:

Note You need to log in before you can comment on or make changes to this bug.