Skip to content

Commit 48e7e2f

Browse files
committed
Grafana cloud docs for tempo and loki
1 parent b3ee7d3 commit 48e7e2f

6 files changed

Lines changed: 95 additions & 56 deletions

File tree

docs/configuration/holmesgpt/toolsets/grafanaloki.rst

Lines changed: 49 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,37 +42,57 @@ fetch the logs and it needs to know the UID of this datasource.
4242

4343
A simple way to get the datasource UID is to access the Grafana API by running the following request:
4444

45-
.. code-block:: bash
4645

47-
# port forward if you are using Robusta's grafana from your kubernetes cluster
48-
kubectl port-forward svc/robusta-grafana 3000:80
49-
50-
# List the loki data sources
51-
curl -s -u <username>:<password> http://localhost:3000/api/datasources | jq '.[] | select(.type == "loki")'
52-
{
53-
"id": 2,
54-
"uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee",
55-
"orgId": 1,
56-
"name": "Loki-kubernetes",
57-
"type": "loki",
58-
"typeName": "Loki",
59-
"typeLogoUrl": "/public/app/plugins/datasource/loki/img/loki_icon.svg",
60-
"access": "proxy",
61-
"url": "http://loki.loki:3100",
62-
"user": "",
63-
"database": "",
64-
"basicAuth": false,
65-
"isDefault": false,
66-
"jsonData": {
67-
"httpHeaderName1": "admin",
68-
"httpHeaderName2": "X-Scope-OrgID",
69-
"tlsSkipVerify": true
70-
},
71-
"readOnly": false
72-
}
73-
# In this case, there is a single Loki datasourceUID
74-
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
46+
.. md-tab-set::
7547

48+
.. md-tab-item:: Self Hosted
49+
50+
.. code-block:: bash
51+
52+
# port forward if you are using Robusta's grafana from your kubernetes cluster
53+
kubectl port-forward svc/robusta-grafana 3000:80
54+
55+
# List the loki data sources
56+
curl -s -u <username>:<password> http://localhost:3000/api/datasources | jq '.[] | select(.type == "loki")'
57+
{
58+
"id": 2,
59+
"uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee",
60+
"orgId": 1,
61+
"name": "Loki-kubernetes",
62+
"type": "loki",
63+
"typeName": "Loki",
64+
"typeLogoUrl": "/public/app/plugins/datasource/loki/img/loki_icon.svg",
65+
"access": "proxy",
66+
"url": "http://loki.loki:3100",
67+
"user": "",
68+
"database": "",
69+
"basicAuth": false,
70+
"isDefault": false,
71+
"jsonData": {
72+
"httpHeaderName1": "admin",
73+
"httpHeaderName2": "X-Scope-OrgID",
74+
"tlsSkipVerify": true
75+
},
76+
"readOnly": false
77+
}
78+
# In this case, there is a single Loki datasourceUID
79+
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
80+
81+
82+
83+
.. md-tab-item:: Grafana Cloud
84+
85+
Choose the datasource you want to use for logs and click on it.
86+
87+
.. image:: /images/grafana-loki-holmes-uid1.png
88+
:width: 600
89+
:align: center
90+
91+
The part of the URL after ``edit/`` is the UID.
92+
93+
.. image:: /images/grafana-loki-holmes-uid2.png
94+
:width: 600
95+
:align: center
7696

7797
Configuration
7898
^^^^^^^^^^^^^

docs/configuration/holmesgpt/toolsets/grafanatempo.rst

Lines changed: 46 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,52 @@ fetch the traces and it needs to know the UID of this datasource.
3232

3333
A simple way to get the datasource UID is to access the Grafana API by running the following request:
3434

35-
.. code-block:: bash
36-
37-
# port forward if you are using Robusta's grafana from your kubernetes cluster
38-
kubectl port-forward svc/robusta-grafana 3000:80
39-
# List the Tempo data sources
40-
curl -s -u <username>:<password> http://localhost:3000/api/datasources | jq '.[] | select(.type == "tempo")'
41-
{
42-
"id": 3,
43-
"uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee",
44-
"orgId": 1,
45-
"name": "Tempo",
46-
"type": "tempo",
47-
"typeName": "Tempo",
48-
"typeLogoUrl": "/public/app/plugins/datasource/tempo/img/tempo_icon.svg",
49-
"access": "proxy",
50-
"url": "http://tempo-query-frontend.tempo:3100",
51-
"user": "",
52-
"database": "",
53-
"basicAuth": false,
54-
"isDefault": false,
55-
"jsonData": {
56-
"tlsSkipVerify": true
57-
},
58-
"readOnly": false
59-
}
60-
# In this case, there is a single Tempo datasourceUID
61-
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
35+
.. md-tab-set::
36+
37+
.. md-tab-item:: Self Hosted Tempo
38+
39+
.. code-block:: bash
40+
41+
# port forward if you are using Robusta's grafana from your kubernetes cluster
42+
kubectl port-forward svc/robusta-grafana 3000:80
43+
# List the Tempo data sources
44+
curl -s -u <username>:<password> http://localhost:3000/api/datasources | jq '.[] | select(.type == "tempo")'
45+
{
46+
"id": 3,
47+
"uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee",
48+
"orgId": 1,
49+
"name": "Tempo",
50+
"type": "tempo",
51+
"typeName": "Tempo",
52+
"typeLogoUrl": "/public/app/plugins/datasource/tempo/img/tempo_icon.svg",
53+
"access": "proxy",
54+
"url": "http://tempo-query-frontend.tempo:3100",
55+
"user": "",
56+
"database": "",
57+
"basicAuth": false,
58+
"isDefault": false,
59+
"jsonData": {
60+
"tlsSkipVerify": true
61+
},
62+
"readOnly": false
63+
}
64+
# In this case, there is a single Tempo datasourceUID
65+
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
66+
67+
.. md-tab-item:: Grafana Cloud
68+
69+
Choose the datasource you want to use for Tempo traces and click on it.
70+
71+
.. image :: /images/grafana-tempo-holmes-uid1.png
72+
:width: 600
73+
:align: center
74+
75+
The part of the URL after ``edit/`` is the UID.
76+
77+
.. image :: /images/grafana-tempo-holmes-uid2.png
78+
:width: 600
79+
:align: center
80+
6281
6382
Configuration
6483
^^^^^^^^^^^^^
301 KB
Loading
248 KB
Loading
164 KB
Loading
212 KB
Loading

0 commit comments

Comments
 (0)