Skip to content

Commit

Permalink
Update data-collection.md (#2554)
Browse files Browse the repository at this point in the history
* 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]>
(cherry picked from commit d23c3af)
  • Loading branch information
Xyz00777 authored and clayton-cornell committed Jan 30, 2025
1 parent a106121 commit 2e7ae8a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions docs/sources/data-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,21 @@ All newly reported data is documented in the CHANGELOG.

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

[components]: ../get-started/components
[command line flag]: ../reference/cli/run
### Opt-out of data collection with Ansible

Example:
```
- name: Install Alloy
 hosts: all
 become: true
 tasks:
   - name: Install Alloy
     ansible.builtin.include_role:
       name: grafana.grafana.alloy
     vars:
       alloy_env_file_vars:
         CUSTOM_ARGS: "--disable-reporting"
```

[components]: ../get-started/components/
[command line flag]: ../reference/cli/run/

0 comments on commit 2e7ae8a

Please sign in to comment.