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

Send db and redis stats to librato in backed heartbeat #404

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

rowanseymour
Copy link
Member

No description provided.

@@ -753,10 +781,13 @@ type backend struct {
db *sqlx.DB
redisPool *redis.Pool
storage storage.Storage
awsCreds *credentials.Credentials

popScript *redis.Script
Copy link
Member Author

Choose a reason for hiding this comment

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

not used

@@ -438,10 +437,39 @@ func (b *backend) Heartbeat() error {
bulkSize += count
}

// log our total
// get our DB and redis stats
Copy link
Member Author

Choose a reason for hiding this comment

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

@rowanseymour rowanseymour requested a review from norkans7 January 18, 2022 15:56
@codecov
Copy link

codecov bot commented Jan 18, 2022

Codecov Report

Merging #404 (a23b58d) into main (0fda71b) will increase coverage by 0.29%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #404      +/-   ##
==========================================
+ Coverage   71.70%   71.99%   +0.29%     
==========================================
  Files          95       95              
  Lines        8269     8294      +25     
==========================================
+ Hits         5929     5971      +42     
+ Misses       1752     1731      -21     
- Partials      588      592       +4     
Impacted Files Coverage Δ
backends/rapidpro/backend.go 67.19% <100.00%> (+7.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fda71b...a23b58d. Read the comment docs.

@rowanseymour rowanseymour merged commit 9c8dde5 into main Jan 18, 2022
@rowanseymour rowanseymour deleted the db_redis_stats branch January 18, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants