Skip to content

Stats

Monitor your Endpoint's performance. Check the number of requests sent, their status, and the total time dedicated to AI calculations (for which you are billed). You can review this on a daily, monthly, or yearly basis.

Daily

To check daily results, use the endpoint below:

https://api.modelserve.ai/api/v1/cluster-stats/metrics/daily?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31

Required parameters in the URL:

  • cluster_id - unique ID of endpoint
  • date_from - start of period (format: RRRR-MM-DD)
  • date_to - end of period (format: RRRR-MM-DD)
curl -s -X GET \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer X' \
     'https://api.modelserve.ai/api/v1/cluster-stats/metrics/daily?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31'
import requests

r = requests.get(
    "https://api.modelserve.ai/api/v1/cluster-stats/metrics/daily?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31",
    headers={
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer X",
    },
)
fetch('https://api.modelserve.ai/api/v1/cluster-stats/metrics/daily?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31', {
  "method": "GET",
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Authorization": "Bearer X"
  }
});

Monthly

To check daily results, use the endpoint below:

https://api.modelserve.ai/api/v1/cluster-stats/metrics/monthly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31

Required parameters in the URL:

  • cluster_id - unique ID of endpoint
  • date_from - start of period (format: RRRR-MM-DD)
  • date_to - end of period (format: RRRR-MM-DD)
curl -s -X GET \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer X' \
     'https://api.modelserve.ai/api/v1/cluster-stats/metrics/monthly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31'
import requests

r = requests.get(
    "https://api.modelserve.ai/api/v1/cluster-stats/metrics/monthly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31",
    headers={
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer X",
    },
)
fetch('https://api.modelserve.ai/api/v1/cluster-stats/metrics/monthly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31', {
  "method": "GET",
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Authorization": "Bearer X"
  }
});

Yearly

To check daily results, use the endpoint below:

https://api.modelserve.ai/api/v1/cluster-stats/metrics/yearly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31

Required parameters in the URL:

  • cluster_id - unique ID of endpoint
  • date_from - start of period (format: RRRR-MM-DD)
  • date_to - end of period (format: RRRR-MM-DD)
curl -s -X GET \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer X' \
     'https://api.modelserve.ai/api/v1/cluster-stats/metrics/yearly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31'
import requests

r = requests.get(
    "https://api.modelserve.ai/api/v1/cluster-stats/metrics/yearly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31",
    headers={
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Authorization": "Bearer X",
    },
)
fetch('https://api.modelserve.ai/api/v1/cluster-stats/metrics/yearly?cluster_id=X&date_from=2023-12-01&date_to=2023-12-31', {
  "method": "GET",
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Authorization": "Bearer X"
  }
});

Remember to replace the "Bearer X" with your real Access Token. Where to find your Access Token (Bearer)? Learn more in the 🚀 Quickstart section.