Skip to content

Commit

Permalink
Add profile metrics
Browse files Browse the repository at this point in the history
Signed-off-by: kusumachalasani <kchalasa@redhat.com>
  • Loading branch information
kusumachalasani committed Aug 22, 2023
1 parent 08e866f commit 2fe9931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions design/KruizePromQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ The following are the available Kruize DB methods that you can monitor:
- `loadResultsByExperimentName`: Method for loading experiment results by experiment name.
- `loadRecommendationsByExperimentName`: Method for loading recommendations by experiment name.
- `loadRecommendationsByExperimentNameAndDate`: Method for loading recommendations by experiment name and date.
- `addPerformanceProfileToDB`: Method to add performance profile to the database.
- `loadPerformanceProfileByName`: Method to load a specific performance profile.
- `loadAllPerformanceProfiles`: Method to load all performance profiles.

## Time taken for KruizeDB metrics

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/autotune/utils/MetricsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ private MetricsConfig() {
timerBAddResultsDB = Timer.builder("kruizeDB").description(DB_METRIC_DESC).tag("method","addResultToDB");
timerBAddBulkResultsDB = Timer.builder("kruizeDB").description(DB_METRIC_DESC).tag("method","addBulkResultsToDBAndFetchFailedResults");
timerBAddExpDB = Timer.builder("kruizeDB").description(DB_METRIC_DESC).tag("method","addExperimentToDB");
timerBAddPerfProfileDB = Timer.builder("kruizeDB").description(DB_METRIC_DESC).tag("method","addPerformanceProfileToDB");
timerBLoadPerfProfileName = Timer.builder("kruizeDB").description(DB_METRIC_DESC).tag("method","loadPerformanceProfileByName");
timerBLoadAllPerfProfiles = Timer.builder("kruizeDB").description(DB_METRIC_DESC).tag("method","loadAllPerformanceProfiles");

new ClassLoaderMetrics().bindTo(meterRegistry);
new ProcessorMetrics().bindTo(meterRegistry);
Expand Down

0 comments on commit 2fe9931

Please sign in to comment.