File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ Default is the `location` option.
62
62
- [ Return the hour of a time value] ( #return-the-hour-of-a-time-value )
63
63
- [ Return the hour of a relative duration] ( #return-the-hour-of-a-relative-duration )
64
64
- [ Return the current hour] ( #return-the-current-hour )
65
+ - [ Return the hour in localtime ] ( #return-the-hour-in-localtime )
65
66
66
67
### Return the hour of a time value
67
68
@@ -96,3 +97,11 @@ date.hour(t: now())
96
97
97
98
```
98
99
100
+ ### Return the hour in local time
101
+
102
+ ``` js
103
+ import " date"
104
+ import " timezone"
105
+
106
+ date .hour (t: r ._time , location: timezone .location (name: " Europe/Berlin" ))
107
+ ```
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ The generated file contains settings for all available plugins--some are enabled
55
55
56
56
To generate a configuration file that contains settings for only specific plugins,
57
57
use the ` --input-filter ` and ` --output-filter ` options to
58
- specify [ input plugins] ( /telegraf/v1/plugins /input_plugins )
59
- and [ output plugins] ( /telegraf/v1/plugins /output_plugins/ ) .
58
+ specify [ input plugins] ( /telegraf/v1/configure_plugins /input_plugins/ )
59
+ and [ output plugins] ( /telegraf/v1/configure_plugins /output_plugins/ ) .
60
60
Use a colon (` : ` ) to separate plugin names.
61
61
62
62
#### Syntax
Original file line number Diff line number Diff line change @@ -584,8 +584,8 @@ telegraf config > telegraf.conf
584
584
585
585
To generate a configuration file that contains settings for only specific plugins,
586
586
use the ` --input-filter` and ` --output-filter` options to
587
- specify [input plugins](/telegraf/v1/plugins /input_plugins)
588
- and [output plugins](/telegraf/v1/plugins /output_plugins/)--for example:
587
+ specify [input plugins](/telegraf/v1/configure_plugins /input_plugins/ )
588
+ and [output plugins](/telegraf/v1/configure_plugins /output_plugins/)--for example:
589
589
590
590
{{% code-placeholders " cpu|http|influxdb_v2|file" %}}
591
591
You can’t perform that action at this time.
0 commit comments