fix(inputs.internet_speed): Rename host tag to source (#12877)

This commit is contained in:
Joshua Powers 2023-03-15 08:22:38 -06:00 committed by GitHub
parent ba880e7aee
commit 84d1bdf73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -62,11 +62,11 @@ And the following tags:
| Name | tag name |
| --------- | --------- |
| Host | host |
| Source | source |
| Server ID | server_id |
## Example Output
```sh
internet_speed,host=speedtest02.z4internet.com:8080,server_id=54619 download=318.37580265897725,upload=30.444407341274385,latency=37.73174,jitter=1.99810 1675458921000000000
internet_speed,source=speedtest02.z4internet.com:8080,server_id=54619 download=318.37580265897725,upload=30.444407341274385,latency=37.73174,jitter=1.99810 1675458921000000000
```

View File

@ -78,7 +78,7 @@ func (is *InternetSpeed) Gather(acc telegraf.Accumulator) error {
}
tags := map[string]string{
"server_id": is.server.ID,
"host": is.server.Host,
"source": is.server.Host,
}
// recycle the detailed data of each test to prevent data backlog
is.server.Context.Reset()