Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

The user can declare an allowed upper/lower deviation from the target value #14

Closed
mtneug opened this issue Nov 27, 2016 · 0 comments
Closed

Comments

@mtneug
Copy link
Owner

mtneug commented Nov 27, 2016

Description

Instead of a single target value users might want to specify a range. This can be done by upper and lower target deviation values. Users can specify these as absolute or percentage values. If no values are provided no deviation is allowed.

Design

Users can specify upper and lower deviations from the target through the de.mtneug.spate.metrics.<key>.target.deviation.upper and de.mtneug.spate.metrics.<key>.target.deviation.lower labels. Both are either unsigned 64-bit integers or percentage values. A percentage is an unsigned integer between 0 and 100 followed by a % sign.

Example

$ docker service create \
   --name service \
   --label de.mtneug.spate.metrics.cpu.type=cpu \
   --label de.mtneug.spate.metrics.cpu.target=0.8 \
   --label de.mtneug.spate.metrics.cpu.target.deviation.lower=10% \
   --label de.mtneug.spate.metrics.cpu.target.deviation.upper=0.1 \
   ...
   my/service
@mtneug mtneug changed the title The user can declare an allowed upper/lower deviation from the target The user can declare an allowed upper/lower deviation from the target value Nov 27, 2016
@mtneug mtneug modified the milestone: 0.1.0 Nov 27, 2016
@mtneug mtneug self-assigned this Nov 27, 2016
@mtneug mtneug closed this as completed Dec 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant