Skip to content

Commit

Permalink
fix(events): added deleted to events metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
serge1peshcoff committed Dec 30, 2019
1 parent 7f2c67b commit 815eb36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const gaugesList = {
eventsTotal: new Gauge({
name: 'events_events_total',
help: 'Total amount of general events',
labelNames: ['type', 'status']
labelNames: ['type', 'status', 'deleted']
}),
applicationsTotal: new Gauge({
name: 'events_applications_total',
Expand All @@ -32,9 +32,10 @@ exports.getMetrics = async (req, res) => {
attributes: [
'type',
'status',
'deleted',
[sequelize.fn('COUNT', 'id'), 'value']
],
group: ['type', 'status'],
group: ['type', 'status', 'deleted'],
raw: true
}),
Application.findAll({
Expand Down

0 comments on commit 815eb36

Please sign in to comment.