You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/holmesgpt/toolsets/prometheus.rst
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Configuration
24
24
prometheus/metrics:
25
25
enabled: true
26
26
config:
27
-
prometheus_url: http://<prometheus host>:9090
27
+
prometheus_url: http://<prometheus host>:9090# e.g. http://robusta-kube-prometheus-st-prometheus.default.svc.cluster.local:9090
28
28
headers:
29
29
Authorization: "Basic <base_64_encoded_string>"
30
30
@@ -41,7 +41,7 @@ Configuration
41
41
prometheus/metrics:
42
42
enabled: true
43
43
config:
44
-
prometheus_url: http://<prometheus host>:9090
44
+
prometheus_url: http://<prometheus host>:9090# e.g. http://robusta-kube-prometheus-st-prometheus.default.svc.cluster.local:9090
45
45
headers:
46
46
Authorization: "Basic <base_64_encoded_string>"
47
47
@@ -78,13 +78,11 @@ Below is the full list of options for this toolset:
78
78
79
79
The best way to find the prometheus URL is to use "ask holmes". This only works if your cluster is live and already connected to Robusta.
80
80
81
-
If not, follow these steps:
81
+
If not, you can often find the prometheus URL by running the following command (several results may be shown - pick the best match):
82
82
83
-
1. Run ``kubectl get services -n <monitoring-namespace>`` to list all services. Replace ``<monitoring-namespace>`` with the namespace where Prometheus is deployed. This is often ``monitoring`` or ``prometheus``. You can also run ``kubectl get services -A`` which will list all services in all namespaces.
84
-
2. Identify which are the namespace and name of your Prometheus service. You can set up port forwarding to test if the service is correct and if Prometheus is reachable.
85
-
3. Run ``kubectl describe service <service-name> -n <namespace>`` to get details about the service, including the cluster IP and port.
86
-
4. Set the DNS or the cluster IP as well as the port to the configuration field ``prometheus_url`` as mentioned above.
0 commit comments