Giter Site home page Giter Site logo

easeprod start error about easeprobe HOT 6 CLOSED

megaease avatar megaease commented on May 20, 2024
easeprod start error

from easeprobe.

Comments (6)

haoel avatar haoel commented on May 20, 2024

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.

hongery avatar hongery commented on May 20, 2024

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.

haoel avatar haoel commented on May 20, 2024

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.

hongery avatar hongery commented on May 20, 2024

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.

haoel avatar haoel commented on May 20, 2024

for the data.yaml, you need to wait a while... the default is 60s.

from easeprobe.

haoel avatar haoel commented on May 20, 2024

@hongery can you confirm the result of this issue? and do you have any further issues or concerns?

from easeprobe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.