Skip to main content

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


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.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prescale_agent-0.2.1-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

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

Hashes for prescale_agent-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c48c17232bf0f08849cc3edb8b299122b7e262e64826691963b178fb8568871a
MD5 6b8d1d4b7ce9f60ad2a9b8189fb2a220
BLAKE2b-256 8aac4148b992d5bc140e6085714e3ef5ece843a25c6dc38e78f12417ca5283d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for prescale_agent-0.2.1.tar.gz:

Publisher: publish-agent.yml on pyjeebz/PreScale

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for prescale_agent-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 232f44d732fb051223f63d62e172b4f3d23a69877090e194a7c590707566f4c8
MD5 257d9f1c4622e3fc2c51f2e259f94d87
BLAKE2b-256 37ae4418601c2eeabf7697df86e579ada7595997a3c88082f8a55e97a0da0def

See more details on using hashes here.

Provenance

The following attestation bundles were made for prescale_agent-0.2.1-py3-none-any.whl:

Publisher: publish-agent.yml on pyjeebz/PreScale

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page