Skip to content

Commit

Permalink
Update http_response.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
arch3754 authored Feb 7, 2024
1 parent 3e8b931 commit 251b325
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions conf/input.http_response/http_response.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

[[instances]]
targets = [
# "http://localhost",
# "https://www.baidu.com"
# "http://localhost",
# "https://www.baidu.com"
]

## append some labels for series
Expand All @@ -18,8 +18,7 @@ targets = [
## interval = global.interval * interval_times
# interval_times = 1

## Set http_proxy (categraf uses the system wide proxy settings if it's is not set)
# http_proxy = "http://localhost:8888"


## Interface to use when dialing an address
# interface = "eth0"
Expand All @@ -38,7 +37,7 @@ targets = [
# password = "pa$$word"

## Optional headers
# headers = ["Header-Key-1", "Header-Value-1", "Header-Key-2", "Header-Value-2"]
# headers = { "Accept-Encoding" = "Gzip" }

## Optional HTTP Request Body
# body = '''
Expand All @@ -56,10 +55,16 @@ targets = [
# expect_response_status_code = 0
# expect_response_status_codes = "200|301"

## Set http conn remote addr
# http_remote_addr = "10.10.10.10:80"

## Optional TLS Config
# use_tls = false
# use_tls = true
## Set https conn remote addr(required use_tls)
# tls_remote_addr = "10.10.10.10:443"
# tls_ca = "/etc/categraf/ca.pem"
# tls_cert = "/etc/categraf/cert.pem"
# tls_key = "/etc/categraf/key.pem"
# tls_server_name = "www.baidu.com"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false

0 comments on commit 251b325

Please sign in to comment.