Skip to content

Commit

Permalink
add gateway daily p95 TTFB graph (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra authored Feb 16, 2024
1 parent ee638e6 commit a424bc5
Show file tree
Hide file tree
Showing 4 changed files with 481 additions and 4 deletions.
30 changes: 30 additions & 0 deletions config/plotdefs/gateway-ttfb-daily.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
frequency: daily
datasets:
- name: "ttfb"
source: "caracol"
query: >
select date, value from get_collected_values(21, {{ .StartOfDay | timestamptz }} - '90 day'::interval, {{ .StartOfDay | timestamptz }});
series:
- type: "bar"
name: "Total"
dataset: "ttfb"
labels: "date"
values: "value"

layout:
title:
text: "Data (90 days up to {{ .EndOfPreviousDay | simpledate }}). Source: ipfs.io / dweb.link access logs"
font:
size: 10
x: 0.99
xanchor: "right"
y: 0.01
yanchor: "bottom"
legend:
orientation: "h"
yaxis:
autorange: true
rangemode: "tozero"
title:
text: "p95 TTFB in ms"
11 changes: 7 additions & 4 deletions content.en/ipfsgateways/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,24 @@ In the following plots, requests are _not_ deduplicated, i.e., if there are two

#### Daily HTTP Requests to ipfs.io / dweb.link

{{< plotly json="../../plots/latest/gateway-requests-overall.json" height="600px" >}}
{{< plotly json="../../plots/latest/gateway-requests-overall.json" height="450px" >}}

#### Daily HTTP Requests to ipfs.io / dweb.link, by region

{{< plotly json="../../plots/latest/gateway-requests-region.json" height="600px" >}}
{{< plotly json="../../plots/latest/gateway-requests-region.json" height="450px" >}}

#### Daily HTTP Requests to ipfs.io / dweb.link, by type

{{< plotly json="../../plots/latest/gateway-requests-type.json" height="600px" >}}
{{< plotly json="../../plots/latest/gateway-requests-type.json" height="450px" >}}

#### Daily Unique Clients accessing ipfs.io / dweb.link

In the following plot we aggregate the total number of unique client IP addresses that appear in the ipfs.io and dweb.link log files for each day.
{{< plotly json="../../plots/latest/gateway-clients-overall.json" height="600px" >}}
{{< plotly json="../../plots/latest/gateway-clients-overall.json" height="450px" >}}

#### Daily p95 TTFB accessing ipfs.io / dweb.link

The following graph shows the 95th percentile of the time to first byte (TTFB) for accessing the ipfs.io and dweb.link gateways.

{{< plotly json="../../plots/latest/gateway-ttfb-daily.json" height="450px" >}}

222 changes: 222 additions & 0 deletions content.en/plots/2024/02/16/gateway-ttfb-daily.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"data": [
{
"type": "bar",
"hovertemplate": "",
"name": "Total",
"orientation": "v",
"visible": true,
"x": [
"2023-11-18T00:00:00Z",
"2023-11-19T00:00:00Z",
"2023-11-20T00:00:00Z",
"2023-11-21T00:00:00Z",
"2023-11-22T00:00:00Z",
"2023-11-23T00:00:00Z",
"2023-11-24T00:00:00Z",
"2023-11-25T00:00:00Z",
"2023-11-26T00:00:00Z",
"2023-11-27T00:00:00Z",
"2023-11-28T00:00:00Z",
"2023-11-29T00:00:00Z",
"2023-11-30T00:00:00Z",
"2023-12-01T00:00:00Z",
"2023-12-02T00:00:00Z",
"2023-12-03T00:00:00Z",
"2023-12-04T00:00:00Z",
"2023-12-05T00:00:00Z",
"2023-12-06T00:00:00Z",
"2023-12-07T00:00:00Z",
"2023-12-08T00:00:00Z",
"2023-12-09T00:00:00Z",
"2023-12-10T00:00:00Z",
"2023-12-11T00:00:00Z",
"2023-12-12T00:00:00Z",
"2023-12-13T00:00:00Z",
"2023-12-14T00:00:00Z",
"2023-12-15T00:00:00Z",
"2023-12-16T00:00:00Z",
"2023-12-17T00:00:00Z",
"2023-12-18T00:00:00Z",
"2023-12-19T00:00:00Z",
"2023-12-20T00:00:00Z",
"2023-12-21T00:00:00Z",
"2023-12-22T00:00:00Z",
"2023-12-23T00:00:00Z",
"2023-12-24T00:00:00Z",
"2023-12-25T00:00:00Z",
"2023-12-26T00:00:00Z",
"2023-12-27T00:00:00Z",
"2023-12-28T00:00:00Z",
"2023-12-29T00:00:00Z",
"2023-12-30T00:00:00Z",
"2023-12-31T00:00:00Z",
"2024-01-01T00:00:00Z",
"2024-01-02T00:00:00Z",
"2024-01-03T00:00:00Z",
"2024-01-04T00:00:00Z",
"2024-01-05T00:00:00Z",
"2024-01-06T00:00:00Z",
"2024-01-07T00:00:00Z",
"2024-01-08T00:00:00Z",
"2024-01-09T00:00:00Z",
"2024-01-10T00:00:00Z",
"2024-01-11T00:00:00Z",
"2024-01-12T00:00:00Z",
"2024-01-13T00:00:00Z",
"2024-01-14T00:00:00Z",
"2024-01-15T00:00:00Z",
"2024-01-16T00:00:00Z",
"2024-01-17T00:00:00Z",
"2024-01-18T00:00:00Z",
"2024-01-19T00:00:00Z",
"2024-01-20T00:00:00Z",
"2024-01-21T00:00:00Z",
"2024-01-22T00:00:00Z",
"2024-01-23T00:00:00Z",
"2024-01-24T00:00:00Z",
"2024-01-25T00:00:00Z",
"2024-01-26T00:00:00Z",
"2024-01-27T00:00:00Z",
"2024-01-28T00:00:00Z",
"2024-01-29T00:00:00Z",
"2024-01-30T00:00:00Z",
"2024-01-31T00:00:00Z",
"2024-02-01T00:00:00Z",
"2024-02-02T00:00:00Z",
"2024-02-03T00:00:00Z",
"2024-02-04T00:00:00Z",
"2024-02-05T00:00:00Z",
"2024-02-06T00:00:00Z",
"2024-02-07T00:00:00Z",
"2024-02-08T00:00:00Z",
"2024-02-09T00:00:00Z",
"2024-02-10T00:00:00Z",
"2024-02-11T00:00:00Z",
"2024-02-12T00:00:00Z",
"2024-02-13T00:00:00Z",
"2024-02-14T00:00:00Z",
"2024-02-15T00:00:00Z"
],
"y": [
62.561933828530044,
55.535424722794616,
56.15322549321274,
21.293104348125212,
24.824753720300734,
22.319481771700694,
32.1534556207114,
27.728925827695807,
53.427785557360714,
84.06402283292822,
110.75872605982318,
213.54793951988785,
79.53970101025475,
44.34467779536911,
27.996793102530873,
16.106189213688303,
34.36814760634482,
22.06052378530333,
38.597458118970735,
47.68581743693165,
48.223914978576445,
71.32366417849124,
40.27306736040752,
9.678965731703041,
19.21936484523878,
24.13952482108526,
16.36703727183122,
9.999667324108389,
9.78500565355445,
21.941799703601067,
9.773198367618912,
9.857727051550171,
19.406248057593423,
43.452636442571375,
49.38456720433877,
77.47081051050556,
62.81174972889635,
80.76777394423974,
70.95867728408214,
91.58003404951347,
64.83659226730707,
62.51060992766179,
81.73429556619311,
98.6119889452082,
156.9952082392459,
191.99609527451832,
111.6607355626745,
92.95132185055282,
97.72082577174025,
141.50429735155726,
172.54076122301188,
173.2813609269308,
112.58217599489392,
137.65878477973607,
100.28478835459897,
150.2180172188399,
207.952836287146,
274.65113191695843,
268.937151161581,
204.78432018195008,
196.76631566275296,
226.88482681103017,
251.9342640514254,
245.5119593709045,
254.89286777576424,
225.83869432740087,
168.24967048362967,
186.174320641445,
178.00453809841324,
184.89325839646864,
240.4514256915162,
278.4165445172358,
253.14650702272755,
220.51783780666275,
213.87271757858076,
194.871016798212,
169.28558009373768,
190.23234447290037,
204.96310482830285,
184.71138108866364,
101.39798349621512,
119.0657299160315,
85.30816529082509,
70.3938649668342,
77.93638351270282,
95.72711630411857,
80.76074144383698,
76.15056620056635,
63.040068512081774,
52.9447988925977
],
"yaxis": ""
}
],
"layout": {
"annotations": null,
"legend": {
"orientation": "h"
},
"title": {
"font": {
"size": 10
},
"text": "Data (90 days up to 15 Feb 2024). Source: ipfs.io / dweb.link access logs",
"x": 0.99,
"xanchor": "right",
"y": 0.01,
"yanchor": "bottom"
},
"yaxis": {
"autorange": true,
"rangemode": "tozero",
"title": {
"text": "p95 TTFB in ms"
}
}
},
"params": null,
"dynamicLayout": null,
"config": null
}
Loading

0 comments on commit a424bc5

Please sign in to comment.