github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/tools/autoscaling/agent/apm.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: apm Stanza - Nomad Autoscaler Agent Configuration
     4  description: >-
     5    The "apm" block is used to configure application performance metric (APM) plugins.
     6  ---
     7  
     8  # `apm` Block
     9  
    10  <Placement groups={['apm']} />
    11  
    12  The `apm` block is used to configure application performance metric (APM) plugins.
    13  
    14  ```hcl
    15  apm "example-apm-plugin" {
    16    driver = "example-apm-plugin"
    17    args   = ["-my-flag"]
    18  
    19    config = {
    20      address = "http://127.0.0.1:9090"
    21    }
    22  }
    23  ```
    24  
    25  ## `apm` Parameters
    26  
    27  - `args` `(array<string>: [])` - Specifies a set of arguments to pass to the
    28    plugin binary when it is executed.
    29  
    30  - `driver` `(string: "")` - The plugin's executable name relative to the
    31    [`plugin_dir`][plugin_dir]. If the plugin has a suffix, such as .exe, this
    32    should be omitted.
    33  
    34  - `config` `(map<string><string>: nil)` - Specifies configuration values for
    35    the plugin either as HCL or JSON. The accepted values are plugin specific.
    36    Please refer to the individual plugin's documentation.
    37  
    38  [plugin_dir]: /tools/autoscaling/agent#plugin_dir