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

Commit 3716c1f

Browse files
Activate resource attributes
1 parent 8745687 commit 3716c1f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

gdi/opentelemetry/components/mssql-server-receiver.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,28 @@ If you're using a named instance on Windows, you need to specify a computer and
7373
sqlserver.instance.name:
7474
enabled: true
7575
76+
Enable resource attributes
77+
--------------------------------------------
78+
79+
Some resource attributes, such as ``sqlserver.instance.name``, are disabled by default.
80+
81+
To enable them, specify the option in your config file:
82+
83+
.. code:: yaml
84+
85+
receivers:
86+
sqlserver:
87+
collection_interval: 10s
88+
sqlserver/1:
89+
collection_interval: 5s
90+
username: sa
91+
password: securepassword
92+
server: 0.0.0.0
93+
port: 1433
94+
resource_attributes:
95+
sqlserver.instance.name:
96+
enabled: true
97+
7698
Advanced configuration
7799
--------------------------------------------
78100

0 commit comments

Comments
 (0)