Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Prometheus in Container Provider summary page #1525

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 8 additions & 12 deletions app/helpers/ems_container_helper/textual_summary.rb
Expand Up @@ -103,21 +103,17 @@ def textual_volumes
end

def textual_group_endpoints
return unless @record.connection_configurations.hawkular
endpoints = @record.endpoints.where.not(:role => 'default')
return if endpoints.nil?

TextualGroup.new(
_("Endpoints"),
endpoint_groups = endpoints.map do |e|
[
{
:label => _('Hawkular Host Name'),
:value => @record.connection_configurations.hawkular.endpoint.hostname
},
{
:label => _('Hawkular API Port'),
:value => @record.connection_configurations.hawkular.endpoint.port
}
{:label => _("%{role} Host Name") % {:role => e.role.capitalize}, :value => e.hostname},
{:label => _("%{role} API Port") % {:role => e.role.capitalize}, :value => e.port}
]
)
end

TextualGroup.new(_("Endpoints"), endpoint_groups.flatten)
end

def textual_group_miq_custom_attributes
Expand Down