GithubHelp home page GithubHelp logo

Uptime percentage about gatus HOT 8 CLOSED

twin avatar twin commented on May 23, 2024
Uptime percentage

from gatus.

Comments (8)

TwiN avatar TwiN commented on May 23, 2024 1

Released part of this feature in v1.11.0

For now, the API returns the uptime percentage of each services, which was the initial request. As I've also previously mentioned, I decided to add support for uptime badges.

In the future, I will also probably add the average response on the UI, but I haven't gotten around to it yet.

from gatus.

TwiN avatar TwiN commented on May 23, 2024

When you say "get it", do you mean as in have the percentage exposed through an API for other applications to consume, or do you mean as in have it displayed on the dashboard?

I've been thinking of adding something like a "more information" modal that could display similar information at some point.

from gatus.

camilonova avatar camilonova commented on May 23, 2024

Having the percentage exposed through the API. Something like:
image

from gatus.

TwiN avatar TwiN commented on May 23, 2024

I can see this being useful.
Would it be per service, overall, or both?

from gatus.

TwiN avatar TwiN commented on May 23, 2024

FYI, I got a bit inspired yesterday and decided to start working on this.

I also decided to implement dynamic uptime badges.

The first version will likely come out today, but the uptime is not displayed on the dashboard yet, so it will only be available through the API and through the badges.

from gatus.

TwiN avatar TwiN commented on May 23, 2024

Sneak peak:
Uptime 1h
Uptime 24h
Uptime 7d

I just pushed the first version I talked about earlier in master, so this is currently only available in the twinproduction/gatus:latest.

As for your original question, the uptime is now exposed through the API (/api/v1/statuses):

{
  "core_twinnation - article 43": {
    "name": "twinnation - article 43",
    "group": "core",
    "results": ["omitted for brevity"],
    "uptime": {
      "7d": 1,
      "24h": 1,
      "1h": 1
    }
}

@camilonova While it's not displayed on the frontend yet, does this satisfy your initial request (to expose the uptime through the API)?

from gatus.

progressify avatar progressify commented on May 23, 2024

Having the percentage exposed through the API. Something like:
image

statping like xD

from gatus.

camilonova avatar camilonova commented on May 23, 2024

Thank you

from gatus.

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.