You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/configuration/file.md
+51-1Lines changed: 51 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ stats_host=""
72
72
73
73
If you are always querying the same host or applying the same timeframe to your queries you can setup here this values.
74
74
75
-
##data retention
75
+
##data retention
76
76
77
77
By default, data are kept indefinitely in InfluxDB. It's possible to change it to have data expiration.
78
78
@@ -85,3 +85,53 @@ This value is updated each time a import is done.
85
85
All data older than what are specified in the retention policy are not kept.
86
86
87
87
**Note:** it's the timestamp associated with data which matters. If you load data from one year ago and you have a retention policy of 30 days, you will not see the data.
88
+
89
+
## custom tags
90
+
91
+
Starting with version [2.1.0](/210_version_released), it's possible to add custom tags to your data by adding a input section in the configuration file:
92
+
93
+
```toml
94
+
[[input]]
95
+
Measurement="PartitionProcessor"
96
+
Name="partition"
97
+
Match="adxlpar"
98
+
[[input.tag]]
99
+
Name="datacenter"
100
+
Value="DC1"
101
+
```
102
+
Custom tags are added at import time.
103
+
It will add a tag named **datacenter** with value **DC1** if the tag **partition** in the measurement **PartitionProcessor** match the regular expression **adxlpar**.
104
+
105
+
Attribute's description:
106
+
107
+
***Measurement**: it's the measurement where an additional tag could be added
108
+
***Name**: name of the tag to check
109
+
***Match**: the regular expression used to check the tag value. No need to put the regular expression between '/' characters.
110
+
111
+
It's possible to add multiple tags for the same data:
112
+
113
+
114
+
```toml
115
+
[[input]]
116
+
Measurement="PartitionProcessor"
117
+
Name="partition"
118
+
Match="adxlpar"
119
+
[[input.tag]]
120
+
Name="datacenter"
121
+
Value="DC1"
122
+
[[input.tag]]
123
+
Name="group"
124
+
Value="adx"
125
+
```
126
+
127
+
If you want to match the exact name, use regular expression syntax (^ and $):
add custom tags to your data by adding a input section in the configuration file:
14
+
15
+
```toml
16
+
[[input]]
17
+
Measurement="PartitionProcessor"
18
+
Name="partition"
19
+
Match="adxlpar"
20
+
[[input.tag]]
21
+
Name="datacenter"
22
+
Value="DC1"
23
+
```
24
+
Custom tags are added at import time.
25
+
It will add a tag named **datacenter** with value **DC1** if the tag **partition** in the measurement **PartitionProcessor** match the regular expression **adxlpar**.
26
+
27
+
Attribute's description:
28
+
29
+
***Measurement**: it's the measurement where an additional tag could be added
30
+
***Name**: name of the tag to check
31
+
***Match**: the regular expression used to check the tag value. No need to put the regular expression between '/' characters.
32
+
33
+
More informations on the [configuration file page](/configuration/file/).
34
+
35
+
# enhancements
36
+
37
+
* added **serial** tag to nmon files to permit grouping by managed system.
38
+
* added information message if retention policy is set.
39
+
* added error message on configuration file syntax error.
0 commit comments