All Projects → zalando → failsafe-actuator

zalando / failsafe-actuator

Licence: MIT License
Endpoint library for the failsafe framework

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to failsafe-actuator

speedy
Test, track, monitor and analyze your internet speed.
Stars: ✭ 35 (-32.69%)
Mutual labels:  monitor
audria
audria - A Utility for Detailed Ressource Inspection of Applications
Stars: ✭ 35 (-32.69%)
Mutual labels:  monitor
clj-http-hystrix
A Clojure library to wrap clj-http requests as hystrix commands
Stars: ✭ 21 (-59.62%)
Mutual labels:  circuit-breaker
dubbox
dubbox原始版本的升级版,主要根据GitHub各路大神代码的整合
Stars: ✭ 13 (-75%)
Mutual labels:  monitor
mix-agent
基于rust语言开发的一套运维监控探针,支持widnows、linux、macos系统
Stars: ✭ 14 (-73.08%)
Mutual labels:  monitor
performance monitor
Monitor Linux system
Stars: ✭ 30 (-42.31%)
Mutual labels:  monitor
vaper
Take a look at the relations among servers.
Stars: ✭ 16 (-69.23%)
Mutual labels:  monitor
Net-Mon
Get notified for new devices on your network
Stars: ✭ 22 (-57.69%)
Mutual labels:  monitor
dde-istate-menus
a dde-dock plugin which aims to implement most features of Istat menus(macOS) for Deepin V20
Stars: ✭ 30 (-42.31%)
Mutual labels:  monitor
host-stat-go
Go module for collecting host stat
Stars: ✭ 28 (-46.15%)
Mutual labels:  monitor
swarm-monitor
Monitor a Docker Swarm with Blinkt! LED
Stars: ✭ 48 (-7.69%)
Mutual labels:  monitor
system-monitor
Qt based replacement for gnome system monitor
Stars: ✭ 16 (-69.23%)
Mutual labels:  monitor
spring-cloud-circuitbreaker-demo
Samples demonstrating how to using Spring Cloud Circuitbreaker
Stars: ✭ 43 (-17.31%)
Mutual labels:  circuit-breaker
bundlemon
Monitor your bundle size
Stars: ✭ 53 (+1.92%)
Mutual labels:  monitor
winddcutil
Windows implementation of the ddcutil Linux program for querying and changing monitor settings, such as brightness and color levels.
Stars: ✭ 39 (-25%)
Mutual labels:  monitor
Intercept-netkeeper-account
截取NetKeeper拨号时的真实账号,截获到的账号可以用于路由器、电脑等的pppoe拨号,可用4.9及其以下版本的NetKeeper
Stars: ✭ 57 (+9.62%)
Mutual labels:  monitor
laravel-circuit-breaker
An implementation of the circuit breaker pattern for Laravel 5.6
Stars: ✭ 26 (-50%)
Mutual labels:  circuit-breaker
pyhystrix
Hystrix brought to Python
Stars: ✭ 21 (-59.62%)
Mutual labels:  circuit-breaker
pm2-server-monitor
The monitor for pm2 node.js servers, with nice web UI.
Stars: ✭ 34 (-34.62%)
Mutual labels:  monitor
monitor system docs
No description or website provided.
Stars: ✭ 30 (-42.31%)
Mutual labels:  monitor

Codacy Badge Build Status Maven Central

Failsafe Actuator

Failsafe Actuator is a Java library that provides a simple monitoring interface for Spring Boot applications that use the Failsafe library. Using Failsafe Actuator will readily expose the state of your Circuit Breakers (closed, open, half-open) to your Spring Actuator endpoint without additional effort.

Core Technical Concepts/Inspiration

Failsafe Actuator supports Spring's dependency injection to make it easier to use Failsafe. It allows you to monitor the state of your Circuit Breakers so that, whenever a third party that your app relies upon suddenly becomes unavailable, you can discover it immediately and take action. This is essential for applications used in production.

Development Status/Project Roadmap

This library is currently under development and used in production at Zalando.

Find more details about our development plans in the Issues Tracker.

We're always looking for contributors, so if you find an interesting "Help Wanted" issue then please drop us a line in the related issue to claim it and begin working.

Unless you explicitly state otherwise in advance, any non trivial contribution intentionally submitted for inclusion in this project by you to the steward of this repository (Zalando SE, Berlin) shall be under the terms and conditions of the MIT License, without any additional copyright information, terms or conditions.

Getting Started

Dependencies/Requirements

Running/Using

To use Failsafe Actuator, add the following dependency to your project:

Gradle:

compile("org.zalando:failsafe-actuator:${FAILSAFE-ACTUATOR-VERSION}")

Maven:

<dependency>
    <groupId>org.zalando</groupId>
    <artifactId>failsafe-actuator</artifactId>
    <version>${failsafe-actuator.version}</version>
</dependency>

Create your CircuitBreaker by defining them as a Bean.

@Configuration
public class CircuitBreakerConfiguration {
  @Bean
  public CircuitBreaker myBreaker() {
    return new CircuitBreaker();
  }
}

You can use and configure the created CircuitBreaker by autowiring it in the class where it should be used.

@Component
public class MyBean {
    @Autowired
    private CircuitBreaker myBreaker;
}

That's it. By calling the endpoint via http://${yourAddress}/actuator/circuitbreakers. you will get a response which looks like the following:

GET /actuator/circuitbreakers

HTTP/1.1 200
Content-Type: application/json

{
  "myBreaker": {
    "state": "OPEN"
  },
  "otherBreaker": {
    "state": "CLOSED"
  }
}

Individual circuit breakers can be requested via /acutuator/circuitbreakers/{name}:

GET /actuator/circuitbreakers/myBreaker

HTTP/1.1 200
Content-Type: application/json

{
  "state": "OPEN"
}

You can even modify the circuit breaker state and manually open or close them:

POST /actuator/circuitbreakers/myBreaker
Content-Type: application/json

{
  "state": "CLOSED"
}

Example usage

To see a complete example on how to use the library take a look at the Sample Application. It starts a Rest Controller that shows how to autowire CircuitBreaker into your application and configure them.

How to build on your own

In order to build the JAR on your own run the following command:

mvn clean install

License

This code is released under the MIT license. See License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].