Skip to content

Commit

Permalink
Add a feature to get docker stats via API
Browse files Browse the repository at this point in the history
Display docker stats information in the monitoring page
  • Loading branch information
dormant-user committed Sep 16, 2024
1 parent 8d25964 commit b180170
Show file tree
Hide file tree
Showing 12 changed files with 255 additions and 84 deletions.
6 changes: 3 additions & 3 deletions doc_gen/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Authenticator
=============
.. automodule:: pyninja.auth

Routers
=======
Routes
======

.. automodule:: pyninja.routers
.. automodule:: pyninja.routes

Monitors
========
Expand Down
6 changes: 3 additions & 3 deletions docs/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Authenticator
=============
.. automodule:: pyninja.auth

Routers
=======
Routes
======

.. automodule:: pyninja.routers
.. automodule:: pyninja.routes

Monitors
========
Expand Down
44 changes: 25 additions & 19 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h2 id="D">D</h2>
</li>
<li><a href="index.html#pyninja.models.DiskLib">DiskLib (class in pyninja.models)</a>
</li>
<li><a href="index.html#pyninja.routers.docs">docs() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.docs">docs() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.squire.dynamic_numbers">dynamic_numbers() (in module pyninja.squire)</a>
</li>
Expand Down Expand Up @@ -206,55 +206,61 @@ <h2 id="G">G</h2>
</li>
<li><a href="index.html#pyninja.dockerized.get_all_containers">get_all_containers() (in module pyninja.dockerized)</a>
</li>
<li><a href="index.html#pyninja.routers.get_all_disks">get_all_disks() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_all_disks">get_all_disks() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.dockerized.get_all_images">get_all_images() (in module pyninja.dockerized)</a>
</li>
<li><a href="index.html#pyninja.routers.get_all_routes">get_all_routes() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_all_routes">get_all_routes() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.dockerized.get_all_volumes">get_all_volumes() (in module pyninja.dockerized)</a>
</li>
<li><a href="index.html#pyninja.dockerized.get_container_status">get_container_status() (in module pyninja.dockerized)</a>
</li>
<li><a href="index.html#pyninja.routers.get_cpu_load_avg">get_cpu_load_avg() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_cpu_load_avg">get_cpu_load_avg() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.routers.get_cpu_utilization">get_cpu_utilization() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_cpu_utilization">get_cpu_utilization() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.main.get_desc">get_desc() (in module pyninja.main)</a>
</li>
<li><a href="index.html#pyninja.routers.get_disk_utilization">get_disk_utilization() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_disk_utilization">get_disk_utilization() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.routers.get_docker_containers">get_docker_containers() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_docker_containers">get_docker_containers() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.routers.get_docker_images">get_docker_images() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_docker_images">get_docker_images() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.routes.get_docker_stats">get_docker_stats() (in module pyninja.routes)</a>

<ul>
<li><a href="index.html#pyninja.squire.get_docker_stats">(in module pyninja.squire)</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pyninja.routers.get_docker_volumes">get_docker_volumes() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_docker_volumes">get_docker_volumes() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.monitor.config.get_expiry">get_expiry() (in module pyninja.monitor.config)</a>
</li>
<li><a href="index.html#pyninja.routers.get_ip_address">get_ip_address() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_ip_address">get_ip_address() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.models.get_library">get_library() (in module pyninja.models)</a>
</li>
<li><a href="index.html#pyninja.routers.get_memory_utilization">get_memory_utilization() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_memory_utilization">get_memory_utilization() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.process.get_performance">get_performance() (in module pyninja.process)</a>
</li>
<li><a href="index.html#pyninja.process.get_process_status">get_process_status() (in module pyninja.process)</a>

<ul>
<li><a href="index.html#pyninja.routers.get_process_status">(in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_process_status">(in module pyninja.routes)</a>
</li>
</ul></li>
<li><a href="index.html#pyninja.routers.get_processor_name">get_processor_name() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_processor_name">get_processor_name() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.database.get_record">get_record() (in module pyninja.database)</a>
</li>
<li><a href="index.html#pyninja.dockerized.get_running_containers">get_running_containers() (in module pyninja.dockerized)</a>
</li>
<li><a href="index.html#pyninja.routers.get_service_status">get_service_status() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.get_service_status">get_service_status() (in module pyninja.routes)</a>

<ul>
<li><a href="index.html#pyninja.service.get_service_status">(in module pyninja.service)</a>
Expand All @@ -268,7 +274,7 @@ <h2 id="H">H</h2>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="index.html#pyninja.auth.handle_auth_error">handle_auth_error() (in module pyninja.auth)</a>
</li>
<li><a href="index.html#pyninja.routers.health">health() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.health">health() (in module pyninja.routes)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
Expand Down Expand Up @@ -374,7 +380,7 @@ <h2 id="M">M</h2>
</li>
<li><a href="index.html#module-pyninja.rate_limit">pyninja.rate_limit</a>
</li>
<li><a href="index.html#module-pyninja.routers">pyninja.routers</a>
<li><a href="index.html#module-pyninja.routes">pyninja.routes</a>
</li>
<li><a href="index.html#module-pyninja.service">pyninja.service</a>
</li>
Expand Down Expand Up @@ -512,10 +518,10 @@ <h2 id="P">P</h2>
</li>
</ul></li>
<li>
pyninja.routers
pyninja.routes

<ul>
<li><a href="index.html#module-pyninja.routers">module</a>
<li><a href="index.html#module-pyninja.routes">module</a>
</li>
</ul></li>
<li>
Expand Down Expand Up @@ -562,7 +568,7 @@ <h2 id="R">R</h2>
</li>
<li><a href="index.html#pyninja.models.Session.rps">rps (pyninja.models.Session attribute)</a>
</li>
<li><a href="index.html#pyninja.routers.run_command">run_command() (in module pyninja.routers)</a>
<li><a href="index.html#pyninja.routes.run_command">run_command() (in module pyninja.routes)</a>
</li>
<li><a href="index.html#pyninja.service.running">running() (in module pyninja.service)</a>
</li>
Expand Down
Loading

0 comments on commit b180170

Please sign in to comment.