[Explore]: Revert metrics to ** for resources and invalid requests.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@57664 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
8370a85df6
commit
3bbf1569b3
|
@ -43,7 +43,7 @@ app.engine('html', ngExpressEngine({
|
||||||
|
|
||||||
const register = new prom.Registry();
|
const register = new prom.Registry();
|
||||||
|
|
||||||
const responses = new prom.Counter({
|
const responses = new prom.Counter({
|
||||||
name: 'portal_http_responses_total',
|
name: 'portal_http_responses_total',
|
||||||
help: 'A counter for portal response codes for every existed or not existed pages.',
|
help: 'A counter for portal response codes for every existed or not existed pages.',
|
||||||
labelNames: ['route', 'code'],
|
labelNames: ['route', 'code'],
|
||||||
|
@ -109,7 +109,7 @@ app.get('*', (req, res) => {
|
||||||
} else {
|
} else {
|
||||||
res.render('index', {req});
|
res.render('index', {req});
|
||||||
res.on('finish', function () {
|
res.on('finish', function () {
|
||||||
responses.inc({route: req.path, code: res.statusCode});
|
responses.inc({route: '**', code: res.statusCode});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,9 +33,9 @@
|
||||||
|
|
||||||
"piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=",
|
"piwikBaseUrl" :"https://analytics.openaire.eu/piwik.php?idsite=",
|
||||||
"piwikSiteId" : "6",
|
"piwikSiteId" : "6",
|
||||||
"loginUrl" :"http://rudie.di.uoa.gr:8080/dnet-login/openid_connect_login",
|
"loginUrl" :"http://rudie.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/openid_connect_login",
|
||||||
|
|
||||||
"userInfoUrl" : "http://scoobydoo.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=",
|
"userInfoUrl" : "http://rudie.di.uoa.gr:8080/dnet-openaire-users-1.0.0-SNAPSHOT/api/users/getUserInfo?accessToken=",
|
||||||
|
|
||||||
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
|
"logoutUrl" :"https://aai.openaire.eu/proxy/saml2/idp/SingleLogoutService.php?ReturnTo=",
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue