prom: add support for default step param (#9866)

Alerting for prometheus have been depending on the step parameter from each query.
In https://github.com/grafana/grafana/pull/9226 we changed the behavior for step in the
frontend which caused problems for alerting. This commit fixes that by introducing a default
min interval value so alerting always have something to depend on.

closes #9777
(cherry picked from commit 5d6ed6c45f)
This commit is contained in:
Carl Bergquist
2017-11-15 11:23:25 +01:00
committed by bergquist
parent 7ca3d32a10
commit 8a1616305c
14 changed files with 237 additions and 69 deletions
@@ -34,6 +34,7 @@ Name | Description
*Basic Auth* | Enable basic authentication to the Prometheus data source.
*User* | Name of your Prometheus user
*Password* | Database user's password
*Scrape interval* | This will be used as a lower limit for the Prometheus step query parameter. Default value is 15s.
## Query editor