这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@mathpl
Copy link
Contributor

@mathpl mathpl commented Aug 9, 2016

  • TagSet.Clean() validates cleaned key/value are not empty.
  • DataPoint.Clean() is also called when quickly dequeuing the datapoint channel.
  • Data points deemed unclean increment scollector.collect.discarded instead of scollector.collect.dropped.

return
})
Set("collect.discarded", Tags, func() (i interface{}) {
slock.Lock()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you even need to lock if you are using the atomic operations. You could use atomic.LoadInt64 and not need locks at all. I wish we had done all these stats like that from the start.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

want me to move all those to atomic.* ? I'd be happy to.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes please. I'm going to merge this for now, but if you wanted to do that in a seperate pr it would be appreciated. Thanks!

@captncraig captncraig merged commit 89acb98 into bosun-monitor:master Aug 12, 2016
gbrayut added a commit that referenced this pull request Aug 16, 2016
gbrayut added a commit that referenced this pull request Aug 16, 2016
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