Main Content
prodserver.metrics.incrementCounter
Description
prodserver.metrics.incrementCounter(
creates a custom Prometheus® counter metric. Prometheus counter values can only increase over time. The metric is created when the
following conditions are true:metricName
,metricValue
)
prodserver.metrics.incrementCounter
is present in the MATLAB® function that you deploy to MATLAB Production Server™.A client invokes the deployed MATLAB function that contains
prodserver.metrics.incrementCounter
.
The server collects the metric when the deployed MATLAB function executes. The output of the GET Metrics (MATLAB Production Server) API returns information about the metric name and the metric value.
Examples
Input Arguments
Version History
Introduced in R2022a
See Also
Topics
- Metrics Service (MATLAB Production Server)
- GET Metrics (MATLAB Production Server)