Skip to content

Commit 5ea3f65

Browse files
committed
doc: tempo toolset, explain how to get datasource idf
1 parent 0577e2f commit 5ea3f65

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

docs/configuration/holmesgpt/toolsets/grafanatempo.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,41 @@ You can find the Grafana URL required for Loki and Tempo in your Grafana cloud a
2424
:width: 600
2525
:align: center
2626

27+
Obtaining the datasource UID
28+
-----------------------
29+
30+
You may have multiple Tempo data sources setup in Grafana. HolmesGPT uses a single Tempo datasource to
31+
fetch the logs and it needs to know the UID of this datasource.
32+
33+
A simple way to get the datasource UID is to access the Grafana API by running the following request:
34+
35+
.. code-block:: bash
36+
# port forward if you are using Robusta's grafana from your kubernetes cluster
37+
kubectl port-forward svc/robusta-grafana 3000:80
38+
# List the Tempo data sources
39+
curl -s -u <username>:<password> http://localhost:3000/api/datasources | jq '.[] | select(.type == "tempo")'
40+
{
41+
"id": 3,
42+
"uid": "klja8hsa-8a9c-4b35-1230-7baab22b02ee",
43+
"orgId": 1,
44+
"name": "Tempo",
45+
"type": "tempo",
46+
"typeName": "Tempo",
47+
"typeLogoUrl": "/public/app/plugins/datasource/tempo/img/tempo_icon.svg",
48+
"access": "proxy",
49+
"url": "http://tempo-query-frontend.tempo:3100",
50+
"user": "",
51+
"database": "",
52+
"basicAuth": false,
53+
"isDefault": false,
54+
"jsonData": {
55+
"tlsSkipVerify": true
56+
},
57+
"readOnly": false
58+
}
59+
# In this case, there is a single Tempo datasourceUID
60+
# with UID "klja8hsa-8a9c-4b35-1230-7baab22b02ee"
61+
2762
Configuration
2863
^^^^^^^^^^^^^
2964

0 commit comments

Comments
 (0)