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.2.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.2-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file prescale_agent-0.2.2.tar.gz.

File metadata

  • Download URL: prescale_agent-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7e2ec6605e78fd9ff2c9fd5a507121e8f010c396859472416127cf0e812d08e8
MD5 b2b29d267746d6c712730fed4d153c22
BLAKE2b-256 8cf723f344dc46f444ccb5b436889b103bba6f7f22acde48940ae662d9022ca1

See more details on using hashes here.

Provenance

The following attestation bundles were made for prescale_agent-0.2.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: prescale_agent-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0bafbf76e64e3b3b797eeff8f796a50cc41b2047e0eaafd7af79dced184daa78
MD5 fdc3ea2532ea98c760562efb05248e21
BLAKE2b-256 02946affb04bb04ccab7841a382c906872a381fe154337e229704998b2c3da39

See more details on using hashes here.

Provenance

The following attestation bundles were made for prescale_agent-0.2.2-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