Usage introduction
Usage
API for retrieving usage metrics.
Entity types
Metrics can be queried based on different entity types:
- account
- application
- keyset
Coming soon:
- customer, if you use Partner module you can query metrics for customers associated with your account
Metrics
Usage metrics include various data points such as API calls, data storage, and other resource utilizations. All of them are aggregated on daily basis. Most metrics are available also with an hourly resolution. Data hourly metrics is retained for 90 days. Data for daily metrics is retained for 12 months.
Data are usually available with 3-4 hours delay.
Note on Month-to-Date (MTD) Metrics: Metrics with the mtd_ prefix represent cumulative values for the entire month up to the queried date. These metrics accumulate from the first day of the month, so when querying MTD metrics, you typically want to use the last day of the month to get the complete monthly total. For example, mtd_txn_total and mtd_uuid show cumulative counts that grow throughout the month.
Popular Metrics
| Metric Name | Description |
|---|---|
| msgs_total | Total messages sent and received through the use of all PubNub APIs |
| edge | All API Calls that interact with a single PubNub Point of Presence |
| replicated | All API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP), such as publishing a message |
| publish | Total number of messages published |
| subscribe_msgs | Total number of messages delivered to subscribers |
All Available Metrics
| Metric Name | Description |
|---|---|
| mtd_uuid | Number of Active users (UUIDs) at a given moment in time. |
| pn_uuid | Number of Active users (UUIDs) at a given moment in time. |
| replicated | All API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP), such as publishing a message |
| signals | All API calls that involve sending (Publishes) or receiving (Subscribes) Signal messages. |
| edge | All API Calls that interact with a single PubNub Point of Presence |
| message_actions | All API Calls for Messages Actions that interact with a single PubNub Point of Presence |
| free | Number of transactions counted as Free |
| accessmanager_audits_transactions | Access Manager Audit Transactions |
| accessmanager_grants_v3_transactions | Access Manager v3 Grant Transactions |
| accessmanager_grants_transactions | Access Manager v2 Grant Transactions |
| accessmanager_replicated | Access Manager API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP) |
| accessmanager_edge | Access Manager API calls with client errors that interact with a single PubNub Point-of-Presence (PoP) |
| misfire_client_transactions | Number of transactions as a result of calling a function, from the developer's client application, using the Fire endpoint, and having that API call not actually trigger the target function to be executed. |
| kv_read_transactions | Number of transactions as a result of using the KV Store read API within a PubNub Function. The KV Store API allows for setting and getting of key value based data. |
| kv_write_transactions | Number of transactions as a result of using the KV Store write API within a PubNub Function. The KV Store API allows for setting and getting of key value based data. |
| misfire_eh_transactions | Number of transactions as a result of calling a function, from the developer's function code, using the Fire endpoint, and having that API call not actually trigger the target function to be executed. |
| xhr_transactions | Number of transactions of result of using the XHR API from within a PubNub Function. This API allows for interaction with external HTTP/S resources from within a developer's Functions code. This API is not called directly from PubNub Client SDKs. NOTE: an execution of a Function can result in multiple XHR transactions, especially if retry logic is employed. |
| functions_replicated | Function API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP), such as publishing a message |
| functions_edge | Function API calls that interact with a single PubNub Point-of-Presence (PoP), such as receiving a published message via a Subscribe API call, such as function misfire or Key Value reads |
| executions | The number of times a function was executed |
| history_messages_count_transactions | Count of messages published |
| history_transactions | Number of History transactions |
| history_edge | History API calls with client errors that interact with a single PubNub Point-of-Presence (PoP) |
| message_actions_add_transactions | Add Message reaction transactions |
| message_actions_get_transactions | Retrieving Message Reactions transactions |
| message_actions_remove_transactions | Removing Message Reactions transactions |
| subscribe_message_actions_transactions | Subscribing to Message Reactions transactions |
| objects_create_space_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of creating spaces. |
| objects_create_user_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of creating users. |
| objects_delete_space_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of deleting spaces. |
| objects_delete_user_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of deleting users. |
| objects_get_all_spaces_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of fetching all created spaces. |
| objects_get_all_users_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of fetching all created users. |
| objects_get_space_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of fetching a specific space. |
| objects_get_user_space_memberships_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of fetching the user members of a specific space. |
| objects_get_space_user_memberships_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of fetching the spaces of which a specific user is a member. |
| objects_get_user_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of fetching a specific created user. |
| objects_update_space_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of updating a specific space. |
| objects_update_space_user_memberships_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of updating a specific space-to-user membership |
| objects_update_user_space_memberships_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of updating a specific user-to-space membership |
| objects_update_user_transactions | Number of transactions as a result of using the App Context endpoint, with the purpose of updating a specific space. |
| internal_publish_objects_transactions | App Context Publish Transactions |
| objects_replicated | App Context API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP) |
| objects_edge | Object API calls that interact with a single PubNub Point-of-Presence (PoP) |
| objects_users | All Object API Transactions related to Users |
| objects_spaces | All Object API Transactions related to Spaces |
| objects_memberships | All Object API Transactions related to Memberships |
| objects_errors | Object API client error transactions and unauthorized transactions |
| presence_getuserstate_transactions | Presence Get State Transactions |
| presence_herenow_global_transactions | Presence HereNow (Global) Transactions |
| presence_herenow_transactions | Presence HereNow Transactions |
| presence_leave_transactions | Presence Leave (Unsubscribe) Transactions |
| presence_setuserstate_transactions | Presence Set State Transactions |
| presence_heartbeats_transactions | Presence Explicit Heartbeat Transactions |
| presence_wherenow_transactions | Presence WhereNow Transactions |
| presence_replicated | Presence API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP) |
| presence_edge | Presence API calls that interact with a single PubNub Point-of-Presence (PoP) |
| apns_sent_transactions | Push notifications sent to Apple Push Notification Service |
| apns_removed_transactions | Number of transactions as a result of publishing a message with the proper data signifying removal of an Apple Push Notification Token. These transactions are not related to specific API calls but are a result of push-related publishes. |
| mpns_sent_transactions | Push notifications sent to Microsoft Push Notification Service |
| mpns_removed_transactions | Number of transactions as a result of publishing a message with the proper data signifying removal of an Microsoft Push Notification Token. These transactions are not related to specific API calls but are a result of push-related publishes. |
| gcm_removed_transactions | Number of transactions as a result of publishing a message with the proper data signifying removal of an FCM Push Notification Token. These transactions are not related to specific API calls but are a result of push-related publishes. |
| gcm_sent_transactions | Push notifications sent to Apple Push Notification Service |
| push_device_writes_transactions | Number of transactions as a result of using the Push Device Registration endpoint, which allows developers to add notification channels for a device. |
| push_device_reads_transactions | Number of transactions as a result of using the Push List Channels For Device endpoint, which allows developers to list all channels on which push notification has been enabled using specified pushToken. |
| push_notifications_replicated | Mobile Push Notification API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP) |
| push_notifications_edge | Mobile Push Notifications API calls that interact with a single PubNub Point-of-Presence (PoP) |
| push_notifications_apple | Transactions made to Apple Push Notification service |
| push_notifications_android | Transactions made to Firebase Cloud Messaging service |
| push_notifications_microsoft | Transactions made to Microsoft Push Notifications service |
| steam_controller_edge | Sream Controller API calls that interact with a single PubNub Point-of-Presence (PoP) |
| steam_controller_replicated | Stream Controller API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP) |
| streamcontroller_reads_transactions | Number of transactions generated by calls to the Channel Group List Channels API, counted in 2K buckets |
| streamcontroller_writes_transactions | Number of transactions generated by calls to the Channel Group Add/Remove Channels API, counted in 2K buckets |
| bytes_stored | Total storage usage |
| bytes_stored_blocks | Storage usage for blocks data |
| bytes_stored_channel_groups | Storage usage for channel groups data |
| bytes_stored_files | Storage usage for files data |
| bytes_stored_messages | Storage usage for messages data |
| bytes_stored_push | Storage usage for push notification data |
| bytes_stored_size_auth | Storage usage for authorization data |
| bytes_stored_users | Storage usage for user data |
| bytes_stored_memberships | Storage usage for membership data |
| events_ingested | Number of events ingested into the system |
| history_with_actions_transactions | Number of transactions generated by calls to the Storage & Playback service, to fetch message actions, counted in 2K buckets |
| mtd_txn_total | Month-to-date transaction count |
| mtd_txn_mtd_uuid_ratio | Ratio of month-to-date transactions to month-to-date unique users |
| signal_transactions | Number of transactions as a result of using the Signal endpoint, with the purpose of inputting message data, of a small size, into PubNub and having it delivered to subscribers to the given channel. |
| subscribe_signal_transactions | Number of transactions as a result of using the Subscribe endpoint, with the purpose of establishing and maintaining a subscription connection to PubNub as well as retrieving any published signal data. This number is based on a combination of API requests and payload sizes. It is not a metric to use to determine how many messages have been delivered. |
| subscribe_transactions | Transactions related to message subscriptions |
| subscribe_timeouts_transactions | Timeouts of subscriber connection |
| subscribe_objects_transactions | App Context related transactions triggered by Subscribers |
| subscribe_heartbeats_transactions | Total number of API requests made in order to establish connection, or 'heartbeat', to the PubNub network. |
| subscribe_streaming_transactions | Streaming Subscribe transactions |
| subscribe_clientclosedconnection_transactions | Client disconect transactions (HTTP 499) |
| subscribe_edge | API calls that interact with a single PubNub Point-of-Presence (PoP), such as receiving a published message via a Subscribe API call |
| publish_transactions | Number of publish transactions API |
| publish_edge | Number of client erros on Publish API that come from a single PubNub Point of Presence |
| publish_replicated | API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP), such as publishing a message |
| files_publish_transactions | Number of transactions generated by operation to publish file messages on a channel |
| files_delete_file_transactions | Number of transactions generated by the delete file operation to delete a file |
| files_generate_url_transactions | Number of transactions generated by the operation to generate pre-signed urls for file upload |
| files_get_file_transactions | Number of transactions generated by the get file operation to download file data |
| subscribe_files_transactions | Number of transactions generated by the get file operation to download file data |
| files_get_all_files_transactions | Number of transactions generated by the list files operation to list files stored for a channel |
| files_replicated | File Sharing API calls that result in information replicating across multiple PubNub Points-of-Presence (PoP), publish transactions. |
| files_edge | File Sharing API Calls that interact with a single PubNub Point of Presence |
| publish_bytes | The total number of message bytes published, as measured by total request length, for the time period. |
| subscribe_bytes | The total number of message bytes received by subscribers, as measured by total request length, for the time period. |
| publish_msg_average_size | The average size of the published messages for the time period. |
| message_ratio | The average size of the messages received by subscribers for the time period. |
| files_clienterrors_transactions | Number of File Sharing API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| publish_clienterrors_transactions | Number of Publish API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| subscribe_clienterrors_transactions | Number of Subscribe API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| signal_clienterrors_transactions | Number of Signal API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| streamcontroller_clienterrors_transactions | Number of Stream Controller API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| push_device_clienterrors_transactions | Number of Mobile Push Notifications API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| presence_clienterrors_transactions | Number of Presence API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| objects_clienterrors_transactions | Number of App Context API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| message_actions_clienterrors_transactions | Number of Message Reactions API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| history_with_actions_clienterrors_transactions | Number of History with Message Reactions API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| history_clienterrors_transactions | Number of History API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| accessmanager_clienterrors_transactions | Number of Access Manager API transactions resulted in other than HTTP 200 response code. Incorrect usage is generally a result of the wrong parameters and values being used in application code and execution. |
| history_with_actions_unauthorized_transactions | The number of transactions generated by calls to the Storage & Playback service, to fetch Message Reactions, that resulted in a 403 Forbidden error, counted in 2K buckets. |
| message_actions_unauthorized_transactions | The number of transactions generated by the Message Reactions API calls that resulted in a 403 Forbidden error, counted in 2K buckets. |
| objects_unauthorized_transactions | Number of transactions as a result of attempted unauthorized usage of the App Context endpoints. |
| signal_unauthorized_transactions | Number of transactions as a result of attempted unauthorized usage of the Signal endpoint. |
| subscribe_unauthorized_transactions | Number of transactions as a result of attempted unauthorized usage of the Subscribe endpoint. |
| publish_unauthorized_transactions | Number of transactions as a result of attempted unauthorized usage of the Publish endpoint. |
| files_unauthorized_transactions | Number of transactions as a result of attempted unauthorized usage of the files endpoints |
| msgs_total | Total messages sent and received through the use of all PubNub APIs |
| publish | Total number of messages published |
| subscribe_msgs | Total number of messages delivered to subscribers |
| history_msgs | The number of messages retrieved from storage, in total, within the time period. |
| pres_pub | Total number of messages published from Presence API |
| channel | The maximum number of unique active channels in time period. Activity is measured by any API requests involving a channel, whether subscribing or publishing to, fetching message history for, setting and getting presence associated data, among some other channel related API endpoints. |
| ip | The maximum number of unique active devices, based on IP address, in the time period. Activity is measured by Publish/Subscribe/History/Presence API requests within the time period. |
| key_ip_ch | The maximum number of unique active devices, based on IP address, in any channel in time period. Activity is measured by Subscribe API requests for any and all channels and the uniqueness check is within the channel, within the time period. For example, if within a day, Channels A, B, and C have respectively maximum number of unique users/devices/uuids 100,1000,1001, the Active Unique Devices by Channel for the day would be 1001. |
| key_ip_ua | The maximum number of unique active devices, based on User Agent, in the time period. Activity is measured by Publish/Subscribe/History/Presence API requests within the time period. |
| uuid | The maximum number of UUIDs, or Users, based on uuid specified in SDK or API, observed during the time period. |
| fire_transactions | The number of transactions generated by calls to the Fire API resource, counted in 2K buckets |
| fire_eh_transactions | Number of transactions as a result of using the Fire endpoint, which allows the developer to send a message to PubNub Functions. This API call is made from a developer's PubNub Function code and results in the message data being passed to another PubNub Function. |
| fire_client_transactions | Number of transactions as a result of using the Fire endpoint, which allows the developer to send a message to PubNub Functions. This API call is made from the developer's client application, with the message data sent to the PubNub network and subsequently passed to a PubNub Function. |