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-platform-agent
# With specific backends
pip install prescale-platform-agent[gcp] # + GCP Cloud Monitoring
pip install prescale-platform-agent[aws] # + AWS CloudWatch
pip install prescale-platform-agent[azure] # + Azure Monitor
pip install prescale-platform-agent[datadog] # + Datadog
pip install prescale-platform-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
prescale_agent-0.2.0.tar.gz
(25.6 kB
view details)
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.0.tar.gz.
File metadata
- Download URL: prescale_agent-0.2.0.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
059df33d3a092fb7fca5cd534d6a354be41280241f8bf12903a8c8192596d703
|
|
| MD5 |
52e1d6f4f5404d6172b2a9a9a0cb9b23
|
|
| BLAKE2b-256 |
4ac88867d861670497e07d316218dccb6bd4a870caf52821f91a4a03a260d457
|
File details
Details for the file prescale_agent-0.2.0-py3-none-any.whl.
File metadata
- Download URL: prescale_agent-0.2.0-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e606402b148bfebc2d6d38c3866a840c276a6fbd35a7292041d158dd5d8f139e
|
|
| MD5 |
e89419f8f6400715e5086abcfbcf21ca
|
|
| BLAKE2b-256 |
43673fef2b4c9946d0506d9c099ccfe37b450053ee8f70ff45961cb74b428305
|