How to Monitor Deployed Applications
Exposing Metrics Endpoint
Ensure that your application backend metric endpoint is exported in the same port as the application server.
This allows Prometheus to scrape and collect metrics effectively from your deployed applications.
Metrics path can be customized on deployment request. If not specified, the default value is /metrics.
Deploy Application with Monitoring Enabled
If usecase monitoring is enabled in the PhariaOS configuration you can also provide the following in the “config” for your usecase deployment.
"config": {
...,
"serviceMonitor": {
"enabled": true,
"scrapingInterval": "5s" # default is 30s
"path": "/custom-metrics" # default is `/metrics`
}
}