@@ -624,59 +624,6 @@ $ oc adm diagnostics MetricsApiProxy
624624----
625625
626626
627- [[deploying-hawkular-openshift-agent]]
628- == Deploying the Hawkular OpenShift Agent
629-
630- [NOTE]
631- ====
632- The Hawkular OpenShift Agent is currently in Technology Preview.
633- ====
634-
635- The link:https://github.com/hawkular/hawkular-openshift-agent[Hawkular OpenShift
636- Agent] can be used to gather application metrics from pods running within the
637- {product-title} cluster. These metrics can then be viewed from the console or
638- accessed via the Hawkular Metrics REST API.
639-
640- In order for these metrics to be gathered, your pod needs to expose a Prometheus
641- or Jolokia endpoint and create a special ConfigMap, which defines where the
642- metric endpoint is located and how the metrics should be gathered. More
643- information can be found under the
644- link:https://github.com/hawkular/hawkular-openshift-agent[Hawkular OpenShift
645- Agent documentation].
646-
647- The agent runs as a daemon set in your cluster and is deployed to the `default`
648- project. By deploying to the `default` project, the agent continues to monitor
649- all your pods even if the `ovs_multitenant` plug-in is enabled.
650-
651- To deploy the agent, you will need to gather two configuration files:
652- ifdef::openshift-origin[]
653- ----
654- $ wget https://raw.githubusercontent.com/openshift/origin-metrics/enterprise/hawkular-openshift-agent/hawkular-openshift-agent-configmap.yaml
655- $ wget https://raw.githubusercontent.com/openshift/origin-metrics/enterprise/hawkular-openshift-agent/hawkular-openshift-agent.yaml
656- ----
657- endif::[]
658- ifdef::openshift-enterprise[]
659- ----
660- $ wget https://github.com/openshift/origin-metrics/blob/enterprise/hawkular-openshift-agent/hawkular-openshift-agent-configmap.yaml
661- $ wget https://github.com/openshift/origin-metrics/blob/enterprise/hawkular-openshift-agent/hawkular-openshift-agent.yaml
662- ----
663- endif::[]
664-
665- To set up and deploy the agent into your {product-title} cluster, run:
666- ----
667- $ oc create -f hawkular-openshift-agent-configmap.yaml -n default
668- $ oc process -f hawkular-openshift-agent.yaml | oc create -n default -f -
669- $ oc adm policy add-cluster-role-to-user hawkular-openshift-agent system:serviceaccount:default:hawkular-openshift-agent
670- ----
671-
672- [[Undeploying-the-hawkular-openshift-agent]]
673- === Undeploying the Hawkular OpenShift Agent
674-
675- To undeploy the Hawkular Metrics Agent, run:
676- ----
677- $ oc delete all,secrets,sa,templates,configmaps,daemonsets,clusterroles --selector=metrics-infra=agent -n default
678- ----
679-
680627[[install-setting-the-metrics-public-url]]
681628== Setting the Metrics Public URL
682629
0 commit comments