Skip to content

Performance Metrics

Emakin provides internal application performance metrics in both JSON and text-based formats. These metrics offer valuable insights into the system's operational efficiency.

By default, only web request metrics are collected. Workflow metrics are disabled initially but can be enabled by setting the AppMetrics/Enabled flag to "true".

Emakin also supports the open metrics format based on Prometheus. This can be enabled by setting the AppMetrics/Prometheus/Enabled flag to "true". When enabled, the default metrics endpoint will output metrics in the Prometheus format.

Text Format

Text-based application metrics can be accessed through the URL: http://<servername>:7180/metrics-text.

Sample Output

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# TIMESTAMP: 638002409628203389
# MEASUREMENT: [Application.HttpRequests] Active
# TAGS:
                 server = myserver1
                    app = AltiKare.Workflow.Agent
                    env = release
                  mtype = counter
                   unit = Active Requests
# FIELDS:
                  value = 0
--------------------------------------------------------------
# TIMESTAMP: 638002409628203389
# MEASUREMENT: [Application.HttpRequests] Errors
# TAGS:
       http_status_code = 404
                 server = myserver1
                    app = AltiKare.Workflow.Agent
                    env = release
                  mtype = counter
                   unit = err
# FIELDS:
                  value = 0
--------------------------------------------------------------
# TIMESTAMP: 638002409628203389
# MEASUREMENT: [Application.HttpRequests] Error Rate Per Endpoint And Status Code
# TAGS:
                  route = GET
       http_status_code = 404
                 server = myserver1
                    app = AltiKare.Workflow.Agent
                    env = release
                  mtype = meter
                   unit = req
              unit_rate = min
# FIELDS:
            count.meter = 2
                 rate1m = 0.000740604363080179
                 rate5m = 0.04730718912605739
                rate15m = 0.04122936760317311
              rate.mean = 0.0014098467582868478
--------------------------------------------------------------
# TIMESTAMP: 638002409628203389
# MEASUREMENT: [Application.HttpRequests] Transactions
# TAGS:
                 server = myserver1
                    app = AltiKare.Workflow.Agent
                    env = release
                  mtype = timer
                   unit = req
               unit_dur = ms
              unit_rate = min
# FIELDS:
            count.meter = 2
                 rate1m = 0.000740604363080179
                 rate5m = 0.04730718912605739
                rate15m = 0.04122936760317311
              rate.mean = 0.0006628238397434088
                samples = 1
                   last = 0.406919
             count.hist = 1
                    sum = 0.406919
                    min = 0.406919
                    max = 0.406919
                   mean = 0.406919
                 median = 0.406919
                 stddev = 0
                   p999 = 0.406919
                    p99 = 0.406919
                    p98 = 0.406919
                    p95 = 0.406919
                    p75 = 0.406919
--------------------------------------------------------------

JSON Format

JSON-based application metrics can be accessed through the URL: http://<servername>:7180/metrics.

Sample Output

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
    "contexts": [
        {
            "context": "Application.HttpRequests",
            "counters": [
                {
                    "count": 0,
                    "items": [],
                    "name": "Active|server:myserver1,app:AltiKare.Workflow.Agent,env:release",
                    "tags": {
                        "server": "myserver1",
                        "app": "AltiKare.Workflow.Agent",
                        "env": "release"
                    },
                    "unit": "Active Requests"
                },
                {
                    "count": 0,
                    "items": [],
                    "name": "Errors|http_status_code:404,server:myserver1,app:AltiKare.Workflow.Agent,env:release",
                    "tags": {
                        "http_status_code": "404",
                        "server": "myserver1",
                        "app": "AltiKare.Workflow.Agent",
                        "env": "release"
                    },
                    "unit": "err"
                }
            ],
            "meters": [
                {
                    "count": 2,
                    "fifteenMinuteRate": 0.024593548234881323,
                    "fiveMinuteRate": 0.010040855039444218,
                    "items": [],
                    "meanRate": 0.0014021127455886738,
                    "oneMinuteRate": 3.1900980491459724E-07,
                    "rateUnit": "min",
                    "name": "Error Rate Per Endpoint And Status Code|route:GET,http_status_code:404,server:myserver1,app:AltiKare.Workflow.Agent,env:release",
                    "tags": {
                        "route": "GET",
                        "http_status_code": "404",
                        "server": "myserver1",
                        "app": "AltiKare.Workflow.Agent",
                        "env": "release"
                    },
                    "unit": "req"
                }
            ],
            "timers": [
                {
                    "activeSessions": 0,
                    "count": 2,
                    "durationUnit": "ms",
                    "histogram": {
                        "lastValue": 0.406919,
                        "max": 0.406919,
                        "mean": 0.406919,
                        "median": 0.406919,
                        "min": 0.406919,
                        "percentile75": 0.406919,
                        "percentile95": 0.406919,
                        "percentile98": 0.406919,
                        "percentile99": 0.406919,
                        "percentile999": 0.406919,
                        "sampleSize": 1,
                        "stdDev": 0,
                        "sum": 0.406919
                    },
                    "rate": {
                        "fifteenMinuteRate": 0.024593548234881323,
                        "fiveMinuteRate": 0.010040855039444218,
                        "meanRate": 0.000661109402893143,
                        "oneMinuteRate": 3.1900980491459724E-07
                    },
                    "rateUnit": "min",
                    "name": "Transactions|server:myserver1,app:AltiKare.Workflow.Agent,env:release",
                    "tags": {
                        "server": "myserver1",
                        "app": "AltiKare.Workflow.Agent",
                        "env": "release"
                    },
                    "unit": "req"
                }
            ]
        }
    ],
    "timestamp": "2022-10-01T17:17:12.3156208Z"
}