fix(inputs.internet_speed): Rename host tag to source (#12877)
This commit is contained in:
parent
ba880e7aee
commit
84d1bdf73c
|
|
@ -62,11 +62,11 @@ And the following tags:
|
||||||
|
|
||||||
| Name | tag name |
|
| Name | tag name |
|
||||||
| --------- | --------- |
|
| --------- | --------- |
|
||||||
| Host | host |
|
| Source | source |
|
||||||
| Server ID | server_id |
|
| Server ID | server_id |
|
||||||
|
|
||||||
## Example Output
|
## Example Output
|
||||||
|
|
||||||
```sh
|
```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
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ func (is *InternetSpeed) Gather(acc telegraf.Accumulator) error {
|
||||||
}
|
}
|
||||||
tags := map[string]string{
|
tags := map[string]string{
|
||||||
"server_id": is.server.ID,
|
"server_id": is.server.ID,
|
||||||
"host": is.server.Host,
|
"source": is.server.Host,
|
||||||
}
|
}
|
||||||
// recycle the detailed data of each test to prevent data backlog
|
// recycle the detailed data of each test to prevent data backlog
|
||||||
is.server.Context.Reset()
|
is.server.Context.Reset()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue