An open API service indexing awesome lists of open source software.

https://github.com/sercheo87/openliberty-grafana

See metrics on Grafana of app running on Open Libery
https://github.com/sercheo87/openliberty-grafana

docker microprofile microservice openliberty

Last synced: 3 months ago
JSON representation

See metrics on Grafana of app running on Open Libery

Awesome Lists containing this project

README

        

# openliberty-grafana

![](https://github.com/sercheo87/openliberty-grafana/workflows/app-api-say-ci/badge.svg)

This example show dashboard created for Grafana specialized for monitoring:

* Servlet
* Connection Pool
* Thread Pool
* Sessions
* System Resources
* Garbage Collections

![Grafana dashboard](images/grafana.png)

## Getting Started

For compile project execute on terminal:

```bash
cd app-api-say
mvn clean install
```

## Deployment

For create containers with app execute on terminal:

```bash
docker compose up -d --build
```

## Resources

For navigate to console Grafana dashboard:

Open Url [Grafana Console](http://localhost:3000/login)

Credentials:

* User: **_admin_**
* Password: **_P@ssw0rd_**

For create register and visualize metrics execute:

```bash
curl -H "Content-Type: application/json" -X POST http://localhost:9080/apiSay/say/sergio
curl -H "Content-Type: application/json" -X GET http://localhost:9080/apiSay/say
```

For get current metrics:

```bash
curl -X GET http://localhost:9080/metrics
```

More details on [Web Grafana](https://grafana.com/grafana/dashboards/11456)