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

Feature/db layer metrics #616

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Feature/db layer metrics #616

wants to merge 2 commits into from

Conversation

androndo
Copy link
Contributor

@androndo androndo commented Mar 4, 2021

PR Summary

Marked as draft until wait this PR to go-wrap generator.

Closes/Relates #issue

@androndo androndo self-assigned this Mar 4, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 74.663% when pulling 8bfd144 on feature/db_layer_metrics into 37b0f33 on master.

@@ -75,7 +76,8 @@ func main() {

notifierMetrics := metrics.ConfigureNotifierMetrics(telemetry.Metrics, serviceName)
databaseSettings := config.Redis.GetSettings()
database := redis.NewDatabase(logger, databaseSettings, redis.Notifier)
redis := redis.NewDatabase(logger, databaseSettings, redis.Notifier)
database := db.NewDatabaseWithMetrics(redis, "redis", &telemetry.Metrics)
Copy link
Contributor

Choose a reason for hiding this comment

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

"redis" is not a good prefix for metrics. We have a metrics prefix that is set in config files. Each service adds its own name to prefix. Let's use this as prefix

@@ -0,0 +1,45 @@
import (
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably we need to add an extension to file

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.

3 participants