The ARGO Mon API is part of the ARGO Monitoring Service, developed and maintained by GRNET.
It provides REST endpoints for managing tenants, projects, status pages, monitoring resources, and automation workflows, integrating with ARGO Monitoring services and data sources.
The API allows authenticated users to manage tenants, projects, status pages, groups, and monitoring configuration, while relying on Keycloak for authentication and access control.
The ARGO Mon API enables:
- Management of Status Pages (create, list, update, delete)
- Retrieval of Status Groups and Reports from ARGO Monitoring
- Configuration of Public Status Pages for external visibility
- Management of User Profiles linked with Keycloak identities
This project is a REST API built with Quarkus and Maven, following a modular architecture and the service–repository pattern.
-
api
Exposes REST endpoints for client interaction. -
dto
Defines Data Transfer Objects used between API and service layers. -
entity
Contains ORM entities representing database tables. -
enum
Contains enumeration definitions used across the API. -
exception
Defines custom exceptions used throughout the application. -
handler
Centralizes error handling and exception mapping. -
mapper
Uses MapStruct for entity-to-DTO conversions. -
repository
Provides data access logic and database queries. -
service
Contains the business logic of the API. -
util
Contains utility classes and helpers such as configuration utilities.
All protected resources require authentication through Keycloak.
Clients must include a Bearer token in each request to access restricted endpoints.
Since the API’s endpoints must only be accessible to verified clients, every client who wants to access the API must be authenticated.
Communication with protected endpoints is performed using Bearer Authentication — a token-based authentication method commonly used in HTTP APIs.
Include the access token in your HTTP requests using the Authorization header:
Authorization: Bearer {{token}}
The ARGO Mon API allows users to obtain an access token for authentication purposes.
By following these steps, users can retrieve an access token to authenticate API requests.
-
Open the Web Page
Navigate to the ARGO Mon API page. -
Locate the Access Token Button
Once the page loads, locate the button that retrieves the access token. -
Click the “Obtain an Access Token” Button
Clicking this button initiates the retrieval process from the authentication server. -
Provide Required Information
Choose your preferred identity provider and log in with your credentials. -
Retrieve the Access Token
After successful authentication, the token will appear on the page. -
Use the Access Token
Include it in your API requests as described above.
Ensure the following software is installed on your development environment:
- Java Development Kit (JDK) 17
- Apache Maven 3.9
- Docker
After cloning the repository, navigate to the root directory and execute:
mvn clean install -DskipTests=true -UThis command installs all required dependencies in your local Maven repository.
In development mode, Argo Mon API uses a locally hosted Argo Web API instead of the production service. To start the local Argo Web API instance, follow these instructions:
- Clone the ARGO Web API repository
Clone the repository and check out the devel branch:
git clone -b devel https://github.com/argoeu/argo-web-api
Clone the repository and check out the `devel` branch:
```bash
git clone -b devel https://github.com/argoeu/argo-web-api- Start the local Argo Web API using Docker Compose Run the following command to start the services:
docker compose upThe local instance of the Argo Web API will then be accessible at:
http://localhost:8843
The development environment uses Quarkus Compose Dev Services to automatically start the required Keycloak container.
Simply run:
mvn clean quarkus:devOn the first startup, Quarkus will automatically start the local Keycloak instance using the Docker Compose configuration located under:
keycloak/docker-compose.yml
No manual docker-compose up is required.
Once the services are running, Keycloak is available at:
http://localhost:58080
The API is available at:
http://localhost:8080
Note
Ensure the local Argo Web API is running before starting the API.
The application provides a welcome page containing two actions:
Redirects you to the OpenAPI/Swagger documentation where you can explore:
- The REST endpoints provided by the API.
- The endpoints exposed by the
quarkus-authextension.
Redirects you to a page that helps you obtain an access token from Keycloak for testing secured endpoints.
The following test users are pre-configured:
| Username | Password | Role |
|---|---|---|
| admin | admin | Super Administrator |
| user1 | user1 | Standard User |
| user2 | user2 | Standard User |
| user3 | user3 | Standard User |
Use these credentials to authenticate through Keycloak and test the available APIs.
To access the RCIAM group management / account console as an admin, use the following URL:
http://localhost:58080/realms/rciam/account
Login with:
- Username:
user1 - Password:
user1
⚠️ ImportantMake sure Docker is running before executing the tests.
If you have manually started a local Keycloak instance, stop it first to avoid port conflicts with Quarkus Dev Services.
Connect to the automatically started PostgreSQL instance using:
psql -h localhost -U status -d statusDefault development password:
status
Or connect directly inside the running container:
docker exec -it <container_id> psql -U status -d statusARGO Mon API depends on the quarkus-auth library, which is distributed through GitHub Packages.
Although the package is publicly available, GitHub Packages requires authentication when downloading Maven dependencies.
Create a Personal Access Token at:
https://github.com/settings/tokens
The token must include the following permission:
read:packages
If you also need access to private repositories, include:
repo
Create or edit the following file:
~/.m2/settings.xml
Add the following configuration:
<settings>
<servers>
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_GITHUB_PERSONAL_ACCESS_TOKEN</password>
</server>
</servers>
</settings>Replace YOUR_GITHUB_USERNAME and YOUR_GITHUB_PERSONAL_ACCESS_TOKEN with your GitHub credentials.
mvn clean installARGO Mon API is a service developed and maintained by GRNET.
Distributed under the Apache 2.0 License.