Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sql-query-receiver.rst #1698

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions gdi/opentelemetry/components/sqlquery-receiver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------------

Expand Down
Loading