Project

General

Profile

« Previous | Next » 

Revision 55724

[Angular7|Explore]: Add rest method /metrics on server.ts

View differences:

server.ts
65 65
  maxAge: '1y'
66 66
}));
67 67

  
68
app.get('/metrics', (req, res) => {
69
  res.set('Content-Type', prometheus.register.contentType);
70
  res.end(prometheus.register.metrics());
71
});
72

  
68 73
// All regular routes use the Universal engine
69 74
app.get('*', (req, res) => {
70 75
  let start = new Date();

Also available in: Unified diff