[ 
https://issues.apache.org/jira/browse/BEAM-8131?focusedWorklogId=317079&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-317079
 ]

ASF GitHub Bot logged work on BEAM-8131:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Sep/19 00:24
            Start Date: 24/Sep/19 00:24
    Worklog Time Spent: 10m 
      Work Description: pabloem commented on pull request #9482: [BEAM-8131] 
Provide Kubernetes setup for Prometheus
URL: https://github.com/apache/beam/pull/9482#discussion_r327381413
 
 

 ##########
 File path: .test-infra/metrics/prometheus/prometheus/config/rules.yml
 ##########
 @@ -0,0 +1,30 @@
+################################################################################
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+# limitations under the License.
+################################################################################
+
+groups:
+- name: beamTests
+  rules:
+  - alert: TestRegression
+    expr: 
((avg_over_time({job="beam",instance="",__name__!="push_time_seconds"}[1d])
+      - 
avg_over_time({job="beam",instance="",__name__!="push_time_seconds"}[6d] offset 
1d))
+      / 
avg_over_time({job="beam",instance="",__name__!="push_time_seconds"}[6d] offset 
1d))
+      > 0.2
+    labels:
+      job: beamAlert
+    annotations:
+      summary: 'Average runtime over 24 hours is 20% greater than average from 
six previous days'
 
 Review comment:
   Have you verified that this formula is appropriate? It may be good to 
formulate it in terms of the standard deviation? I'm not sure. Just thinking 
out loud.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 317079)
    Time Spent: 2h 50m  (was: 2h 40m)

> Provide Kubernetes setup with Prometheus
> ----------------------------------------
>
>                 Key: BEAM-8131
>                 URL: https://issues.apache.org/jira/browse/BEAM-8131
>             Project: Beam
>          Issue Type: Sub-task
>          Components: testing
>            Reporter: Kamil Wasilewski
>            Assignee: Kamil Wasilewski
>            Priority: Major
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to