cmd

command
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Command edgecom provides a gRPC service for time series data management.

The service supports:

  • Historical data bootstrapping (up to 2 years)
  • Time series data aggregation (MIN, MAX, AVG, SUM)
  • Configurable time windows (1m, 5m, 1h, 1d)
  • TimescaleDB integration
  • Prometheus metrics
  • Rate limiting and caching

Usage:

edgecom [flags]

The flags are:

-port int
      The gRPC server port (default 8080)
-cache-size int
      Size of the LRU cache (default 1000)
-rate-limit float
      Rate limit in requests per second (default 5.0)
-rate-limit-burst int
      Maximum burst size for rate limiting (default 10)
-conn-string string
      Database connection string

Configuration:

The service uses config.yaml for additional configuration:

server:
  port: 8080
  url: "https://api.example.com/timeseries"

database:
  host: "localhost"
  port: 5432
  name: "timeseries"
  user: "postgres"
  password: "secret"
  sslmode: "disable"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL