Skip to content

Commit 969fc86

Browse files
authored
Merge pull request #712 from uro/hotfix/fix-invalid-write-format
Monitoring - Fixed influxdb write on sentMessageStats
2 parents 8409443 + 359c4ab commit 969fc86

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ bin/phpstan
88
bin/jp.php
99
bin/php-parse
1010
bin/google-cloud-batch
11+
bin/thruway
1112
vendor
1213
var
1314
.php_cs

pkg/monitoring/InfluxDbStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function pushSentMessageStats(SentMessageStats $stats): void
155155
}
156156

157157
$points = [
158-
new Point($this->config['measurementSentMessages'], null, $tags, [], $stats->getTimestampMs()),
158+
new Point($this->config['measurementSentMessages'], 1, $tags, [], $stats->getTimestampMs()),
159159
];
160160

161161
$this->getDb()->writePoints($points, Database::PRECISION_MILLISECONDS);

0 commit comments

Comments
 (0)