Metrics collection agent for Prescale - Predictive Infrastructure Intelligence Platform
Project description
Prescale Agent
Metrics collection agent for Prescale - Predictive Infrastructure Intelligence Platform.
Installation
# Base installation (system metrics + Prometheus)
pip install prescale-agent
# With specific backends
pip install prescale-agent[gcp] # + GCP Cloud Monitoring
pip install prescale-agent[aws] # + AWS CloudWatch
pip install prescale-agent[azure] # + Azure Monitor
pip install prescale-agent[datadog] # + Datadog
pip install prescale-agent[all] # All backends
Quick Start
# Generate configuration file
prescale-agent init
# List available metric sources
prescale-agent sources
# Test configured sources
prescale-agent test
# Run the agent
prescale-agent run --config prescale-agent.yaml
Configuration
Create a prescale-agent.yaml file:
agent:
collection_interval: 60
log_level: INFO
sources:
# System metrics (always available)
- type: system
enabled: true
config:
collect_cpu: true
collect_memory: true
# GCP Cloud Monitoring
- type: gcp-monitoring
enabled: true
config:
project_id: your-gcp-project
metrics:
- kubernetes.io/container/cpu/limit_utilization
- kubernetes.io/container/memory/limit_utilization
# Prometheus
- type: prometheus
enabled: false
config:
url: http://prometheus:9090
queries:
- name: cpu_usage
query: rate(container_cpu_usage_seconds_total[5m])
prescale:
endpoint: http://prescale-inference:8080
Supported Sources
| Source | Description | Extra Install |
|---|---|---|
system |
Local CPU, memory, disk via psutil | Built-in |
prometheus |
Query Prometheus server | Built-in |
gcp-monitoring |
GCP Cloud Monitoring | [gcp] |
cloudwatch |
AWS CloudWatch | [aws] |
azure-monitor |
Azure Monitor | [azure] |
datadog |
Datadog API | [datadog] |
CLI Commands
prescale-agent init # Generate config file
prescale-agent run # Start collecting metrics
prescale-agent run --once # Single collection (testing)
prescale-agent run --deployment my-deployment # Associate with deployment
prescale-agent sources # List available sources
prescale-agent test # Test source connections
prescale-agent status # Show agent status
Environment Variables
| Variable | Description |
|---|---|
PRESCALE_CONFIG_FILE |
Path to config file (default: ./prescale-agent.yaml) |
PRESCALE_ENDPOINT |
Prescale inference endpoint |
PRESCALE_API_KEY |
API key for authentication |
License
Apache 2.0 - See LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prescale_agent-0.2.1.tar.gz.
File metadata
- Download URL: prescale_agent-0.2.1.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c48c17232bf0f08849cc3edb8b299122b7e262e64826691963b178fb8568871a
|
|
| MD5 |
6b8d1d4b7ce9f60ad2a9b8189fb2a220
|
|
| BLAKE2b-256 |
8aac4148b992d5bc140e6085714e3ef5ece843a25c6dc38e78f12417ca5283d1
|
Provenance
The following attestation bundles were made for prescale_agent-0.2.1.tar.gz:
Publisher:
publish-agent.yml on pyjeebz/PreScale
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prescale_agent-0.2.1.tar.gz -
Subject digest:
c48c17232bf0f08849cc3edb8b299122b7e262e64826691963b178fb8568871a - Sigstore transparency entry: 1048177904
- Sigstore integration time:
-
Permalink:
pyjeebz/PreScale@2e765978e23fe101fb4ccfa30f52f4eeb5f3421a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pyjeebz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-agent.yml@2e765978e23fe101fb4ccfa30f52f4eeb5f3421a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prescale_agent-0.2.1-py3-none-any.whl.
File metadata
- Download URL: prescale_agent-0.2.1-py3-none-any.whl
- Upload date:
- Size: 30.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
232f44d732fb051223f63d62e172b4f3d23a69877090e194a7c590707566f4c8
|
|
| MD5 |
257d9f1c4622e3fc2c51f2e259f94d87
|
|
| BLAKE2b-256 |
37ae4418601c2eeabf7697df86e579ada7595997a3c88082f8a55e97a0da0def
|
Provenance
The following attestation bundles were made for prescale_agent-0.2.1-py3-none-any.whl:
Publisher:
publish-agent.yml on pyjeebz/PreScale
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prescale_agent-0.2.1-py3-none-any.whl -
Subject digest:
232f44d732fb051223f63d62e172b4f3d23a69877090e194a7c590707566f4c8 - Sigstore transparency entry: 1048177999
- Sigstore integration time:
-
Permalink:
pyjeebz/PreScale@2e765978e23fe101fb4ccfa30f52f4eeb5f3421a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pyjeebz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-agent.yml@2e765978e23fe101fb4ccfa30f52f4eeb5f3421a -
Trigger Event:
workflow_dispatch
-
Statement type: