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

Memcached plugin #21

Merged
merged 2 commits into from
Jun 23, 2015
Merged

Memcached plugin #21

merged 2 commits into from
Jun 23, 2015

Conversation

digitalcrab
Copy link

Hello guys
Here is my memcached plugin.
It sends the main metrics:

  • get_hits
  • get_misses
  • evictions
  • usage of memory (basically it is bytes / limit_maxbytes)

Thank you

if maxOk && bytesOk {
if fMax, errMax := strconv.ParseFloat(maxBytes, 64); errMax == nil && fMax > 0 {
if fBytes, errBytes := strconv.ParseFloat(bytes, 64); errBytes == nil {
return fBytes / fMax
Copy link
Contributor

Choose a reason for hiding this comment

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

How about exporting both of these values individually? That'll allow for more powerful analysis of the data.

@digitalcrab
Copy link
Author

How about exporting both of these values individually? That'll allow for more powerful analysis of the data.

@brian-brazil You are right. Done!

evanphx added a commit that referenced this pull request Jun 23, 2015
@evanphx evanphx merged commit b8f3c68 into influxdata:master Jun 23, 2015
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