Skip to content

Commit

Permalink
Merge pull request #587 from mendix/develop
Browse files Browse the repository at this point in the history
Release 2022-12-09
  • Loading branch information
sailhenz authored Dec 9, 2022
2 parents 2553be7 + a405c8e commit e87d747
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions buildpack/telemetry/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
"step": "10s",
},
"filters": [
# Login metrics needs to be enabled explicitly as it's disabled
# by default
{
"type": "nameStartsWith",
"result": "accept",
"values": ["mx.runtime.user.login"],
},
# Filter out irrelevant metrics to reduce
# the payload size passed to TSS
# https://docs.mendix.com/refguide/metrics#filters
Expand All @@ -53,7 +60,7 @@
"settings": {"port": datadog.get_statsd_port()},
}

# For freeapps we push only the session metrics
# For freeapps we push only the session & login metrics
FREEAPPS_METRICS_REGISTRY = [
{
"type": "influx",
Expand All @@ -66,7 +73,10 @@
{
"type": "nameStartsWith",
"result": "accept",
"values": ["mx.runtime.stats.sessions"],
"values": [
"mx.runtime.stats.sessions",
"mx.runtime.user.login",
],
},
{"type": "nameStartsWith", "result": "deny", "values": [""]},
],
Expand Down Expand Up @@ -444,8 +454,8 @@ def _inject_jvm_failure_metrics(self, stats):
if "jvm" not in stats:
stats["jvm"] = {}

stats["jvm"]["errors"] = 0.
stats["jvm"]["ooms"] = 0.
stats["jvm"]["errors"] = 0.0
stats["jvm"]["ooms"] = 0.0

return stats

Expand Down

0 comments on commit e87d747

Please sign in to comment.