From 16e7541254d92eb7c9ab5c8ca833bb9c252cdd6c Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 11 Nov 2019 09:27:10 +0100 Subject: [PATCH] Update config docs to reference new Prometheus metrics provider. --- docs/configuration/README.md | 1 + docs/configuration/telemetry.md | 32 ++++++++++++++++++++++---------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/docs/configuration/README.md b/docs/configuration/README.md index 1cf6b20..b0cefdb 100644 --- a/docs/configuration/README.md +++ b/docs/configuration/README.md @@ -14,6 +14,7 @@ The Sherpa server can be configured by supplying either CLI flags or using envir * `--log-format` (string: "auto") - Specify the log format ("auto", "zerolog" or "human"). * `--log-level` (string: "info") - Change the level used for logging. * `--log-use-color` (bool: true) - Use ANSI colors in logging output. +* `--metric-provider-prometheus-addr` (string: "") The address of the Prometheus endpoint in the form ://:. * `--policy-engine-api-enabled` (bool: true) - Enable the Sherpa API to manage scaling policies. * `--policy-engine-nomad-meta-enabled` (bool: false) - Enable Nomad job meta lookups to manage scaling policies. * `--policy-engine-strict-checking-enabled` (bool: true) - When enabled, all scaling activities must pass through policy checks. diff --git a/docs/configuration/telemetry.md b/docs/configuration/telemetry.md index a247d34..1ff7b3c 100644 --- a/docs/configuration/telemetry.md +++ b/docs/configuration/telemetry.md @@ -278,16 +278,10 @@ Autoscale metrics allow operators to get insight into how the autoscaler is func Summary - `sherpa.autoscale.evaluation.error` - Number of autoscaling evaluation errors across all jobs - Number of errors - Counter - - - `sherpa.autoscale.{job}.evaluation.error` - Number of autoscaling evaluation errors for the job named {job} - Number of errors - Counter + `sherpa.autoscale.{job}.{group}.evaluation` + The time taken to perform the autoscaling evaluation for the job named {job} and group named {group} + Milliseconds + Summary `sherpa.autoscale.trigger.error` @@ -313,4 +307,22 @@ Autoscale metrics allow operators to get insight into how the autoscaler is func Number of successes Counter + + `sherpa.autoscale.prometheus.get_value` + The time taken to query Prometheus for a metric value + Milliseconds + Summary + + + `sherpa.autoscale.prometheus.error` + Number of errors querying Prometheus for a metric value + Number of errors + Counter + + + `sherpa.autoscale.prometheus.success` + Number of successful queries of Prometheus for a metric value + Number of successes + Counter +