Metering
Overview
Description
The metering hub service is used to collect billable data and send it to "Metering-As-A-Service" (MaaS). This is accomplished by fetching data streams count as well as several storage details and sending them to MaaS on a daily basis. The collected data is then used as the calculation base for the pay-per-use contract of SAP IoT customers. The service takes the following items into account:
- API calls data streams (calculated and stored in Redis by route service)
- actions data streams (event-to-action)
- data ingestion data streams
- warm storage size
- cold storage size
- things count (number of things)
Artifacts
This component consists of the following artifacts:
| Name | Description | BCP Component |
|---|---|---|
| metering-hub | Collect billable usage data for a tenant. | IOT-BSV-OPS-MET |
| Artifact | Requirements |
|---|---|
| metering-hub | RAM: 1 GB |
Documentation
Operations
Availability Checks
The following table gives you an Overview of the general purpose of the various availability checks, followed by a list of links that point directly to the check results for the various artifacts and locations:
| Check | Purpose |
|---|---|
| L3 | Direct ping against the application. Shows whether the application is up and running. |
| L3+ | Ping against the application via the app router. Can reveal app router-related problems. |
| L4 | Requests some data from the application via the app router. Involves HANA interaction. Shows issues with the SAP HANA database. |
| L5 | Shows problems with tenant onboarding in the business partner during the last hour. |
Kibana
Authorization (Cloud Access Manager (CAM) profile): CP IoTAE MoD/DoD Auditor Production
| Landscape | Entry Point |
|---|---|
| EU10 | |
| US10 |
| Data Provider | Query |
|---|---|
| Warm Storage |
{
"query": {
"match": {
"layer": {
"query": "/Application/Provider/WarmStorage",
"type": "phrase"
}
}
}
}
|
| Action Data Streams |
{
"query": {
"match": {
"layer": {
"query": "/Application/Provider/ActionsDataStreams",
"type": "phrase"
}
}
}
}
|
| Cold Storage |
{
"query": {
"match": {
"layer": {
"query": "/Application/Provider/ColdStorage",
"type": "phrase"
}
}
}
}
|
| Things |
{
"query": {
"match": {
"layer": {
"query": "/Application/Provider/Things",
"type": "phrase"
}
}
}
}
|
| MaaS Writer |
{
"query": {
"match": {
"layer": {
"query": "/Application/MaaS/Writer",
"type": "phrase"
}
}
}
}
|
Dynatrace
| Landscape | Entry Point |
|---|---|
| EU10 | Monitor |
Grafana
n/a
Application Logs Available to Customers
n/a
Miscellaneous
n/a
Troubleshooting
Availability
| Check | Root Cause | Solution |
|---|---|---|
| L3 | n/a |
If the check fails 3 times in a row, log a support ticket (IOT-BSV-OPS-MET). |
| L3+ | n/a | n/a |
| L4 | n/a | n/a |
| L5 | n/a | n/a |
HTTP Errors
The following table presents a list of error-related HTTP status codes, the typical root causes, and the recommended actions for solving the issue.
| Status Code | Root Cause | Solution |
|---|---|---|
| 400 | n/a | n/a |
| 401 | n/a | n/a |
| 403 | n/a | n/a |
| 404 | n/a | n/a |
| 429 | n/a | n/a |
| 500 | n/a | n/a |
| 502 | n/a | n/a |
| 902 | n/a | n/a |
General Metrics
The following table presents a list of common metrics for this component with a threshold value indicating critical system load, along with a recommended action as well as the preferred monitoring tool, where applicable.
| Metric | Tool | Threshold | Action |
|---|---|---|---|
| CPU Usage | SAP BTP Cockpit
In the Search field, enter metering-hub to filter the relevant entries. |
The app sends warning messages related to the following cpu usage levels:
|
n/a |
| Memory Usage | SAP BTP Cockpit
In the Search field, enter metering-hub to filter the relevant entries. |
n/a | n/a |
| No. of Requests/Time | Dynatrace | n/a | n/a |
| Avg. Response Time | Dynatrace | n/a | n/a |
| Incoming Byte Rate | n/a | n/a | n/a |
| Outgoing Byte Rate | n/a | n/a | n/a |
Kafka Consumer/Producer
n/a
Additional Metrics
n/a
Miscellaneous
n/a