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

Commit 8fa2f18

Browse files
Merge pull request #1698 from pjurczak-splunk/update-sqlquery-receiver-rst
Update sql-query-receiver.rst
2 parents afba65b + 43813a2 commit 8fa2f18

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 for a MySQL datasource using TCP
54+
----------------------------------------------------------------
55+
56+
This is an example to connect a MySQL datasource to a database through a socket with autocommit mode enabled with ``user@unix(/mysql/run/mysql.sock)/schema/autocommit=true``:
57+
58+
.. code-block:: yaml
59+
60+
receivers:
61+
sqlquery:
62+
driver: mysql
63+
datasource: "user:password@tcp(host:port)/schema"
64+
queries:
65+
- sql: "your_query"
66+
5367
Advanced configuration
5468
----------------------------------
5569

0 commit comments

Comments
 (0)