How to change route subdomain URL for openshift-monitoring components on OCP3?

Solution Verified - Updated -

Issue

  • How to change the default route subdomain URL of alertmanager-main, grafana and prometheus-k8s?
$ oc get route                                                                                                                                                                                                          
NAME                HOST/PORT                                                            PATH      SERVICES            PORT      TERMINATION   WILDCARD
alertmanager-main   alertmanager-main-openshift-monitoring.apps.host1.example.com             alertmanager-main   web       reencrypt     None
grafana             grafana-openshift-monitoring.apps.host1.example.com             grafana             https     reencrypt     None
prometheus-k8s      prometheus-k8s-openshift-monitoring.apps.host1.example.com                prometheus-k8s      web       reencrypt     None

Environment

  • Red Hat Openshift Container Platform(OCP) v3.11
  • Grafana
  • Prometheus
  • alertmanager

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content