Skip to content

Commit 3aa29aa

Browse files
authored
Update readme explanation of facts_to_tags (DataDog#634)
1 parent 715c140 commit 3aa29aa

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,17 @@ datadog_agent::tags:
247247
- 'keyname:value'
248248
- 'anotherkey:%{factname}'
249249
```
250+
To generate tags from custom facts classify your nodes with Puppet facts as an array to the ```facts_to_tags``` paramter either through the Puppet Enterprise console or Hiera. Here is an example:
251+
252+
```conf
253+
class { "datadog_agent":
254+
api_key => "<YOUR_DD_API_KEY>",
255+
facts_to_tags => ["osfamily","networking.domain","my_custom_fact"],
256+
}
257+
```
258+
Tips:
259+
1. For structured facts index into the specific fact value otherwise the entire array will come over as a string and ultimately be difficult to use.
260+
2. Dynamic facts such as CPU usage, Uptime, and others that are expected to change each run are not ideal for tagging. Static facts that are expected to stay for the life of a node are best candidates for tagging.
250261
251262
### Configuration variables
252263

0 commit comments

Comments
 (0)