forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add source tag to hddtemp plugin (influxdata#5955)
- Loading branch information
1 parent
7f9e3a2
commit 02e6bf3
Showing
3 changed files
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,41 @@ | ||
# Hddtemp Input Plugin | ||
# HDDtemp Input Plugin | ||
|
||
This plugin reads data from hddtemp daemon | ||
This plugin reads data from hddtemp daemon. | ||
|
||
## Requirements | ||
Hddtemp should be installed and its daemon running. | ||
|
||
Hddtemp should be installed and its daemon running | ||
|
||
## Configuration | ||
### Configuration | ||
|
||
```toml | ||
[[inputs.hddtemp]] | ||
## By default, telegraf gathers temps data from all disks detected by the | ||
## hddtemp. | ||
## | ||
## Only collect temps from the selected disks. | ||
## | ||
## A * as the device name will return the temperature values of all disks. | ||
## | ||
# address = "127.0.0.1:7634" | ||
# devices = ["sda", "*"] | ||
## By default, telegraf gathers temps data from all disks detected by the | ||
## hddtemp. | ||
## | ||
## Only collect temps from the selected disks. | ||
## | ||
## A * as the device name will return the temperature values of all disks. | ||
## | ||
# address = "127.0.0.1:7634" | ||
# devices = ["sda", "*"] | ||
``` | ||
|
||
## Measurements | ||
### Metrics | ||
|
||
- hddtemp | ||
- temperature | ||
|
||
Tags: | ||
- device | ||
- model | ||
- unit | ||
- status | ||
|
||
- tags: | ||
- device | ||
- model | ||
- unit | ||
- status | ||
- source | ||
- fields: | ||
- temperature | ||
|
||
|
||
## Example output | ||
### Example output | ||
|
||
``` | ||
> hddtemp,unit=C,status=,host=server1,device=sdb,model=WDC\ WD740GD-00FLA1 temperature=43i 1481655647000000000 | ||
> hddtemp,device=sdc,model=SAMSUNG\ HD103UI,unit=C,status=,host=server1 temperature=38i 148165564700000000 | ||
> hddtemp,device=sdd,model=SAMSUNG\ HD103UI,unit=C,status=,host=server1 temperature=36i 1481655647000000000 | ||
hddtemp,source=server1,unit=C,status=,device=sdb,model=WDC\ WD740GD-00FLA1 temperature=43i 1481655647000000000 | ||
hddtemp,device=sdc,model=SAMSUNG\ HD103UI,unit=C,source=server1,status= temperature=38i 148165564700000000 | ||
hddtemp,device=sdd,model=SAMSUNG\ HD103UI,unit=C,source=server1,status= temperature=36i 1481655647000000000 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters