Skip to content

Commit 154f781

Browse files
committed
Add SLI docs
1 parent e8447b4 commit 154f781

File tree

3 files changed

+97
-1
lines changed

3 files changed

+97
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CDP – COMPLIANCE DATA PLATFORM documentation
2+
3+
## Overview
4+
5+
...
6+
7+
## Documentation
8+
9+
[SLI](docs/sli/README.md)

docs/sli/README.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SLI - Exposing
2+
3+
## Overview
4+
5+
This Compliance Data Platform (CDP) collects and exposes Service Level Indicators (SLIs) about Storage Providers (SP) measured by Bandwidth Measure System (BMS) and managed by RPA services.
6+
7+
---
8+
9+
## Collecting SLI - Architecture
10+
11+
```mermaid
12+
sequenceDiagram
13+
participant CDP_SERVICE
14+
participant CDP_SERVICE_DB@{ "type" : "database" }
15+
participant RPA_SERVICE
16+
17+
CDP_SERVICE->>+CDP_SERVICE_DB: get list of SP
18+
CDP_SERVICE_DB->>-CDP_SERVICE: return list of SP
19+
20+
CDP_SERVICE->>CDP_SERVICE: prepare chunks for RPA API
21+
22+
loop PER CHUNK
23+
CDP_SERVICE->>+RPA_SERVICE: POST: /providers
24+
RPA_SERVICE->>-CDP_SERVICE: return list of SP with data
25+
CDP_SERVICE->>CDP_SERVICE: prepare SLI data to save
26+
27+
end
28+
29+
CDP_SERVICE->>+CDP_SERVICE_DB: save SLI data
30+
```
31+
32+
---
33+
34+
## Available SLIs
35+
36+
List all Service Level Indicators.
37+
38+
### TTFB
39+
40+
- Name: TTFB
41+
- Description: Time to first byte
42+
- Unit: `ms`
43+
44+
---
45+
46+
### RPA_RETRIEVABILITY
47+
48+
- Name: RPA Retrievability
49+
- Description: RPA Retrievability percentage
50+
- Unit: `%`
51+
52+
---
53+
54+
### BANDWIDTH
55+
56+
- Name: Bandwidth
57+
- Description: Download bandwidth
58+
- Unit: `Mbps`
59+
60+
---
61+
62+
### CAR_FILES
63+
64+
- Name: CAR files Retrievability
65+
- Description: CAR files retrievability percentage
66+
- Unit: `%`
67+
68+
---
69+
70+
### IPNI_REPORTING
71+
72+
- Name: IPNI Reporting
73+
- Description: Percentage of days in the last month on which the storage provider successfully reported to IPNI
74+
- Unit: `%`
75+
76+
---
77+
78+
## Metrics Exposure
79+
80+
- Endpoint: `GET storage-providers/average-monthly-sli`
81+
- Format: `JSON`
82+
- Example:
83+
84+
```curl -X 'GET' \
85+
https://cdp.allocator.tech/storage-providers/average-monthly-sli?storageProvidersIds=f03623017&storageProvidersIds=f03644168' \
86+
-H 'accept: application/json'
87+
```

src/controller/storage-providers/storage-providers.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ export class StorageProvidersController extends ControllerBase {
563563
sliMetricType: StorageProviderUrlFinderSliMetricType.IPNI_REPORTING,
564564
sliMetricName: 'IPNI Reporting',
565565
sliMetricDescription:
566-
'Whether the storage provider has reported to IPNI in the last month',
566+
'Percentage of days in the last month on which the storage provider successfully reported to IPNI',
567567
sliMetricUnit: '%',
568568
};
569569

0 commit comments

Comments
 (0)