Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(inputs.httpjson)!: Remove deprecated plugin #14860

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 6 additions & 23 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 All @@ -154,20 +151,6 @@
## Offset (must be either "oldest" or "newest")
offset = "oldest"

# read metrics from a Kafka legacy topic
[[inputs.kafka_consumer_legacy]]
## topic(s) to consume
topics = ["telegraf"]
# an array of Zookeeper connection strings
zookeeper_peers = ["localhost:2181"]
## the name of the consumer group
consumer_group = "telegraf_metrics_consumers"
# Maximum number of points to buffer between collection intervals
point_buffer = 100000
## Offset (must be either "oldest" or "newest")
offset = "oldest"


# Read metrics from a LeoFS Server via SNMP
[[inputs.leofs]]
# An array of URI to gather stats about LeoFS.
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
Loading