Skip to content

Commit

Permalink
Merge pull request InMobi#5 from InMobi/stats_filestore
Browse files Browse the repository at this point in the history
Adding filestore stats : <fstype>_wrote_num_messages and <fstype>_wrote_bytes
  • Loading branch information
Amareshwari committed Oct 30, 2012
2 parents 85f2ffe + 4d101ae commit 6fa11c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion debian_hdfs/changelog
@@ -1,8 +1,14 @@
scribe-server-hdfs-orig (0.3) lucid; urgency=low

* provide num_messages writte and num_bytes written to a file store

-- Platform Engineering <platform-engg@inmobi.com> Mon, 29 Oct 2012 12:10:45 +0530

scribe-server-hdfs-orig (0.2.8-1) lucid; urgency=low

* write queue size to scribe log when a request in throttled.

-- Platform Engineering <platform-engg@inmobi.com> Fri, 12 Oct 2012 11:37:00 +0530
-- Platform Engineering <platform-engg@inmobi.com> Fri, 12 Oct 2012 11:37:00 +0530

scribe-server-hdfs-orig (0.2.7-1) lucid; urgency=low

Expand Down
4 changes: 3 additions & 1 deletion src/store.cpp
Expand Up @@ -558,8 +558,10 @@ void FileStoreBase::printStats() {

string log_str = msg.str();
LOG_OPER("[%s]", log_str.c_str());

/*stats_file->write(msg.str());*/
// update the stats
g_Handler->incCounter(categoryHandled, fsType + "_wrote_num_messages", eventsWritten);
g_Handler->incCounter(categoryHandled, fsType + "_wrote_bytes", currentSize);
stats_file->close();
}

Expand Down

0 comments on commit 6fa11c0

Please sign in to comment.