Skip to content

Commit

Permalink
Merge pull request astarte-platform#360 from rbino/fix-discarded-even…
Browse files Browse the repository at this point in the history
…ts-metrics

appengine_instrumenter: use Counter.inc with :discarded_events_total
  • Loading branch information
bettio authored Apr 24, 2020
2 parents 0f20a77 + 8946237 commit a2b2688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- Wait for schema_version agreement before applying any schema change (such as creating tables or a
new realm). (see [#312](https://github.com/astarte-platform/astarte/issues/312).
- [appengine_api] Fix the metric counting discarded channel events, it was not correctly increased.

## [0.11.0] - 2020-04-13
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ defmodule Astarte.AppEngine.APIWeb.Metrics.AppEngineInstrumenter do
%{realm: realm} = _metadata,
_config
) do
Gauge.inc(name: :discarded_events_total, labels: [realm])
Counter.inc(name: :discarded_events_total, labels: [realm])
end
end

0 comments on commit a2b2688

Please sign in to comment.