keepup-metrics 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: keepup-metrics
3
+ Version: 0.4.0
4
+ Summary: The scrape, the panel's view of the fleet and the snapshot retention.
5
+ Requires-Python: >=3.11
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: keepup-db>=0.4.0
8
+ Requires-Dist: prometheus-client>=0.24
9
+ Requires-Dist: psutil>=7.0
10
+
11
+ # keepup-metrics
12
+
13
+ The scrape, the panel's view of the fleet and the snapshot retention.
14
+
15
+ One capability of [keepup](https://github.com/FedorSergeev/keepup-admin), the framework over FastAPI for admin
16
+ panels: the base is installed as `keepup-admin` and imported as `keepup`, and
17
+ this distribution carries one part of it. It is installed on its own
18
+ (`pip install keepup-metrics`) or together with the base (`pip install "keepup-admin[panel]"`),
19
+ and it declares itself to the kernel through its
20
+ `[project.entry-points."keepup.plugins"]` entry point.
@@ -0,0 +1,10 @@
1
+ # keepup-metrics
2
+
3
+ The scrape, the panel's view of the fleet and the snapshot retention.
4
+
5
+ One capability of [keepup](https://github.com/FedorSergeev/keepup-admin), the framework over FastAPI for admin
6
+ panels: the base is installed as `keepup-admin` and imported as `keepup`, and
7
+ this distribution carries one part of it. It is installed on its own
8
+ (`pip install keepup-metrics`) or together with the base (`pip install "keepup-admin[panel]"`),
9
+ and it declares itself to the kernel through its
10
+ `[project.entry-points."keepup.plugins"]` entry point.
@@ -0,0 +1,12 @@
1
+ """The scrape, the panel's view of the fleet and the snapshot retention.
2
+
3
+ This distribution provides `metrics` and declares one plugin,
4
+ `metrics`, in the `keepup.plugins` group. It depends on `keepup-admin`
5
+ for the constructor -- the descriptor, the catalogue, the service registry and
6
+ the lifecycle -- and on nothing of another capability.
7
+
8
+ The code moves here in keepup-124: until then the plugin lives in the framework's
9
+ own `builtin/metrics.py` and this package is the home it is moving to.
10
+ """
11
+
12
+ __version__ = "0.4.0"
@@ -0,0 +1,24 @@
1
+ """The tables of the metrics capability, declared where it lives.
2
+
3
+ Task keepup-124. `keepup.schema` re-exports the snapshot table for one release, so
4
+ the path that predates the catalogue still creates it and every reader keeps
5
+ working; the declaration belongs to the capability that keeps the rows.
6
+ """
7
+
8
+ from sqlalchemy import Column, DateTime, Index, REAL, Text
9
+
10
+ from keepup_db import tables
11
+
12
+ __all__ = ["SYSTEM_METRICS"]
13
+
14
+ SYSTEM_METRICS = tables.table(
15
+ "system_metrics",
16
+ tables.auto_id(),
17
+ Column("metric_name", Text, nullable=False),
18
+ Column("metric_value", REAL, nullable=False),
19
+ Column("timestamp", DateTime, server_default=tables.NOW),
20
+ Column("app_instance", Text, server_default="main"),
21
+ Column("tags", Text),
22
+ Index("idx_metrics_timestamp", "timestamp"),
23
+ Index("idx_metrics_name", "metric_name"),
24
+ )
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: keepup-metrics
3
+ Version: 0.4.0
4
+ Summary: The scrape, the panel's view of the fleet and the snapshot retention.
5
+ Requires-Python: >=3.11
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: keepup-db>=0.4.0
8
+ Requires-Dist: prometheus-client>=0.24
9
+ Requires-Dist: psutil>=7.0
10
+
11
+ # keepup-metrics
12
+
13
+ The scrape, the panel's view of the fleet and the snapshot retention.
14
+
15
+ One capability of [keepup](https://github.com/FedorSergeev/keepup-admin), the framework over FastAPI for admin
16
+ panels: the base is installed as `keepup-admin` and imported as `keepup`, and
17
+ this distribution carries one part of it. It is installed on its own
18
+ (`pip install keepup-metrics`) or together with the base (`pip install "keepup-admin[panel]"`),
19
+ and it declares itself to the kernel through its
20
+ `[project.entry-points."keepup.plugins"]` entry point.
@@ -0,0 +1,10 @@
1
+ README.md
2
+ pyproject.toml
3
+ keepup_metrics/__init__.py
4
+ keepup_metrics/tables.py
5
+ keepup_metrics.egg-info/PKG-INFO
6
+ keepup_metrics.egg-info/SOURCES.txt
7
+ keepup_metrics.egg-info/dependency_links.txt
8
+ keepup_metrics.egg-info/entry_points.txt
9
+ keepup_metrics.egg-info/requires.txt
10
+ keepup_metrics.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [keepup.plugins]
2
+ metrics = keepup_metrics:MetricsPlugin
@@ -0,0 +1,3 @@
1
+ keepup-db>=0.4.0
2
+ prometheus-client>=0.24
3
+ psutil>=7.0
@@ -0,0 +1 @@
1
+ keepup_metrics
@@ -0,0 +1,21 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "keepup-metrics"
7
+ version = "0.4.0"
8
+ description = "The scrape, the panel's view of the fleet and the snapshot retention."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ dependencies = [
12
+ "keepup-db>=0.4.0",
13
+ "prometheus-client>=0.24",
14
+ "psutil>=7.0",
15
+ ]
16
+
17
+ [project.entry-points."keepup.plugins"]
18
+ metrics = "keepup_metrics:MetricsPlugin"
19
+
20
+ [tool.setuptools]
21
+ packages = ["keepup_metrics"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+