Skip to content

Latest commit

 

History

288 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsphere Observability

Microsphere Projects for Observability

Ask DeepWiki Maven Build Codecov Maven License

Microsphere Observability is a comprehensive suite of tools designed to enhance the monitoring, metrics collection, and logging capabilities of Java applications, with a primary focus on the Spring Boot ecosystem. It provides specialized integrations for Micrometer, Prometheus, Log4j2, and Alibaba Sentinel, alongside custom metrics for system-level resources like CGroups and network statistics.

Modules

Root and Parent POMs

Bill of Materials (BOM)

  • Module: microsphere-observability-dependencies
  • Purpose: Provides a single point of import for consumers. It defines the dependencyManagement section for all internal modules (logging, micrometer, prometheus, etc.), ensuring that users do not need to specify versions for individual microsphere artifacts

Functional Sub-Modules

Module Name Responsibility
microsphere-observability-logging Core logging abstractions and dynamic layouts. Includes LoggerUtils for lambda-based logging.
microsphere-observability-metrics-commons Foundational metrics types and definitions.
microsphere-observability-metrics-alibaba-sentinel Sentinel-specific metrics logic and constants.
microsphere-observability-metrics-micrometer Custom MeterBinder implementations including Sentinel, JDBC (P6Spy), and System metrics.
microsphere-observability-metrics-prometheus Bridges Sentinel and other metrics to Prometheus format via custom Collectors.

Getting Started

The easiest way to get started is by adding the Microsphere Observability BOM (Bill of Materials) to your project's pom.xml:

<dependencyManagement>
    <dependencies>
        ...
        <!-- Microsphere Observability Dependencies -->
        <dependency>
            <groupId>io.github.microsphere-projects</groupId>
            <artifactId>microsphere-observability-dependencies</artifactId>
            <version>${microsphere-observability.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
        ...
    </dependencies>
</dependencyManagement>

${microsphere-observability.version} has two branches:

Branches Purpose Latest Version
main Compatible with Spring Cloud 2022.0.x - 2025.0.x 0.2.0
1.x Compatible with Spring Cloud Hoxton - 2021.0.x 0.1.0

Building from Source

You don't need to build from source unless you want to try out the latest code or contribute to the project.

To build the project, follow these steps:

  1. Clone the repository:
git clone https://github.com/microsphere-projects/microsphere-observability.git
  1. Build the source:
  • Linux/MacOS:
./mvnw package
  • Windows:
mvnw.cmd package

Contributing

We welcome your contributions! Please read Code of Conduct before submitting a pull request.

Reporting Issues

  • Before you log a bug, please search the issues to see if someone has already reported the problem.
  • If the issue doesn't already exist, create a new issue.
  • Please provide as much information as possible with the issue report.

Documentation

User Guide

DeepWiki Host

Wiki

Github Host

JavaDoc

License

The Microsphere Spring is released under the Apache License 2.0.

About

The microsphere projects for observability

Topics

Resources

Code of conduct

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages