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
By enabling this toolset, HolmesGPT will be able to query logs from `Loki <https://grafana.com/oss/loki/>`_
6
+
By enabling this toolset, HolmesGPT will fetch node and pods logs from `Loki <https://grafana.com/oss/loki/>`_
5
7
by proxying through a `Grafana <https://grafana.com/oss/grafana/>`_ instance.
6
8
7
-
After this toolset is enabled, you can ask Holmes questions like: *Look at my cluster with kubectl, pick an arbitrary node, then fetch logs from loki for that node. Summarize all problems you find.*
9
+
You **should** enable this toolset to replace the default :ref:`kubernetes/logs <toolset_kubernetes_logs>`
10
+
toolset if all your kubernetes/pod logs are consolidated inside Loki. It will make it easier for HolmesGPT
11
+
to fetch incident logs, including the ability to precisely consult past logs.
8
12
9
13
Prerequisites
10
14
^^^^^^^^^^^^^
15
+
11
16
A `Grafana service account token <https://grafana.com/docs/grafana/latest/administration/service-accounts/>`_
12
17
with the following permissions:
13
18
@@ -19,48 +24,80 @@ Check out this `video <https://www.loom.com/share/f969ab3af509444693802254ab0407
19
24
Getting Grafana URL
20
25
-----------------------
21
26
22
-
You can find the Grafana URL required for Loki and Tempo in your Grafana cloud account settings.
27
+
You can find the Grafana URL required for Loki in your Grafana cloud account settings.
23
28
24
29
.. image:: /images/grafana-url-for-holmes.png
25
30
:width:600
26
31
:align:center
27
32
33
+
34
+
Obtaining the datasource UID
35
+
-----------------------
36
+
37
+
You may have multiple Loki data sources setup in Grafana. HolmesGPT uses a single Loki datasource to
38
+
fetch the logs and it needs to know the UID of this datasource.
39
+
40
+
A simple way to get the datasource UID is to access the Grafana API by running the following request:
41
+
42
+
.. code-block:: bash
43
+
44
+
# port forward if you are using Robusta's grafana from your kubernetes cluster
0 commit comments