June 20-22 Announcing HashiConf Europe full schedule: keynotes, sessions, labs & more Register Now
  • Overview
    • Batch Processing Workloads
    • Edge Workload Management
    • Non-Containerized Application Orchestration
    • Simple Container Orchestration
  • Enterprise
  • Tutorials
  • Docs
  • API
  • Plugins
  • Tools
  • Community
GitHub—Stars on GitHub
Download
    • Overview
      • Overview
      • apm
      • dynamic_application_sizing
      • http
      • nomad
      • policy
      • policy_eval
      • source
      • strategy
      • target
      • telemetry
    • API
    • CLI
    • Policy
    • Telemetry
      • Overview
        • Overview
        • Datadog
        • Nomad API
        • Prometheus
        • Overview
        • Dynamic Application Sizing Average
        • Dynamic Application Sizing Max
        • Dynamic Application Sizing Percentile
        • Fixed Value
        • Pass-Through
        • Target Value
        • Threshold
        • Overview
        • Amazon Web Services Autoscaling Group
        • Azure Virtual Machine Scale Set
        • Dynamic Application Sizing
        • Google Cloud Engine Managed Instance Group
        • Nomad Task Group
      • Community
      • Overview
      • Checks
      • Node Selector Strategy
        • Overview
        • Base
        • APM
        • Strategy
        • Target
Type '/' to Search

»Base Plugin

The base plugin is an interface required of all autoscaler plugins, providing a set of common operations.

»Plugin API

»PluginInfo() (*PluginInfo, error)

A PluginInfo contains metadata about the plugin. For example, the Prometheus APM plugin returns the following;

PluginInfo{
    // Name of the plugin
    Name: "prometheus",
    // Plugin type: "apm", "strategy", or "target"
    PluginType: "apm"
}
PluginInfo{
    // Name of the plugin
    Name: "prometheus",
    // Plugin type: "apm", "strategy", or "target"
    PluginType: "apm"
}

»SetConfig(config map[string]string) error

The SetConfig function is called when starting an instance of the plugin. It contains the configuration for a named instance of the plugin as provided in the autoscaler agent config.

github logoEdit this page
DocsAPIResourcesPrivacySecurityPress KitConsent Manager