rename plugin net_response and nvidia_smi
This commit is contained in:
parent
6ff022ce9d
commit
a917949603
|
@ -25,9 +25,10 @@ import (
|
||||||
_ "flashcat.cloud/categraf/inputs/mem"
|
_ "flashcat.cloud/categraf/inputs/mem"
|
||||||
_ "flashcat.cloud/categraf/inputs/mysql"
|
_ "flashcat.cloud/categraf/inputs/mysql"
|
||||||
_ "flashcat.cloud/categraf/inputs/net"
|
_ "flashcat.cloud/categraf/inputs/net"
|
||||||
_ "flashcat.cloud/categraf/inputs/netresponse"
|
_ "flashcat.cloud/categraf/inputs/net_response"
|
||||||
_ "flashcat.cloud/categraf/inputs/netstat"
|
_ "flashcat.cloud/categraf/inputs/netstat"
|
||||||
_ "flashcat.cloud/categraf/inputs/ntp"
|
_ "flashcat.cloud/categraf/inputs/ntp"
|
||||||
|
_ "flashcat.cloud/categraf/inputs/nvidia_smi"
|
||||||
_ "flashcat.cloud/categraf/inputs/oracle"
|
_ "flashcat.cloud/categraf/inputs/oracle"
|
||||||
_ "flashcat.cloud/categraf/inputs/ping"
|
_ "flashcat.cloud/categraf/inputs/ping"
|
||||||
_ "flashcat.cloud/categraf/inputs/processes"
|
_ "flashcat.cloud/categraf/inputs/processes"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"severity": 2,
|
"severity": 2,
|
||||||
"disabled": 0,
|
"disabled": 0,
|
||||||
"prom_for_duration": 60,
|
"prom_for_duration": 60,
|
||||||
"prom_ql": "netresponse_result_code != 0",
|
"prom_ql": "net_response_result_code != 0",
|
||||||
"prom_eval_interval": 15,
|
"prom_eval_interval": 15,
|
||||||
"enable_stime": "00:00",
|
"enable_stime": "00:00",
|
||||||
"enable_etime": "23:59",
|
"enable_etime": "23:59",
|
|
@ -0,0 +1,19 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "TCP探测",
|
||||||
|
"tags": "",
|
||||||
|
"configs": "",
|
||||||
|
"chart_groups": [
|
||||||
|
{
|
||||||
|
"name": "Default chart group",
|
||||||
|
"weight": 0,
|
||||||
|
"charts": [
|
||||||
|
{
|
||||||
|
"configs": "{\"targets\":[{\"refId\":\"A\",\"expr\":\"max(net_response_result_code) by (target)\",\"legend\":\"UP?\"},{\"expr\":\"max(net_response_response_time) by (target)\",\"refId\":\"C\",\"legend\":\"latency(s)\"}],\"name\":\"Targets\",\"custom\":{\"showHeader\":true,\"calc\":\"lastNotNull\",\"displayMode\":\"labelValuesToRows\",\"aggrDimension\":\"target\"},\"options\":{\"valueMappings\":[],\"standardOptions\":{}},\"overrides\":[{\"properties\":{\"valueMappings\":[{\"type\":\"special\",\"match\":{\"special\":0},\"result\":{\"text\":\"UP\",\"color\":\"#417505\"}},{\"type\":\"range\",\"match\":{\"special\":1,\"from\":1},\"result\":{\"text\":\"DOWN\",\"color\":\"#e90f0f\"}}],\"standardOptions\":{}},\"matcher\":{\"value\":\"A\"}}],\"version\":\"2.0.0\",\"type\":\"table\",\"layout\":{\"h\":4,\"w\":24,\"x\":0,\"y\":0,\"i\":\"0\"}}",
|
||||||
|
"weight": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
|
@ -1,4 +1,4 @@
|
||||||
package netresponse
|
package net_response
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
@ -19,7 +19,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
inputName = "netresponse"
|
inputName = "net_response"
|
||||||
|
|
||||||
Success uint64 = 0
|
Success uint64 = 0
|
||||||
Timeout uint64 = 1
|
Timeout uint64 = 1
|
|
@ -1,19 +0,0 @@
|
||||||
[
|
|
||||||
{
|
|
||||||
"name": "TCP探测",
|
|
||||||
"tags": "",
|
|
||||||
"configs": "",
|
|
||||||
"chart_groups": [
|
|
||||||
{
|
|
||||||
"name": "Default chart group",
|
|
||||||
"weight": 0,
|
|
||||||
"charts": [
|
|
||||||
{
|
|
||||||
"configs": "{\"targets\":[{\"refId\":\"A\",\"expr\":\"max(netresponse_result_code) by (target)\",\"legend\":\"UP?\"},{\"expr\":\"max(netresponse_response_time) by (target)\",\"refId\":\"C\",\"legend\":\"latency(s)\"}],\"name\":\"Targets\",\"custom\":{\"showHeader\":true,\"calc\":\"lastNotNull\",\"displayMode\":\"labelValuesToRows\",\"aggrDimension\":\"target\"},\"options\":{\"valueMappings\":[],\"standardOptions\":{}},\"overrides\":[{\"properties\":{\"valueMappings\":[{\"type\":\"special\",\"match\":{\"special\":0},\"result\":{\"text\":\"UP\",\"color\":\"#417505\"}},{\"type\":\"range\",\"match\":{\"special\":1,\"from\":1},\"result\":{\"text\":\"DOWN\",\"color\":\"#e90f0f\"}}],\"standardOptions\":{}},\"matcher\":{\"value\":\"A\"}}],\"version\":\"2.0.0\",\"type\":\"table\",\"layout\":{\"h\":4,\"w\":24,\"x\":0,\"y\":0,\"i\":\"0\"}}",
|
|
||||||
"weight": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
// This is a fork of https://github.com/utkuozdemir/nvidia_gpu_exporter
|
// This is a fork of https://github.com/utkuozdemir/nvidia_gpu_exporter
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
|
@ -1,4 +1,4 @@
|
||||||
package nvidiasmi
|
package nvidia_smi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"regexp"
|
"regexp"
|
Loading…
Reference in New Issue