[
https://issues.apache.org/jira/browse/BEAM-8131?focusedWorklogId=317406&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-317406
]
ASF GitHub Bot logged work on BEAM-8131:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Sep/19 11:43
Start Date: 24/Sep/19 11:43
Worklog Time Spent: 10m
Work Description: kamilwu commented on pull request #9482: [BEAM-8131]
Provide Kubernetes setup for Prometheus
URL: https://github.com/apache/beam/pull/9482#discussion_r327567049
##########
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:
We don't treat this as an ultimate solution. More as a starter (this PR just
sets up the Kubernetes). It'll be easy to replace this formula in the future if
needed.
I filled a jira to verify the effectiveness of this algorithm or to replace
it with something else: https://issues.apache.org/jira/browse/BEAM-8308.
Of course, we can change it right now if you think this is not enough for a
starter solution.
----------------------------------------------------------------
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: 317406)
Time Spent: 3h 50m (was: 3h 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: 3h 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)