Skip to content

Commit

Permalink
ID-4078: new tags and metric names for idporten-login (#2)
Browse files Browse the repository at this point in the history
`app_exceptions_internal_api_total{application="idporten-login",oidc_integration="minid",environment="docker",exception_type="connect",system="internal_api",}
1.0`

eller for krr-cp vil det bli ca slik:

``app_exceptions_internal_api_total{application="idporten-login",oidc_integration="krr",environment="docker",exception_type="connect",system="internal_api",}
1.0``
  • Loading branch information
oyri authored Mar 18, 2024
1 parent f238099 commit 06c9216
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ public class MetricCategories {
public final static String EXTERNAL_SYSTEM = "system";
public final static String EXCEPTION_TYPE = "exception_type";
public final static String EID = "eid";
public final static String OIDC_INTEGRATION = "oidc_integration";
}
4 changes: 4 additions & 0 deletions src/main/java/no/idporten/metric/constants/MetricNames.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
public class MetricNames {
public final static String APP_EXCEPTION_NAME= "app_exceptions";


// Only for idporten-login for dynamic create counters since we allready has the APP_EXCEPTION_NAME defined, then new counters with same name is not added.
public final static String APP_EXCEPTION_INTERNAL_API_NAME= "app_exceptions_internal_api";

}
6 changes: 5 additions & 1 deletion src/main/java/no/idporten/metric/constants/MetricValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

public class MetricValues {

public final static String EXTERNAL_SYSTEM_API= "api";
// for internal apis inside namespace
public final static String EXTERNAL_SYSTEM_INTERNAL_API= "internal_api";

// for external apis outside of namespace
public final static String EXTERNAL_SYSTEM_EXTERNAL_API= "external_api";
public final static String EXTERNAL_SYSTEM_REDIS= "redis";
public final static String EXTERNAL_SYSTEM_DB= "database";
public final static String EXCEPTION_TYPE_CONNECT= "connect";
Expand Down

0 comments on commit 06c9216

Please sign in to comment.