diff --git a/gdi/opentelemetry/components/sqlquery-receiver.rst b/gdi/opentelemetry/components/sqlquery-receiver.rst index b1f39c1b0..6c7dbe567 100644 --- a/gdi/opentelemetry/components/sqlquery-receiver.rst +++ b/gdi/opentelemetry/components/sqlquery-receiver.rst @@ -50,6 +50,20 @@ Next, include the receiver in the ``metrics`` pipeline of the ``service`` sectio See :ref:`sql-query-receiver-queries-example` for a complete config example. +Sample configuration for a MySQL datasource using TCP +---------------------------------------------------------------- + +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``: + +.. code-block:: yaml + + receivers: + sqlquery: + driver: mysql + datasource: "user:password@tcp(host:port)/schema" + queries: + - sql: "your_query" + Advanced configuration ----------------------------------