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
This is the recommended approach because we intend to add more capabilities to the toolset that are only available with Grafana.
21
+
16
22
Prerequisites
17
-
^^^^^^^^^^^^^
23
+
-------------
18
24
19
25
A `Grafana service account token <https://grafana.com/docs/grafana/latest/administration/service-accounts/>`_
20
26
with the following permissions:
@@ -24,8 +30,7 @@ with the following permissions:
24
30
25
31
Check out this `video <https://www.loom.com/share/f969ab3af509444693802254ab040791?sid=aa8b3c65-2696-4f69-ae47-bb96e8e03c47>`_ on creating a Grafana service account token.
26
32
27
-
Getting Grafana URL
28
-
-----------------------
33
+
**Getting Grafana URL**
29
34
30
35
You can find the Grafana URL required for Loki in your Grafana cloud account settings.
31
36
@@ -34,8 +39,7 @@ You can find the Grafana URL required for Loki in your Grafana cloud account set
34
39
:align:center
35
40
36
41
37
-
Obtaining the datasource UID
38
-
-----------------------------------
42
+
**Obtaining the datasource UID**
39
43
40
44
You may have multiple Loki data sources setup in Grafana. HolmesGPT uses a single Loki datasource to
41
45
fetch the logs and it needs to know the UID of this datasource.
@@ -74,8 +78,8 @@ A simple way to get the datasource UID is to access the Grafana API by running t
74
78
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
75
79
76
80
77
-
Configuration
78
-
^^^^^^^^^^^^^
81
+
Configuration (grafana proxy)
82
+
-----------------------------
79
83
80
84
81
85
.. md-tab-set::
@@ -92,9 +96,6 @@ Configuration
92
96
api_key: <your grafana API key>
93
97
url: https://xxxxxxx.grafana.net # Your Grafana cloud account URL
94
98
grafana_datasource_uid: <the UID of the loki data source in Grafana>
By enabling this toolset, HolmesGPT will be able to fetch trace information from Grafana
6
6
Tempo to debug performance related issues, like high latency in your application.
7
7
8
+
Proxying through Grafana
9
+
^^^^^^^^^^^^^^^^^^^^^^^^
10
+
11
+
This is the recommended approach because we intend to add more capabilities to the toolset that are only available with Grafana.
12
+
8
13
Prerequisites
9
-
^^^^^^^^^^^^^
14
+
-------------
15
+
10
16
A `Grafana service account token <https://grafana.com/docs/grafana/latest/administration/service-accounts/>`_
11
17
with the following permissions:
12
18
@@ -15,17 +21,15 @@ with the following permissions:
15
21
16
22
Check out this `video <https://www.loom.com/share/f969ab3af509444693802254ab040791?sid=aa8b3c65-2696-4f69-ae47-bb96e8e03c47>`_ on creating a Grafana service account token.
17
23
18
-
Getting Grafana URL
19
-
-----------------------
24
+
**Getting Grafana URL**
20
25
21
26
You can find the Grafana URL required for Tempo in your Grafana cloud account settings.
22
27
23
28
.. image:: /images/grafana-url-for-holmes.png
24
29
:width:600
25
30
:align:center
26
31
27
-
Obtaining the datasource UID
28
-
--------------------------------
32
+
**Obtaining the datasource UID**
29
33
30
34
You may have multiple Tempo data sources setup in Grafana. HolmesGPT uses a single Tempo datasource to
31
35
fetch the traces and it needs to know the UID of this datasource.
@@ -60,8 +64,8 @@ A simple way to get the datasource UID is to access the Grafana API by running t
60
64
# In this case, there is a single Tempo datasourceUID
61
65
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
62
66
63
-
Configuration
64
-
^^^^^^^^^^^^^
67
+
Configuration (grafana proxy)
68
+
-----------------------------
65
69
66
70
.. md-tab-set::
67
71
@@ -96,28 +100,113 @@ Configuration
96
100
grafana/tempo:
97
101
enabled: true
98
102
config:
99
-
api_key: <your grafana service account token>
100
-
url: <your grafana url> # e.g. https://acme-corp.grafana.net
101
-
grafana_datasource_uid: <the UID of the tempo data source in Grafana>
102
-
labels:
103
-
pod: "k8s.pod.name"
104
-
namespace: "k8s.namespace.name"
105
-
deployment: "k8s.deployment.name"
106
-
node: "k8s.node.name"
107
-
service: "service.name"
103
+
api_key: <your grafana service account token>
104
+
url: <your grafana url> # e.g. https://acme-corp.grafana.net
105
+
grafana_datasource_uid: <the UID of the tempo data source in Grafana>
108
106
109
107
To test, run:
110
108
111
109
.. code-block:: yaml
112
110
113
111
holmes ask "The payments DB is very slow, check tempo for any trace data"
114
112
113
+
Direct connection
114
+
^^^^^^^^^^^^^^^^^
115
+
116
+
The toolset can directly connect to a Tempo instance without proxying through a Grafana instance.
117
+
This is done by not setting the ``grafana_datasource_uid`` field. Not setting this field makes HolmesGPT
118
+
assume that it is directly connecting to Tempo.
119
+
120
+
Configuration (direct connection)
121
+
---------------------------------
122
+
123
+
.. md-tab-set::
124
+
125
+
.. md-tab-item:: Robusta Helm Chat
126
+
127
+
.. code-block:: yaml
128
+
129
+
holmes:
130
+
toolsets:
131
+
grafana/tempo:
132
+
enabled: true
133
+
config:
134
+
url: http://tempo.monitoring
135
+
headers:
136
+
X-Scope-OrgID: "<tenant id>"# Set the X-Scope-OrgID if tempo multitenancy is enabled
0 commit comments