Skip to content

Commit

Permalink
Merge pull request #78 from lyft/cluster_alert
Browse files Browse the repository at this point in the history
 include cluster name in alert title
  • Loading branch information
nishantrayan authored Nov 5, 2019
2 parents d8ad248 + 4b328bb commit 9863183
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion baseapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.lyft.data</groupId>
<artifactId>prestogateway-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion gateway-ha/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.lyft.data</groupId>
<artifactId>prestogateway-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
<relativePath>../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,19 @@ public void start() {
}

private void notifyUnhealthyCluster(ClusterStats clusterStats) {
emailNotifier.sendNotification("Cluster unhealthy", clusterStats.toString());
emailNotifier.sendNotification(String.format("%s - Cluster unhealthy",
clusterStats.getClusterId()),
clusterStats.toString());
}

private void notifyForTooManyQueuedQueries(ClusterStats clusterStats) {
emailNotifier.sendNotification("Too many queued queries", clusterStats.toString());
emailNotifier.sendNotification(String.format("%s - Too many queued queries",
clusterStats.toString()), clusterStats.toString());
}

private void notifyForNoWorkers(ClusterStats clusterStats) {
emailNotifier.sendNotification("Number of workers", clusterStats.toString());
emailNotifier.sendNotification(String.format("%s - Number of workers",
clusterStats.getClusterId()), clusterStats.toString());
}

private ClusterStats getPrestoClusterStats(ProxyBackendConfiguration backend) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<artifactId>prestogateway-parent</artifactId>
<name>prestogateway-parent</name>
<packaging>pom</packaging>
<version>1.6.4</version>
<version>1.6.5</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion proxyserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.lyft.data</groupId>
<artifactId>prestogateway-parent</artifactId>
<version>1.6.4</version>
<version>1.6.5</version>
<relativePath>../</relativePath>
</parent>

Expand Down

0 comments on commit 9863183

Please sign in to comment.