Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 579ccc9

Browse files
Update sql-query-receiver.rst
1 parent 5c070bf commit 579ccc9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

gdi/opentelemetry/components/sqlquery-receiver.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,20 @@ Next, include the receiver in the ``metrics`` pipeline of the ``service`` sectio
5050
5151
See :ref:`sql-query-receiver-queries-example` for a complete config example.
5252

53+
Sample configuration following MySQL datasource format using tcp
54+
----------------------------------------------------------------
55+
56+
.. code-block:: yaml
57+
58+
receivers:
59+
sqlquery:
60+
driver: mysql
61+
datasource: "user:password@tcp(host:port)/schema"
62+
queries:
63+
- sql: "your_query"
64+
65+
Example of MySQL datasource to connect to database through socket with autocommit mode enabled ``user@unix(/mysql/run/mysql.sock)/schema/autocommit=true``
66+
5367
Advanced configuration
5468
----------------------------------
5569

0 commit comments

Comments
 (0)