Skip to content

Commit d23c3af

Browse files
Update data-collection.md (#2554)
* Update data-collection.md To clarify how to disable the data collection with the ansible installation of alloy based on my request because it wasn't clear how to disable it. grafana/grafana-ansible-collection#313 * Apply suggestions from code review Co-authored-by: Clayton Cornell <[email protected]> * Update docs/sources/data-collection.md --------- Co-authored-by: Clayton Cornell <[email protected]>
1 parent d899658 commit d23c3af

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/sources/data-collection.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,21 @@ All newly reported data is documented in the CHANGELOG.
3131

3232
You can use the `--disable-reporting` [command line flag][] to disable the reporting and opt-out of the data collection.
3333

34+
### Opt-out of data collection with Ansible
35+
36+
Example:
37+
```
38+
- name: Install Alloy
39+
 hosts: all
40+
 become: true
41+
 tasks:
42+
   - name: Install Alloy
43+
     ansible.builtin.include_role:
44+
       name: grafana.grafana.alloy
45+
     vars:
46+
       alloy_env_file_vars:
47+
         CUSTOM_ARGS: "--disable-reporting"
48+
```
49+
3450
[components]: ../get-started/components/
3551
[command line flag]: ../reference/cli/run/

0 commit comments

Comments
 (0)