Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak metrics namespace and fix metric names and dimensions #113

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

rowanseymour
Copy link
Member

Guess there's no reason to stuff all our custom metrics into a single namespace - AWS does it per service with namespaces like AWS/EC2, AWS/ELB etc, so why not Temba/Archiver, Temba/Indexer etc

Value: aws.Float64(float64(totalMsgsRecordsArchived)),
Unit: types.StandardUnitCount,
},
{
MetricName: aws.String("MsgsArchivedsCreated"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.55%. Comparing base (8fbc047) to head (cc23e86).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #113      +/-   ##
==========================================
- Coverage   62.93%   62.55%   -0.39%     
==========================================
  Files           7        7              
  Lines        1376     1362      -14     
==========================================
- Hits          866      852      -14     
  Misses        404      404              
  Partials      106      106              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -967,82 +967,68 @@ func ArchiveActiveOrgs(rt *runtime.Runtime) error {
timeTaken := dates.Now().Sub(start)
slog.Info("archiving of active orgs complete", "time_taken", timeTaken, "num_orgs", len(orgs))

dims := []types.Dimension{
{Name: aws.String("App"), Value: aws.String("archiver")},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reason to have app as a dimension here... there's only one archiver app

@rowanseymour rowanseymour merged commit f050e44 into main Dec 16, 2024
7 checks passed
@rowanseymour rowanseymour deleted the metrics_tweak branch December 16, 2024 19:19
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants