# Querying Service Status

**URL:** https://discuss.elastic.co/t/querying-service-status/209733
**Category:** Beats
**Tags:** metricbeat
**Created:** [November 27, 2019, 5:08pm UTC](https://discuss.elastic.co/t/querying-service-status/209733 "2019-11-27T17:08:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RunningSmurf](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@RunningSmurf](https://discuss.elastic.co/u/RunningSmurf)
#### Post date: [November 27, 2019, 5:08pm UTC](https://discuss.elastic.co/t/querying-service-status/209733/1 "2019-11-27T17:08:50Z")

</div>

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](https://hostname): dial tcp hostip:443 connect: connection refused

- module: http  
metricsets:
  - json  
period: 10s  
hosts: ["[https://hostname](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!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 25, 2019, 5:09pm UTC](https://discuss.elastic.co/t/querying-service-status/209733/2 "2019-12-25T17:09:11Z")

</div>

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