Querying Service Status

Hello,

I want to monitor that a service is up and running, using the HTTP module of MetricBeat, using the hostname and port for that service. It finds the host IP, but I keep getting the following error:

error making http request: Get https://hostname: dial tcp hostip:443 connect: connection refused

  • module: http
    metricsets:
    • json
      period: 10s
      hosts: ["https://hostname"]
      namespace: "json_namespace"
      port: "8077"
      path: "/"
      ssl.verification_mode: none
      method: "GET"
      headers:
      API_KEY: "keyvalue"
      json.is_array: true

I have tried a multitude of variations, but no luck. Could you advise? Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.