Skip to content

Commit 097af87

Browse files
authored
Merge pull request mendix#6134 from ekremsekerci/LM-127_apm_metrics_filters
Filtering capability for runtime metrics to APMs
2 parents cb43bd0 + ae59b80 commit 097af87

2 files changed

Lines changed: 39 additions & 14 deletions

File tree

content/en/docs/developerportal/operate/metrics/monitoring-with-apm/_index.md

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ For details on how to add a specific APM tool to your app, see one of the follow
3232
* [Dynatrace for Mendix Cloud](/developerportal/operate/dynatrace-metrics/)
3333
* [Splunk for the Mendix Cloud](/developerportal/operate/splunk-metrics/)
3434

35-
A summary of the useful metrics provided by Mendix is in the section [Summary of Mendix Metrics](#summary), below.
36-
3735
{{% alert color="info" %}}
3836
For support on other cloud deployment options, such as Private Cloud, refer to their dedicated [documentation pages](/developerportal/deploy/private-cloud-monitor/).
3937
{{% /alert %}}
@@ -272,18 +270,41 @@ You pass the configuration to the metrics agent by adding a *Custom Runtime Sett
272270
4. Click **Save**.
273271
5. Restart your app to apply the new settings if you have already connected your node to your data analytics. If you are in the process of connecting your node, you must *redeploy* your application to apply the changes.
274272

275-
## 5 Summary of Mendix Metrics{#summary}
276-
277-
| Metric | Description |
278-
| --- | --- |
279-
| jmx.com.mendix.\* | JMX metrics for the `com.mendix` domain (core runtime). |
280-
| mx.database.diskstorage_size | Disk storage available to the application database (this is a fixed value) |
281-
| mx.activity.time | How long a microflow activity takes to run |
282-
| mx.client.time | The time to handle a request to a request handler that is used by the web ui |
283-
| mx.microflow.time | How long a microflow takes to run |
284-
| mx.odata.time | The time to handle an OData request |
285-
| mx.rest.time | The time to handle a REST request |
286-
| mx.soap.time | The time to handle a SOAP request |
273+
## 5 Filtering Metrics Ingestion
274+
275+
{{% alert color="info" %}}
276+
The metrics collected by APM vendors' agents are not affected by this feature, only runtime metrics collected by Mendix can be filtered.
277+
{{% /alert %}}
278+
279+
To filter the ingestion of metrics to APM vendors, environment variables listed below can be used.
280+
281+
* [APM_METRICS_FILTER_ALLOW](#app-metrics-filter-allow)
282+
* [APM_METRICS_FILTER_DENY](#app-metrics-filter-deny)
283+
* [APM_METRICS_FILTER_DENY_ALL](#app-metrics-filter-deny-all)
284+
285+
{{% alert color="info" %}}
286+
Database metrics (`postgresql.*` and `mx.database.diskstorage_size`) cannot be filtered by name, to turn them off, the `APPMETRICS_INCLUDE_DB` environment variable can be set to false.
287+
{{% /alert %}}
288+
289+
### 5.1 APM_METRICS_FILTER_ALLOW{#app-metrics-filter-allow}
290+
291+
Comma-separated list of prefixes for the metrics to be allowed. By default, all metrics are allowed, even if they are not specified via this environment variable.
292+
293+
For example, to allow only the session and the jvm metrics, the environment variable should be set to `mx.runtime.stats.sessions,jvm`.
294+
295+
296+
### 5.2 APM_METRICS_FILTER_DENY{#app-metrics-filter-deny}
297+
298+
Comma-separated list of prefixes for the metrics to be denied.
299+
300+
For example, to filter out only metrics starting with jetty or mx.runtime, the environment variable should be set to `jetty,mx.runtime`.
301+
302+
303+
### 5.3 APM_METRICS_FILTER_DENY_ALL{#app-metrics-filter-deny-all}
304+
305+
This environment variable can be used to stop ingestion of all metrics at once.
306+
307+
If it is set to `true`, all metrics will be denied regardless of the values of `APM_METRICS_FILTER_ALLOW`, `APM_METRICS_FILTER_DENY`, and `APPMETRICS_INCLUDE_DB`.
287308

288309
## 6 Read More
289310

content/en/docs/releasenotes/deployment/mendix-cloud.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ For information on the current status of deployment to Mendix Cloud and any plan
2323

2424
* The webhooks feature is now released for GA. Webhooks can trigger endpoints when changes are committed to a Team Server Git repository, or when a new deployment package is available for deployment to the Mendix Cloud. For more information, see [Webhooks](/developerportal/deploy/webhooks/).
2525

26+
#### Improvements
27+
28+
* We have introduced a filtering capability for sending Mendix runtime metrics to APM vendors.
29+
2630
### May 4th, 2023
2731

2832
* In the Build and Deploy APIs, we have added a link to download packages from the Developer Portal. This is controlled by a parameter on the following API calls:

0 commit comments

Comments
 (0)