Skip to content

Commit

Permalink
Merge pull request #82 from vahidhashemian/update_log_tag_value_for_m…
Browse files Browse the repository at this point in the history
…essage_key_value_size

Update tag value for message key/value size metric
  • Loading branch information
vahidhashemian authored Aug 22, 2020
2 parents baafa4d + 6309609 commit d37c9cd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.pinterest.singer</groupId>
<artifactId>singer-package</artifactId>
<version>0.8.0.27</version>
<version>0.8.0.28</version>
<packaging>pom</packaging>
<description>Singer Logging Agent modules</description>
<inceptionYear>2013</inceptionYear>
Expand Down
2 changes: 1 addition & 1 deletion singer-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.pinterest.singer</groupId>
<artifactId>singer-package</artifactId>
<version>0.8.0.27</version>
<version>0.8.0.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<developers>
Expand Down
2 changes: 1 addition & 1 deletion singer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.pinterest.singer</groupId>
<artifactId>singer-package</artifactId>
<version>0.8.0.27</version>
<version>0.8.0.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,12 @@ private void writeLogMessages(List<LogMessageAndPosition> logMessagesRead)
OpenTsdbMetricConverter.gauge(
SingerMetrics.PROCESSOR_MESSAGE_KEY_SIZE_BYTES,
logMessage.isSetKey() ? logMessage.getKey().length : 0,
"log=" + logStream.getLogStreamName(),
"log=" + logStream.getSingerLog().getSingerLogConfig().getName(),
"host=" + SingerUtils.getHostname());
OpenTsdbMetricConverter.gauge(
SingerMetrics.PROCESSOR_MESSAGE_VALUE_SIZE_BYTES,
logMessage.isSetMessage() ? logMessage.getMessage().length : 0,
"log=" + logStream.getLogStreamName(),
"log=" + logStream.getSingerLog().getSingerLogConfig().getName(),
"host=" + SingerUtils.getHostname());
}
writer.writeLogMessages(logMessagesToWrite);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ protected int processLogMessageBatch() throws IOException, LogStreamWriterExcept
OpenTsdbMetricConverter.gauge(
SingerMetrics.PROCESSOR_MESSAGE_KEY_SIZE_BYTES,
logMessage.isSetKey() ? logMessage.getKey().length : 0,
"log=" + logStream.getLogStreamName(),
"log=" + logStream.getSingerLog().getSingerLogConfig().getName(),
"host=" + SingerUtils.getHostname());
OpenTsdbMetricConverter.gauge(
SingerMetrics.PROCESSOR_MESSAGE_VALUE_SIZE_BYTES,
logMessage.isSetMessage() ? logMessage.getMessage().length : 0,
"log=" + logStream.getLogStreamName(),
"log=" + logStream.getSingerLog().getSingerLogConfig().getName(),
"host=" + SingerUtils.getHostname());
writer.writeLogMessageToCommit(logMessage);
}
Expand Down
2 changes: 1 addition & 1 deletion thrift-logger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.pinterest.singer</groupId>
<artifactId>singer-package</artifactId>
<version>0.8.0.27</version>
<version>0.8.0.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>thrift-logger</artifactId>
Expand Down

0 comments on commit d37c9cd

Please sign in to comment.