Skip to content

Commit

Permalink
chore(inputs.httpjson)!: Remove deprecated plugin (#14860)
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Feb 26, 2024
1 parent b6489e2 commit 03a6c55
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1,053 deletions.
15 changes: 6 additions & 9 deletions config/testdata/telegraf-agent.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
# Whether to report total system cpu stats or not
totalcpu = true
# Comment this line if you want the raw CPU time metrics
drop = ["cpu_time"]
fieldexclude = ["cpu_time"]

# Read metrics about disk usage by mount point
[[inputs.diskio]]
Expand Down Expand Up @@ -121,23 +121,20 @@
# servers = ["socket:/run/haproxy/admin.sock"]

# Read flattened metrics from one or more JSON HTTP endpoints
[[inputs.httpjson]]
[[inputs.http]]
# a name for the service being polled
name = "webserver_stats"
name_override = "webserver_stats"

# URL of each server in the service's cluster
servers = [
urls = [
"http://localhost:9999/stats/",
"http://localhost:9998/stats/",
]

# HTTP method to use (case-sensitive)
method = "GET"
# method = "GET"

# HTTP parameters (all values must be strings)
[httpjson.parameters]
event_type = "cpu_spike"
threshold = "0.75"
data_format = "json"

# Read metrics about disk IO by device
[[inputs.diskio]]
Expand Down
5 changes: 0 additions & 5 deletions plugins/inputs/all/httpjson.go

This file was deleted.

163 changes: 0 additions & 163 deletions plugins/inputs/httpjson/README.md

This file was deleted.

Loading

0 comments on commit 03a6c55

Please sign in to comment.