forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding metrics for external Plugins - Hive, Batch and Presto (flyteor…
…g#80) * Adding metrics for external Plugins - Hive, Batch and Presto * Fixes
- Loading branch information
1 parent
209c52d
commit 7361bf6
Showing
14 changed files
with
101 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package awsbatch | ||
|
||
import ( | ||
"github.com/lyft/flytestdlib/promutils" | ||
"github.com/lyft/flytestdlib/promutils/labeled" | ||
) | ||
|
||
type ExecutorMetrics struct { | ||
Scope promutils.Scope | ||
SubTasksSubmitted labeled.Counter | ||
SubTasksSucceeded labeled.Counter | ||
SubTasksFailed labeled.Counter | ||
BatchJobTerminated labeled.Counter | ||
} | ||
|
||
func getAwsBatchExecutorMetrics(scope promutils.Scope) ExecutorMetrics { | ||
return ExecutorMetrics{ | ||
Scope: scope, | ||
SubTasksSubmitted: labeled.NewCounter("sub_task_submitted", | ||
"Sub tasks submitted", scope), | ||
SubTasksSucceeded: labeled.NewCounter("batch_task_success", | ||
"Batch tasks successful", scope), | ||
SubTasksFailed: labeled.NewCounter("batch_task_failure", | ||
"Batch tasks failure", scope), | ||
BatchJobTerminated: labeled.NewCounter("batch_job_terminated", | ||
"Batch job terminated", scope), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.