Main Content
prodserver.metrics.setGauge
Description
prodserver.metrics.setGauge(
creates a custom Prometheus® gauge metric. Prometheus gauge values can increase or decrease over time. The metric is created when
the following conditions are true:metricName
,metricValue
)
prodserver.metrics.setGauge
is present in the MATLAB® function that you deploy to MATLAB Production Server™.A client invokes the deployed MATLAB function that contains
prodserver.metrics.setGauge
.
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
prodserver.metrics.incrementCounter
Topics
- Metrics Service (MATLAB Production Server)
- GET Metrics (MATLAB Production Server)