Its4Nik / dockstatapi

Really simple API to query multiple docker hosts and provide all stats as json
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

ToDo for next release: #16

Open Its4Nik opened 1 week ago

Its4Nik commented 1 week ago

Summary of Changes and Enhancements

  1. Code Structure Refactor:

    • Modularization: Split functionality into separate files for better organization and maintainability, including creating distinct routes for different functionalities.
  2. Configuration Management:

    • Implemented a dockerConfig.json file to manage the configuration of multiple Docker hosts dynamically, allowing for easy updates and customizations.
  3. Logging Integration:

    • Added a logging mechanism to track requests and errors throughout the application, providing insights into API interactions and error handling.
  4. API Endpoints:

    • Created several new endpoints:
      • /api/hosts/stats: Fetches statistics for all available Docker hosts.
      • /api/containers: Lists all containers for a specified host.
    • Expanded the functionality of the /api/containers endpoint.
Its4Nik commented 1 week ago

image

Its4Nik commented 1 week ago

image

Its4Nik commented 1 week ago