Comments (6)
as the error message mentioned, you need to configure a notification.
try the following configuration
http:
- name: test
url: http://xxxx.com
notify:
log:
- name: "log file"
file: "/tmp/easeprobe"
from easeprobe.
why test successed, status no value
test:
name: test
endpoint: http://10.61.101.65:8000
time: 2022-07-05T04:30:40.567928992Z
timestamp: 1656995440567
rtt: 0s
status: init
prestatus: init
message: Good Configuration!
latestdowntime: 0001-01-01T00:00:00Z
recoverytime: 0s
stat:
since: 2022-07-05T04:22:05.631087089Z
total: 0
status: {}
uptime: 0s
downtime: 0s
timeformat: 2006-01-02 15:04:05 UTC
/opt # curl -I http://10.61.101.65:8000
HTTP/1.1 404 Not Found
Content-Type: text/plain
Date: Tue, 05 Jul 2022 04:33:53 GMT
Content-Length: 18
from easeprobe.
404 considering is good. the default valid status code is [0-499], if you need to customize it you can configure:
http:
- name : test
url: http://10.61.101.65:8000
success_code:
- [200,206] # the code >=200 and <= 206
- [300,308] # the code >=300 and <= 308
Please read the readme for more information:
https://github.com/megaease/easeprobe#31-http-probe-configuration
from easeprobe.
still status no value
data.yaml
---
name: EaseProbe
version: v1.7.0
---
test:
name: test
endpoint: http://10.61.101.65:8000/accounts
time: 2022-07-05T06:08:59.725688132Z
timestamp: 0
rtt: 0s
status: init
prestatus: init
message: Good Configuration!
latestdowntime: 0001-01-01T00:00:00Z
recoverytime: 0s
stat:
since: 2022-07-05T06:08:59.725688175Z
total: 0
status: {}
uptime: 0s
downtime: 0s
timeformat: 2006-01-02 15:04:05 UTC
config.yaml
http:
# Some of the Software support the HTTP Query
- name: test
method: GET
url: http://10.61.101.65:8000/accounts
#content_encoding: text/json
success_code:
- [200,502]
timeout: 10s # default is 30 seconds
notify:
# dry: true # Global settings for dry run
retry: # Global settings for retry
times: 5
interval: 10s
log:
- name: "log file"
file: "/tmp/easeprobe"
http request
2022/07/05 14:11:32 Reporting span 36f22974c7f82fd4:36f22974c7f82fd4:0000000000000000:1
[GIN] 2022/07/05 - 14:11:32 | 200 | 240.566µs | 172.17.0.4 | GET "/accounts"
but request url:http://localhost:8181 can find http status code
from easeprobe.
for the data.yaml, you need to wait a while... the default is 60s.
from easeprobe.
@hongery can you confirm the result of this issue? and do you have any further issues or concerns?
from easeprobe.
Related Issues (20)
- Native Postgresql connection without ssl enabled HOT 3
- 用户手册 tls 示例的错误 HOT 1
- 该项目的一个xss漏洞
- How to support multiple configuration files HOT 2
- Adding a helm repository returns 404 HOT 8
- Specify the name for container port 8181 HOT 4
- Introduce repeatable alert HOT 2
- Questions about the Channel example in the user manual title 4 HOT 3
- Questions about using the unified disable symbol HOT 10
- how to custom dingtalk message template? HOT 4
- 听闻噩耗... HOT 4
- Telegram SLA Notification "message is too long" HOT 3
- update the email address HOT 4
- tls cert expiration not working as expect when visit url redirected HOT 4
- How can I add labels to the metrics? HOT 16
- Is it possible not to send the report? HOT 8
- Add constant labels for Prometheus metrics
- Send notification to generic or custom url HOT 4
- Does host probe support user and password authentication? HOT 4
- Using the increase() function on the Prometheus metric EaseProbe_client_kafka_total returns 0 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easeprobe.