├── .env
├── .gitignore
├── doc
├── slo_grafana.png
└── slo_grafana.excalidraw
├── .github
├── config.yml
├── ISSUE_TEMPLATE
│ ├── question.md
│ ├── feature_request.md
│ └── bug_report.md
├── stale.yml
├── workflows
│ └── cla.yml
└── pull_request_template.md
├── deployments
├── grafana
│ └── provisioning
│ │ ├── datasources
│ │ └── prometheus_ds.yml
│ │ └── dashboards
│ │ ├── dashboard.yml
│ │ └── SLOs-for-APIs-managed-by-Tyk.json
├── prometheus
│ ├── prometheus.yml
│ └── slos.rules.yml
├── tyk-pump
│ └── pump.conf
├── k6
│ └── load.js
└── tyk-gateway
│ ├── tyk.conf
│ └── apps
│ ├── httpbin.json
│ └── httpstatus.json
├── docker-compose.yml
├── CONTRIBUTING.md
├── README.md
└── LICENSE
/.env:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | *.tmpl
3 | data/grafana/*
4 | data/prometheus/*
--------------------------------------------------------------------------------
/doc/slo_grafana.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TykTechnologies/demo-slo-prometheus-grafana/HEAD/doc/slo_grafana.png
--------------------------------------------------------------------------------
/.github/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 | contact_links:
3 | - name: Community Forum
4 | url: https://community.tyk.io
5 | About: Ask a question in TYK Community Forum.
6 |
7 |
--------------------------------------------------------------------------------
/deployments/grafana/provisioning/datasources/prometheus_ds.yml:
--------------------------------------------------------------------------------
1 | datasources:
2 | - name: Prometheus
3 | access: proxy
4 | type: prometheus
5 | url: http://prometheus:9090
6 | isDefault: true
--------------------------------------------------------------------------------
/deployments/prometheus/prometheus.yml:
--------------------------------------------------------------------------------
1 | global:
2 | scrape_interval: 15s
3 | evaluation_interval: 15s
4 |
5 | rule_files:
6 | - "slos.rules.yml"
7 |
8 | scrape_configs:
9 | - job_name: tyk
10 | static_configs:
11 | - targets: ['host.docker.internal:8084']
12 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/question.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: "❓Ask A question"
3 | about: Ask a question
4 | title: ASK IN THE COMMUNITY FORUM !
5 | labels: question
6 | assignees: ''
7 |
8 | ---
9 |
10 | Issues in this repo are for feature request and bug reporting.
11 |
12 | For questions please find us in the community forum: https://community.tyk.io
13 |
14 |
15 | Clients can also use support@tyk.io.
16 |
17 | Potential clients and evaluators, please use info@tyk.io.
18 |
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 60
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 11
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - pinned
8 | - security
9 |
10 | # Label to use when marking an issue as stale
11 | staleLabel: wontfix
12 | # Comment to post when marking an issue as stale. Set to `false` to disable
13 | markComment: >
14 | This issue has been automatically marked as stale because it has not had
15 | recent activity. It will be closed if no further activity occurs. Thank you
16 | for your contributions.
17 | # Comment to post when closing a stale issue. Set to `false` to disable
18 | closeComment: false
--------------------------------------------------------------------------------
/deployments/grafana/provisioning/dashboards/dashboard.yml:
--------------------------------------------------------------------------------
1 | apiVersion: 1
2 |
3 | providers:
4 | # an unique provider name
5 | - name: 'Tyk API Gateway'
6 | # org id. will default to orgId 1 if not specified
7 | orgId: 1
8 | # name of the dashboard folder. Required
9 | folder: ''
10 | # folder UID. will be automatically generated if not specified
11 | folderUid: ''
12 | # provider type. Required
13 | type: file
14 | # disable dashboard deletion
15 | disableDeletion: false
16 | # enable dashboard editing
17 | editable: true
18 | # how often Grafana will scan for changed dashboards
19 | updateIntervalSeconds: 10
20 | options:
21 | # path to dashboard files on disk. Required
22 | path: /etc/grafana/provisioning/dashboards
--------------------------------------------------------------------------------
/deployments/prometheus/slos.rules.yml:
--------------------------------------------------------------------------------
1 | # This file based on the work from
2 | # https://landing.google.com/sre/workbook/chapters/alerting-on-slos/
3 |
4 | groups:
5 | - name: tyk
6 | rules:
7 | - record: task:http_response_error_count
8 | expr: tyk_http_requests_total{response_code=~"5[0-9]{2}"}
9 |
10 | - record: task:http_response_total_count
11 | expr: tyk_http_requests_total{response_code=~"[0-9]{3}"}
12 |
13 | - record: task:http_response_error_rate
14 | expr: sum by (job,api_name) (rate(task:http_response_error_count[1m]))
15 |
16 | - name: slo_metrics
17 | rules:
18 |
19 | - record: job:slo_errors_per_request:ratio_rate10m
20 | expr: sum by (job,api_name) (rate(task:http_response_error_count[10m])) / sum by (job,api_name) (rate(task:http_response_total_count[10m]))
21 |
22 | - record: job:error_budget:remaining
23 | expr: (1 - job:slo_errors_per_request:ratio_rate10m) * 100
--------------------------------------------------------------------------------
/deployments/tyk-pump/pump.conf:
--------------------------------------------------------------------------------
1 | {
2 | "analytics_storage_type": "redis",
3 | "analytics_storage_config": {
4 | "type": "redis",
5 | "host": "tyk-redis",
6 | "port": 6379,
7 | "hosts": null,
8 | "username": "",
9 | "password": "",
10 | "database": 0,
11 | "optimisation_max_idle": 100,
12 | "optimisation_max_active": 100,
13 | "enable_cluster": false
14 | },
15 | "purge_delay": 2,
16 | "pumps": {
17 | "prometheus": {
18 | "type": "prometheus",
19 | "meta": {
20 | "listen_address": ":8084",
21 | "path": "/metrics",
22 | "custom_metrics":[
23 | {
24 | "name":"tyk_http_requests_total",
25 | "description":"Total of API requests",
26 | "metric_type":"counter",
27 | "labels":["response_code","api_name","method","api_key","alias","path"]
28 | },
29 | {
30 | "name":"tyk_http_latency",
31 | "description":"Latency of API requests",
32 | "metric_type":"histogram",
33 | "labels":["type","response_code","api_name","method","api_key","alias","path"]
34 | }
35 | ]
36 | }
37 | }
38 | },
39 | "dont_purge_uptime_data": true,
40 | "statsd_connection_string": "graphite:8125"
41 | }
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: enhancement
6 | assignees: ''
7 |
8 | ---
9 |
17 | ### Is your feature request related to a problem? Please describe.
18 |
19 |
20 |
21 |
34 |
35 | ### Current Behavior
36 |
37 |
38 |
39 | ### Describe the solution you'd like
40 |
41 |
42 | ### Describe alternatives you've considered
43 |
44 |
45 | ### Additional context
46 |
47 |
--------------------------------------------------------------------------------
/.github/workflows/cla.yml:
--------------------------------------------------------------------------------
1 | name: "CLA Assistant"
2 | on:
3 | issue_comment:
4 | types: [created]
5 | pull_request_target:
6 | types: [opened,closed,synchronize]
7 |
8 | jobs:
9 | CLAssistant:
10 | runs-on: ubuntu-latest
11 | steps:
12 | - name: "CLA Assistant"
13 | if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
14 | # Beta Release
15 | uses: contributor-assistant/github-action@v2.2.0
16 | env:
17 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 | PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_GH_TOKEN}}
19 | with:
20 | path-to-signatures: 'signatures/version1/cla.json'
21 | path-to-document: 'https://github.com/TykTechnologies/tyk/blob/master/CLA.md'
22 | # branch should not be protected
23 | branch: 'main'
24 | ##people who don't have to sign the CLA comma separated e.g user1,user2
25 | allowlist: bot*
26 |
27 | #below are the optional inputs - If the optional inputs are not given, then default values will be taken
28 | remote-organization-name: 'TykTechnologies'
29 | remote-repository-name: 'cla'
30 | #create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
31 | #signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
32 | #custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
33 | #custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
34 | #custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
35 | lock-pullrequest-aftermerge: false
36 |
37 |
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3.3'
2 | services:
3 | tyk-gateway:
4 | image: tykio/tyk-gateway:v4.1rc26
5 | ports:
6 | - 8080:8080
7 | networks:
8 | tyk:
9 | environment:
10 | - TYK_LOGLEVEL=${GATEWAY_LOGLEVEL:-info}
11 | - TYK_INSTRUMENTATION=${INSTRUMENTATION_ENABLED:-0}
12 | - TYK_GW_TRACER_ENABLED=${TRACING_ENABLED:-false}
13 | - TYK_GW_HTTPSERVEROPTIONS_ENABLEHTTP2=true
14 | - TYK_GW_PROXYENABLEHTTP2=true
15 | - TYK_GW_HTTPSERVEROPTIONS_FLUSHINTERVAL=1
16 | - TYK_GW_ANALYTICSCONFIG_ENABLEGEOIP=true
17 | env_file:
18 | - .env
19 | volumes:
20 | - ./deployments/tyk-gateway/apps:/opt/tyk-gateway/apps
21 | - ./deployments/tyk-gateway/tyk.conf:/opt/tyk-gateway/tyk.conf
22 | depends_on:
23 | - tyk-redis
24 |
25 | tyk-pump:
26 | image: tykio/tyk-pump-docker-pub:v1.7.0-rc1
27 | ports:
28 | - 8083:8083
29 | - 8084:8084
30 | networks:
31 | - tyk
32 | volumes:
33 | - ./deployments/tyk-pump/pump.conf:/opt/tyk-pump/pump.conf
34 | environment:
35 | - TYK_INSTRUMENTATION=${INSTRUMENTATION_ENABLED:-0}
36 | - TYK_LOGLEVEL=${PUMP_LOGLEVEL:-info}
37 | env_file:
38 | - .env
39 | depends_on:
40 | - tyk-redis
41 |
42 | tyk-redis:
43 | image: redis:6.0.4
44 | ports:
45 | - "6379:6379"
46 | volumes:
47 | - tyk-redis-data:/data
48 | networks:
49 | - tyk
50 |
51 | prometheus:
52 | image: prom/prometheus
53 | volumes:
54 | - ./deployments/prometheus/:/prometheus
55 | - ./data/prometheus:/data
56 | command:
57 | - '--config.file=/prometheus/prometheus.yml'
58 | - '--storage.tsdb.path=/data'
59 | ports:
60 | - "9090:9090"
61 | networks:
62 | - tyk
63 |
64 | k6:
65 | image: grafana/k6:latest
66 | networks:
67 | - tyk
68 | ports:
69 | - "6565:6565"
70 | volumes:
71 | - ./deployments/k6/:/scripts
72 |
73 | grafana:
74 | image: grafana/grafana-oss
75 | ports:
76 | - 3000:3000
77 | volumes:
78 | - ./deployments/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources/
79 | - ./deployments/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards/
80 | - ./data/grafana/:/var/lib/grafana
81 | networks:
82 | - tyk
83 |
84 |
85 | volumes:
86 | tyk-redis-data:
87 | grafana-data:
88 |
89 | networks:
90 | tyk:
91 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 | ## Description
2 |
3 |
4 | ## Related Issue
5 |
6 |
7 |
8 |
9 |
10 | ## Motivation and Context
11 |
12 |
13 | ## Test Coverage For This Change
14 |
15 |
17 |
18 | ## Screenshots (if appropriate)
19 |
20 | ## Types of changes
21 |
22 | - [ ] Bug fix (non-breaking change which fixes an issue)
23 | - [ ] New feature (non-breaking change which adds functionality)
24 | - [ ] Breaking change (fix or feature that would cause existing functionality to change)
25 | - [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality)
26 | - [ ] Documentation updates or improvements.
27 |
28 |
29 | ## Checklist
30 |
31 |
32 | - [ ] I have [reviewed the guidelines](./CONTRIBUTING.md) for contributing to this repository.
33 | - [ ] Make sure you are requesting to **pull a topic/feature/bugfix branch** (right side). If PRing from your fork, don't come from your `master`!
34 | - [ ] Make sure you are making a pull request against our **`master` branch** (left side). Also, it would be best if you started *your change* off *our latest `master`*.
35 | - [ ] My change requires a change to the documentation.
36 | - [ ] I have manually updated the README(s)/documentation accordingly.
37 | - [ ] If you've changed APIs, describe what needs to be updated in the documentation.
38 | - [ ] I have updated the documentation accordingly.
39 | - [ ] Modules and vendor dependencies have been updated; run `go mod tidy && go mod vendor`
40 | - [ ] When updating library version must provide reason/explanation for this update.
41 | - [ ] I have added tests to cover my changes.
42 | - [ ] All new and existing tests passed.
43 | - [ ] Check your code additions will not fail linting checks:
44 | - [ ] `gofmt -s -w .`
45 | - [ ] `go vet ./...`
46 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 🐛 Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees:
7 |
8 | ---
9 |
10 |
14 |
15 | ## Describe the bug
16 |
22 |
23 | ## Expected Behaviour
24 |
25 |
26 | ## Current Behaviour
27 |
28 |
29 | ## Possible Solution
30 |
31 |
32 | ## Steps To Reproduce
33 |
34 |
39 |
44 | ## Important configurations
45 |
46 |
47 | ## Logs/Errors
48 |
53 |
54 | ## Screenshots/Video
55 |
56 |
57 | ## Context
58 |
59 |
60 |
61 | ## Your Environment
62 |
63 |
64 |
68 | ## Additional context
69 |
70 |
71 |
72 | [repo]: tyk-templates
73 |
74 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Table of Contents
2 | 1. [Contributing to Tyk](#contributing-to-tyk)
3 | 2. [Our SLA for issues and bugs](#our-sla-for-issues-and-bugs)
4 | 3. [Filling an issue](#filling-an-issue)
5 | 4. [Contributor License Agreements](#contributor-license-agreements)
6 | 5. [Guidelines for Pull Requests](#guidelines-for-pull-requests)
7 | 6. [Project Structure](#project-structure)
8 | 7. [Building and Running test](#building-and-running-test)
9 | 8. [Coding Conventions](#coding-conventions)
10 | 9. [Resources](#resources)
11 |
12 | # Contributing to Tyk
13 |
14 | **First**: if you're unsure or afraid of anything, just ask or submit the issue or pull request anyway. You won't be yelled at for giving your best effort. The worst that can happen is that you'll be politely asked to change something. We appreciate any sort of contributions, and don't want a wall of rules to get in the way of that.
15 |
16 | However, for those individuals who want a bit more guidance on the best way to contribute to the project, read on. This document will cover what we're looking for. By addressing all the points we're looking for, it raises the chances we can quickly merge or address your contributions.
17 |
18 | ### Our SLA for issues and bugs
19 | We do value the time each contributor spends contributing to this repo, and we work hard to make sure we respond to your issues and pull request as soon as we can.
20 |
21 | ### Filling an issue
22 | Before opening an issue, if you have a question about Tyk or have a problem using it, please start with the GitHub search and our [community forum](https://community.tyk.io). If that doesn't answer your questions, and you have an idea for a new capability or if you think you found a bug, [file an
23 | issue].
24 |
25 | ### Contributor License Agreements
26 |
27 | Before we can accept any PR the contributor need to sign the [TYK CLA](https://github.com/TykTechnologies/tyk/blob/master/CLA.md).
28 |
29 | Once you are CLA'ed, we'll be able to accept your pull requests.For any issues that you face during this process, please create a GitHub issue explaining the problem, and we will help get it sorted out.
30 |
31 | ### Guidelines for Pull Requests
32 | We have created a few guidelines to help with creating PR. To make sure these requirements are followed we added them to the PR form as well:
33 |
34 | 1. When working on an existing issue, simply respond to the issue and express interest in working on it. This helps other people know that the issue is active, and hopefully prevents duplicated efforts.
35 | 2. For new ideas or breaking changes it is always better to open an issue and discuss your idea with our team first, before implementing it.
36 | 3. Create small Pull request that address a single issue instead of multiple issues at the same time. This will make it possible for the PRs to be reviewed independently.
37 | 5. Make sure to run tests locally before submitting a pull request and verify that all of them are passing.
38 | 6. Documentation - a new capability or improvement needs to be exposed in the form of documentation which needs to be created before this PR is merged. Please open a ticket in [Tyk docs repo](https://github.com/TykTechnologies/tyk-docs/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=) with all the relevant content and link it to the code PR. We are also happy work with you on creating docs so please let us know. Once the docs are ready and review has been done we can merge the PR
39 | 7. Tips for making sure we review your pull request faster :
40 | 1. Code is documented. Please comment the code where possible, especially for fields and functions.
41 | 2. Use meaningful commit messages.
42 | 3. Keep your pull request up to date with upstream master to avoid merge conflicts.
43 | 4. Provide a good PR description as a record of what change is being made and why it was made. Link to a GitHub issue if it exists.
44 | 5. Tick all the relevant checkboxes in the PR form
45 |
46 | ### Resources
47 | - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
48 | - [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
49 |
50 |
51 | [file an issue]: https://github.com/TykTechnologies/demo-slo-prometheus-grafana/issues/new/choose
52 |
53 |
--------------------------------------------------------------------------------
/deployments/k6/load.js:
--------------------------------------------------------------------------------
1 | import http from 'k6/http';
2 | import { sleep } from 'k6';
3 | import { randomIntBetween } from 'https://jslib.k6.io/k6-utils/1.2.0/index.js';
4 |
5 |
6 | export const options = {
7 | discardResponseBodies: true,
8 | scenarios: {
9 | success: {
10 | executor: 'constant-vus',
11 | exec: 'success',
12 | vus: 50,
13 | duration: '15m',
14 | },
15 | failor: {
16 | executor: 'constant-vus',
17 | exec: 'error',
18 | vus: 30,
19 | duration: '15m',
20 | },
21 | status: {
22 | executor: 'constant-vus',
23 | exec: 'status',
24 | vus: 40,
25 | duration: '15m',
26 | },
27 | differentPath: {
28 | executor: 'constant-vus',
29 | exec: 'differentPath',
30 | vus: 60,
31 | duration: '15m',
32 | },
33 | differentMethod: {
34 | executor: 'constant-vus',
35 | exec: 'differentMethod',
36 | vus: 10,
37 | duration: '15m',
38 | },
39 | breakingSlo: {
40 | executor: 'per-vu-iterations',
41 | exec: 'breakingSlo',
42 | vus: 50,
43 | iterations: 100,
44 | startTime: '2m',
45 | maxDuration: '1m',
46 | }
47 | },
48 | };
49 |
50 | export function success() {
51 | http.get('http://host.docker.internal:8080/httpbin/status/200');
52 | }
53 |
54 | export function breakingSlo() {
55 | http.get('http://host.docker.internal:8080/httpbin/status/502');
56 | }
57 |
58 | export function status() {
59 | http.get('http://host.docker.internal:8080/status/200');
60 | const expr = randomIntBetween(1, 20);
61 | if (expr == 1) {
62 | http.get('http://host.docker.internal:8080/status/500');
63 | }
64 | if (expr == 2 || expr == 3) {
65 | http.get('http://host.docker.internal:8080/status/404');
66 | }
67 | }
68 |
69 |
70 | export function error() {
71 |
72 | const expr = randomIntBetween(1, 10);
73 | switch (expr) {
74 | case 1:
75 | http.get('http://host.docker.internal:8080/httpbin/status/400');
76 | break;
77 | case 2:
78 | http.get('http://host.docker.internal:8080/httpbin/status/404');
79 | case 3:
80 | http.get('http://host.docker.internal:8080/httpbin/status/500');
81 | break;
82 | case 4:
83 | http.get('http://host.docker.internal:8080/httpbin/status/502');
84 | break;
85 | case 5:
86 | http.get('http://host.docker.internal:8080/httpbin/status/503');
87 | break;
88 | }
89 | sleep(randomIntBetween(1, 5)); // sleep between 1 and 5 seconds.
90 | }
91 |
92 |
93 | export function differentPath() {
94 |
95 | const expr = randomIntBetween(1, 5);
96 | switch (expr) {
97 | case 1:
98 | http.get('http://host.docker.internal:8080/httpbin/cache');
99 | break;
100 | case 2:
101 | http.get('http://host.docker.internal:8080/httpbin/ip');
102 | case 3:
103 | http.get('http://host.docker.internal:8080/httpbin/headers');
104 | break;
105 | case 4:
106 | http.get('http://host.docker.internal:8080/httpbin/user-agent');
107 | break;
108 | case 5:
109 | http.get('http://host.docker.internal:8080/httpbin/image');
110 | break;
111 | }
112 |
113 | const random = randomIntBetween(1, 7)
114 | if (random == 1) {
115 | http.get('http://host.docker.internal:8080/httpbin/status/500');
116 | sleep(1); // sleep between 1
117 | }
118 | }
119 |
120 |
121 | export function differentMethod() {
122 |
123 | var payload;
124 | var params;
125 |
126 | payload = JSON.stringify({
127 | content: 'aaa',
128 | });
129 |
130 | params = {
131 | headers: {
132 | 'Content-Type': 'application/json',
133 | },
134 | };
135 |
136 | const expr = randomIntBetween(1, 5);
137 | switch (expr) {
138 | case 1:
139 | http.post("http://host.docker.internal:8080/httpbin/post", payload, params);
140 | break;
141 | case 2:
142 | http.patch("http://host.docker.internal:8080/httpbin/patch", payload, params);
143 | break;
144 | case 3:
145 | http.del("http://host.docker.internal:8080/httpbin/delete", payload, params);
146 | break;
147 | case 4:
148 | http.put("http://host.docker.internal:8080/httpbin/put", payload, params);
149 | break;
150 | case 5:
151 | http.post("http://host.docker.internal:8080/httpbin/response-headers", payload, params);
152 | break;
153 | }
154 |
155 | }
--------------------------------------------------------------------------------
/deployments/tyk-gateway/tyk.conf:
--------------------------------------------------------------------------------
1 | {
2 | "listen_address": "",
3 | "listen_port": 8080,
4 | "secret": "28d220fd77974a4facfb07dc1e49c2aa",
5 | "node_secret": "352d20ee67be67f6340b4c0605b044b7",
6 | "template_path": "./templates",
7 | "tyk_js_path": "./js/tyk.js",
8 | "middleware_path": "./middleware",
9 | "use_db_app_configs": false,
10 | "app_path": "./apps/",
11 | "storage": {
12 | "type": "redis",
13 | "host": "tyk-redis",
14 | "port": 6379,
15 | "hosts": null,
16 | "username": "",
17 | "password": "",
18 | "database": 0,
19 | "optimisation_max_idle": 3000,
20 | "optimisation_max_active": 5000,
21 | "enable_cluster": false
22 | },
23 | "enable_separate_cache_store": false,
24 | "enable_analytics": true,
25 | "analytics_config": {
26 | "type": "mongo",
27 | "ignored_ips": [],
28 | "enable_detailed_recording": false,
29 | "enable_geo_ip": false,
30 | "geo_ip_db_path": "./GeoLite2-City.mmdb",
31 | "normalise_urls": {
32 | "enabled": true,
33 | "normalise_uuids": true,
34 | "normalise_numbers": true,
35 | "custom_patterns": []
36 | }
37 | },
38 | "health_check": {
39 | "enable_health_checks": false,
40 | "health_check_value_timeouts": 0
41 | },
42 | "optimisations_use_async_session_write": true,
43 | "allow_master_keys": false,
44 | "hash_keys": true,
45 | "hash_key_function": "murmur64",
46 | "suppress_redis_signal_reload": false,
47 | "suppress_default_org_store": false,
48 | "use_redis_log": true,
49 | "sentry_code": "",
50 | "use_sentry": false,
51 | "use_syslog": false,
52 | "use_graylog": false,
53 | "use_logstash": false,
54 | "graylog_network_addr": "",
55 | "logstash_network_addr": "",
56 | "syslog_transport": "",
57 | "logstash_transport": "",
58 | "syslog_network_addr": "",
59 | "enforce_org_data_age": true,
60 | "enforce_org_data_detail_logging": false,
61 | "enforce_org_quotas": true,
62 | "experimental_process_org_off_thread": false,
63 | "enable_non_transactional_rate_limiter": true,
64 | "enable_sentinel_rate_limiter": false,
65 | "Monitor": {
66 | "enable_trigger_monitors": false,
67 | "configuration": {
68 | "method": "",
69 | "target_path": "",
70 | "template_path": "",
71 | "header_map": null,
72 | "event_timeout": 0
73 | },
74 | "global_trigger_limit": 0,
75 | "monitor_user_keys": false,
76 | "monitor_org_keys": false
77 | },
78 | "oauth_refresh_token_expire": 0,
79 | "oauth_token_expire": 0,
80 | "oauth_redirect_uri_separator": ";",
81 | "slave_options": {
82 | "use_rpc": false,
83 | "connection_string": "",
84 | "rpc_key": "",
85 | "api_key": "",
86 | "enable_rpc_cache": false,
87 | "bind_to_slugs": false,
88 | "disable_keyspace_sync": false,
89 | "group_id": ""
90 | },
91 | "disable_virtual_path_blobs": false,
92 | "local_session_cache": {
93 | "disable_cached_session_state": true,
94 | "cached_session_timeout": 0,
95 | "cached_session_eviction": 0
96 | },
97 | "http_server_options": {
98 | "override_defaults": false,
99 | "read_timeout": 0,
100 | "write_timeout": 0,
101 | "use_ssl": false,
102 | "use_ssl_le": false,
103 | "enable_websockets": true,
104 | "certificates": [],
105 | "server_name": "",
106 | "min_version": 0,
107 | "flush_interval": 0
108 | },
109 | "service_discovery": {
110 | "default_cache_timeout": 0
111 | },
112 | "close_connections": false,
113 | "auth_override": {
114 | "force_auth_provider": false,
115 | "auth_provider": {
116 | "name": "",
117 | "storage_engine": "",
118 | "meta": null
119 | },
120 | "force_session_provider": false,
121 | "session_provider": {
122 | "name": "",
123 | "storage_engine": "",
124 | "meta": null
125 | }
126 | },
127 | "uptime_tests": {
128 | "disable": false,
129 | "config": {
130 | "failure_trigger_sample_size": 1,
131 | "time_wait": 30,
132 | "checker_pool_size": 50,
133 | "enable_uptime_analytics": true
134 | }
135 | },
136 | "hostname": "",
137 | "enable_api_segregation": false,
138 | "control_api_hostname": "",
139 | "enable_custom_domains": true,
140 | "enable_jsvm": true,
141 | "coprocess_options": {
142 | "enable_coprocess": true
143 | },
144 | "hide_generator_header": false,
145 | "event_handlers": {
146 | "events": {}
147 | },
148 | "event_trigers_defunct": {},
149 | "pid_file_location": "./tyk-gateway.pid",
150 | "allow_insecure_configs": false,
151 | "public_key_path": "certs/public-key.pem",
152 | "close_idle_connections": false,
153 | "allow_remote_config": true,
154 | "enable_bundle_downloader": true,
155 | "bundle_base_url": "http://http-server/",
156 | "max_idle_connections_per_host": 500,
157 | "tracing": {
158 | "enabled": false,
159 | "name": "zipkin",
160 | "options": {
161 | "reporter": {
162 | "url": "http://zipkin:9411/api/v2/spans"
163 | }
164 | }
165 | },
166 | "enable_hashed_keys_listing": true,
167 | "statsd_connection_string": "graphite:8125",
168 | "secrets": {
169 | "target_url": "http://httpbin/",
170 | "listen_path": "/secret-path/",
171 | "header": "secret-header-value"
172 | }
173 | }
174 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SLIs and SLOs with Prometheus and Grafana for your APIs managed by Tyk
2 |
3 | ## About
4 |
5 | This is a demo project running on Docker, that shows how to configure [Tyk Gateway](https://github.com/TykTechnologies/tyk), [Tyk Pump](https://github.com/TykTechnologies/tyk-pump), [Prometheus](https://prometheus.io/) and [Grafana OSS](https://grafana.com/grafana/) to set-up a dashboard with SLIs and SLOs for your APIs managed by Tyk.
6 |
7 | You can use it to explore the Prometheus metrics exposed by Tyk Pump and use them in a Grafana dashboard.
8 |
9 | 
10 |
11 |
12 | ## Deploy and run the demo
13 |
14 | 1. Clone this repository:
15 |
16 | ```
17 | git clone https://github.com/TykTechnologies/demo-slo-prometheus-grafana.git
18 | ```
19 |
20 | 2. Start the services
21 |
22 | ```
23 | cd ./demo-slo-prometheus-grafana/
24 | docker compose up -d
25 | ```
26 |
27 | 3. Verify that all services are running
28 |
29 | - Tyk Gateway
30 | - Health check runs on [http://localhost:8080/hello](http://localhost:8080/hello)
31 | - httpbin API runs on [http://localhost:8080/httpbin/](http://localhost:8080/httpbin/)
32 | - httpstatus API runs on [http://localhost:8080/status/](http://localhost:8080/status/)
33 | - Tyk Pump
34 | - Health check runs on [http://localhost:8083/health](http://localhost:8083/health)
35 | - Prometheus metrics endpoint runs on [http://localhost:8084/metrics](http://localhost:8084/metrics)
36 | - Prometheus runs on [http://localhost:9090/](http://localhost:9090/)
37 | - Grafana OSS runs on [http://localhost:3000/](http://localhost:3000/)
38 | - The default log-in at start is admin/admin, once logged in you will be prompted for a new password
39 |
40 | 4. Generate traffic
41 |
42 | [K6](https://k6.io/) is used to generate traffic to the API endpoints. The load script [load.js](./deployments/k6/load.js) will run for 15 minutes.
43 |
44 | ```
45 | docker compose run k6 run /scripts/load.js
46 | ```
47 |
48 | You will see K6 output in your terminal:
49 |
50 |
51 |
52 |
53 | 5. Check out the dashboard in Grafana
54 |
55 | Go to [Grafana](http://localhost:3000/) in your browser (initial user/pwd: admin/admin) and open the dashboard called [*SLOs for APIs managed by Tyk*](./deployments/grafana/provisioning/dashboards/SLOs-for-APIs-managed-by-Tyk.json).
56 |
57 | You should see the data coming in:
58 | 
59 |
60 | You can also filter the data per API:
61 |
62 |
63 |
64 |
65 | ## Tear down
66 |
67 | Stop the services
68 |
69 | ```
70 | docker compose stop
71 | ```
72 |
73 | Remove the services
74 |
75 | ```
76 | docker compose down
77 | ```
78 |
79 | ## How this works
80 |
81 | 
82 |
83 | ### Configuration
84 |
85 | * Tyk API Gateway is configured to expose two API endpoint:
86 | * httpbin ([see .json config](./deployments/tyk-gateway/apps/httpbin.json))
87 | * httpstatus ([see .json config](./deployments/tyk-gateway/apps/httpstatus.json))
88 | * K6 will use the load script [load.js](./deployments/k6/load.js) to generate demo traffic to the API endpoints
89 | * Tyk Pump is configured to expose a metric endpoint for Prometheus ([see config](./deployments/tyk-pump/pump.conf)) with two custom metrics called `tyk_http_requests_total` and `tyk_http_latency`. Tyk Pump version >= 1.6. is needed for custom metrics.
90 | * Prometheus
91 | * [prometheus.yml](./deployments/prometheus/prometheus.yml) is configured to automatically scrape Tyk Pump's metric endpoint
92 | * [slos.rules.yml](./deployments/prometheus/slos.rules.yml) is used to calculate additional metrics needed for the remaining error budget
93 | * Grafana
94 | * [prometheus_ds.yml](./deployments/grafana/provisioning/datasources/prometheus_ds.yml) is configured to connect Grafana automatically to Prometheus
95 | * [SLOs-for-APIs-managed-by-Tyk.json](./deployments/grafana/provisioning/dashboards/SLOs-for-APIs-managed-by-Tyk.json) is the dashboard definition
96 |
97 |
98 | ### SLIs and SLOs
99 |
100 | Definition and example inspired from https://sre.google/workbook/slo-document/, https://landing.google.com/sre/workbook/chapters/alerting-on-slos/ and https://github.com/google/prometheus-slo-burn-example/blob/master/prometheus/slos.rules.yml.
101 |
102 | You will see different indicators displayed on the Grafana dashboard.
103 |
104 | To calculate the SLO and the displayed error budget remaining, we use the following SLI/SLO:
105 | * SLI: the proportion of successful HTTP requests, as measured from Tyk API Gateway
106 | * Any HTTP status other than 500–599 is considered successful.
107 | * count of http_requests which do not have a 5XX status code divided by count of all http_requests
108 | * SLO: 95% successful requests
109 |
110 | In [slos.rules.yml](./deployments/prometheus/slos.rules.yml) we calculate the rate of error per requests for the last 10 minute in `job:slo_errors_per_request:ratio_rate10m`. With `job:error_budget:remaining` we calculate the error budget remaining in percent. This is what we display in the Grafana dashboard. We use a threshold of 95% in the dashboard (every value below 95% is red).
111 |
112 |
113 | ## Contribute
114 |
115 | You are welcome to contribute by
116 | * asking questions / suggesting improvment / reporting issues in this [GitHub project](https://github.com/TykTechnologies/demo-slo-prometheus-grafana/issues) or in the [Tyk Community forum](https://community.tyk.io/t/slis-and-slos-with-prometheus-and-grafana-for-your-apis-managed-by-tyk/5657)
117 | * making pull request, see the [contributing guide](./CONTRIBUTING.md)
118 |
119 |
120 | ## Support, questions & feedback
121 |
122 | This is a demo project, using [Tyk Gateway](https://github.com/TykTechnologies/tyk) and [Tyk Pump](https://github.com/TykTechnologies/tyk-pump) currently using release candidate (RC) versions of Tyk Gateway and Tyk Pump.
123 |
124 | For question about our products, please use [Tyk Community forum](https://community.tyk.io/).
125 |
Clients can also use support@tyk.io.
126 |
Potential clients and evaluators, please use info@tyk.io.
127 |
128 |
--------------------------------------------------------------------------------
/deployments/tyk-gateway/apps/httpbin.json:
--------------------------------------------------------------------------------
1 | {
2 | "api_id": "62f4b9ebc57043000175c0d2",
3 | "name": "httpbin",
4 | "slug": "httpbin",
5 | "listen_port": 0,
6 | "protocol": "",
7 | "enable_proxy_protocol": false,
8 | "use_keyless": true,
9 | "use_oauth2": false,
10 | "use_openid": false,
11 | "openid_options": {
12 | "providers": [],
13 | "segregate_by_client": false
14 | },
15 | "oauth_meta": {
16 | "allowed_access_types": [],
17 | "allowed_authorize_types": [],
18 | "auth_login_redirect": ""
19 | },
20 | "auth": {
21 | "use_param": false,
22 | "param_name": "",
23 | "use_cookie": false,
24 | "cookie_name": "",
25 | "auth_header_name": "Authorization",
26 | "use_certificate": false,
27 | "validate_signature": false,
28 | "signature": {
29 | "algorithm": "",
30 | "header": "",
31 | "secret": "",
32 | "allowed_clock_skew": 0,
33 | "error_code": 0,
34 | "error_message": ""
35 | }
36 | },
37 | "auth_configs": {
38 | "authToken": {
39 | "use_param": false,
40 | "param_name": "",
41 | "use_cookie": false,
42 | "cookie_name": "",
43 | "auth_header_name": "Authorization",
44 | "use_certificate": false,
45 | "validate_signature": false,
46 | "signature": {
47 | "algorithm": "",
48 | "header": "",
49 | "secret": "",
50 | "allowed_clock_skew": 0,
51 | "error_code": 0,
52 | "error_message": ""
53 | }
54 | },
55 | "basic": {
56 | "use_param": false,
57 | "param_name": "",
58 | "use_cookie": false,
59 | "cookie_name": "",
60 | "auth_header_name": "Authorization",
61 | "use_certificate": false,
62 | "validate_signature": false,
63 | "signature": {
64 | "algorithm": "",
65 | "header": "",
66 | "secret": "",
67 | "allowed_clock_skew": 0,
68 | "error_code": 0,
69 | "error_message": ""
70 | }
71 | },
72 | "coprocess": {
73 | "use_param": false,
74 | "param_name": "",
75 | "use_cookie": false,
76 | "cookie_name": "",
77 | "auth_header_name": "Authorization",
78 | "use_certificate": false,
79 | "validate_signature": false,
80 | "signature": {
81 | "algorithm": "",
82 | "header": "",
83 | "secret": "",
84 | "allowed_clock_skew": 0,
85 | "error_code": 0,
86 | "error_message": ""
87 | }
88 | },
89 | "hmac": {
90 | "use_param": false,
91 | "param_name": "",
92 | "use_cookie": false,
93 | "cookie_name": "",
94 | "auth_header_name": "Authorization",
95 | "use_certificate": false,
96 | "validate_signature": false,
97 | "signature": {
98 | "algorithm": "",
99 | "header": "",
100 | "secret": "",
101 | "allowed_clock_skew": 0,
102 | "error_code": 0,
103 | "error_message": ""
104 | }
105 | },
106 | "jwt": {
107 | "use_param": false,
108 | "param_name": "",
109 | "use_cookie": false,
110 | "cookie_name": "",
111 | "auth_header_name": "Authorization",
112 | "use_certificate": false,
113 | "validate_signature": false,
114 | "signature": {
115 | "algorithm": "",
116 | "header": "",
117 | "secret": "",
118 | "allowed_clock_skew": 0,
119 | "error_code": 0,
120 | "error_message": ""
121 | }
122 | },
123 | "oauth": {
124 | "use_param": false,
125 | "param_name": "",
126 | "use_cookie": false,
127 | "cookie_name": "",
128 | "auth_header_name": "Authorization",
129 | "use_certificate": false,
130 | "validate_signature": false,
131 | "signature": {
132 | "algorithm": "",
133 | "header": "",
134 | "secret": "",
135 | "allowed_clock_skew": 0,
136 | "error_code": 0,
137 | "error_message": ""
138 | }
139 | },
140 | "oidc": {
141 | "use_param": false,
142 | "param_name": "",
143 | "use_cookie": false,
144 | "cookie_name": "",
145 | "auth_header_name": "Authorization",
146 | "use_certificate": false,
147 | "validate_signature": false,
148 | "signature": {
149 | "algorithm": "",
150 | "header": "",
151 | "secret": "",
152 | "allowed_clock_skew": 0,
153 | "error_code": 0,
154 | "error_message": ""
155 | }
156 | }
157 | },
158 | "use_basic_auth": false,
159 | "basic_auth": {
160 | "disable_caching": false,
161 | "cache_ttl": 0,
162 | "extract_from_body": false,
163 | "body_user_regexp": "",
164 | "body_password_regexp": ""
165 | },
166 | "use_mutual_tls_auth": false,
167 | "client_certificates": [],
168 | "upstream_certificates": {},
169 | "pinned_public_keys": {},
170 | "enable_jwt": false,
171 | "use_standard_auth": false,
172 | "use_go_plugin_auth": false,
173 | "enable_coprocess_auth": false,
174 | "jwt_signing_method": "",
175 | "jwt_source": "",
176 | "jwt_identity_base_field": "",
177 | "jwt_client_base_field": "",
178 | "jwt_policy_field_name": "",
179 | "jwt_default_policies": [],
180 | "jwt_issued_at_validation_skew": 0,
181 | "jwt_expires_at_validation_skew": 0,
182 | "jwt_not_before_validation_skew": 0,
183 | "jwt_skip_kid": false,
184 | "jwt_scope_to_policy_mapping": {},
185 | "jwt_scope_claim_name": "",
186 | "notifications": {
187 | "shared_secret": "",
188 | "oauth_on_keychange_url": ""
189 | },
190 | "enable_signature_checking": false,
191 | "hmac_allowed_clock_skew": -1,
192 | "hmac_allowed_algorithms": [],
193 | "request_signing": {
194 | "is_enabled": false,
195 | "secret": "",
196 | "key_id": "",
197 | "algorithm": "",
198 | "header_list": [],
199 | "certificate_id": "",
200 | "signature_header": ""
201 | },
202 | "base_identity_provided_by": "",
203 | "definition": {
204 | "location": "header",
205 | "key": "x-api-version",
206 | "strip_path": false
207 | },
208 | "version_data": {
209 | "not_versioned": true,
210 | "default_version": "",
211 | "versions": {
212 | "Default": {
213 | "name": "Default",
214 | "expires": "",
215 | "paths": {
216 | "ignored": [],
217 | "white_list": [],
218 | "black_list": []
219 | },
220 | "use_extended_paths": true,
221 | "extended_paths": {},
222 | "global_headers": {},
223 | "global_headers_remove": [],
224 | "global_response_headers": {},
225 | "global_response_headers_remove": [],
226 | "ignore_endpoint_case": false,
227 | "global_size_limit": 0,
228 | "override_target": ""
229 | }
230 | }
231 | },
232 | "uptime_tests": {
233 | "check_list": [],
234 | "config": {
235 | "expire_utime_after": 0,
236 | "service_discovery": {
237 | "use_discovery_service": false,
238 | "query_endpoint": "",
239 | "use_nested_query": false,
240 | "parent_data_path": "",
241 | "data_path": "",
242 | "port_data_path": "",
243 | "target_path": "",
244 | "use_target_list": false,
245 | "cache_timeout": 60,
246 | "endpoint_returns_list": false
247 | },
248 | "recheck_wait": 0
249 | }
250 | },
251 | "proxy": {
252 | "preserve_host_header": false,
253 | "listen_path": "/httpbin/",
254 | "target_url": "http://httpbin.org/",
255 | "disable_strip_slash": true,
256 | "strip_listen_path": true,
257 | "enable_load_balancing": false,
258 | "target_list": [],
259 | "check_host_against_uptime_tests": false,
260 | "service_discovery": {
261 | "use_discovery_service": false,
262 | "query_endpoint": "",
263 | "use_nested_query": false,
264 | "parent_data_path": "",
265 | "data_path": "",
266 | "port_data_path": "",
267 | "target_path": "",
268 | "use_target_list": false,
269 | "cache_timeout": 0,
270 | "endpoint_returns_list": false
271 | },
272 | "transport": {
273 | "ssl_insecure_skip_verify": false,
274 | "ssl_ciphers": [],
275 | "ssl_min_version": 0,
276 | "ssl_max_version": 0,
277 | "ssl_force_common_name_check": false,
278 | "proxy_url": ""
279 | }
280 | },
281 | "disable_rate_limit": false,
282 | "disable_quota": false,
283 | "custom_middleware": {
284 | "pre": [],
285 | "post": [],
286 | "post_key_auth": [],
287 | "auth_check": {
288 | "name": "",
289 | "path": "",
290 | "require_session": false,
291 | "raw_body_only": false
292 | },
293 | "response": [],
294 | "driver": "",
295 | "id_extractor": {
296 | "extract_from": "",
297 | "extract_with": "",
298 | "extractor_config": {}
299 | }
300 | },
301 | "custom_middleware_bundle": "",
302 | "cache_options": {
303 | "cache_timeout": 60,
304 | "enable_cache": true,
305 | "cache_all_safe_requests": false,
306 | "cache_response_codes": [],
307 | "enable_upstream_cache_control": false,
308 | "cache_control_ttl_header": "",
309 | "cache_by_headers": []
310 | },
311 | "session_lifetime": 0,
312 | "active": true,
313 | "internal": false,
314 | "auth_provider": {
315 | "name": "",
316 | "storage_engine": "",
317 | "meta": {}
318 | },
319 | "session_provider": {
320 | "name": "",
321 | "storage_engine": "",
322 | "meta": {}
323 | },
324 | "event_handlers": {
325 | "events": {}
326 | },
327 | "enable_batch_request_support": false,
328 | "enable_ip_whitelisting": false,
329 | "allowed_ips": [],
330 | "enable_ip_blacklisting": false,
331 | "blacklisted_ips": [],
332 | "dont_set_quota_on_create": false,
333 | "expire_analytics_after": 0,
334 | "response_processors": [],
335 | "CORS": {
336 | "enable": false,
337 | "allowed_origins": [
338 | "*"
339 | ],
340 | "allowed_methods": [
341 | "GET",
342 | "POST",
343 | "HEAD"
344 | ],
345 | "allowed_headers": [
346 | "Origin",
347 | "Accept",
348 | "Content-Type",
349 | "X-Requested-With",
350 | "Authorization"
351 | ],
352 | "exposed_headers": [],
353 | "allow_credentials": false,
354 | "max_age": 24,
355 | "options_passthrough": false,
356 | "debug": false
357 | },
358 | "domain": "",
359 | "certificates": [],
360 | "do_not_track": false,
361 | "tags": [],
362 | "enable_context_vars": false,
363 | "config_data": {},
364 | "tag_headers": [],
365 | "global_rate_limit": {
366 | "rate": 0,
367 | "per": 0
368 | },
369 | "strip_auth_data": false,
370 | "enable_detailed_recording": false,
371 | "graphql": {
372 | "enabled": false,
373 | "execution_mode": "proxyOnly",
374 | "version": "2",
375 | "schema": "",
376 | "type_field_configurations": [],
377 | "playground": {
378 | "enabled": false,
379 | "path": ""
380 | },
381 | "engine": {
382 | "field_configs": [],
383 | "data_sources": []
384 | },
385 | "proxy": {
386 | "auth_headers": {}
387 | },
388 | "subgraph": {
389 | "sdl": ""
390 | },
391 | "supergraph": {
392 | "subgraphs": [],
393 | "merged_sdl": "",
394 | "global_headers": {}
395 | }
396 | }
397 | }
--------------------------------------------------------------------------------
/deployments/tyk-gateway/apps/httpstatus.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "6308735b6756120001aed1e6",
3 | "name": "httpstatus",
4 | "slug": "httpstatus",
5 | "listen_port": 0,
6 | "protocol": "",
7 | "enable_proxy_protocol": false,
8 | "api_id": "49f32e2285f8462e637d5c5e0ab129c3",
9 | "use_keyless": true,
10 | "use_oauth2": false,
11 | "use_openid": false,
12 | "openid_options": {
13 | "providers": [],
14 | "segregate_by_client": false
15 | },
16 | "oauth_meta": {
17 | "allowed_access_types": [],
18 | "allowed_authorize_types": [],
19 | "auth_login_redirect": ""
20 | },
21 | "auth": {
22 | "use_param": false,
23 | "param_name": "",
24 | "use_cookie": false,
25 | "cookie_name": "",
26 | "auth_header_name": "Authorization",
27 | "use_certificate": false,
28 | "validate_signature": false,
29 | "signature": {
30 | "algorithm": "",
31 | "header": "",
32 | "use_param": false,
33 | "param_name": "",
34 | "secret": "",
35 | "allowed_clock_skew": 0,
36 | "error_code": 0,
37 | "error_message": ""
38 | }
39 | },
40 | "auth_configs": {
41 | "authToken": {
42 | "use_param": false,
43 | "param_name": "",
44 | "use_cookie": false,
45 | "cookie_name": "",
46 | "auth_header_name": "Authorization",
47 | "use_certificate": false,
48 | "validate_signature": false,
49 | "signature": {
50 | "algorithm": "",
51 | "header": "",
52 | "use_param": false,
53 | "param_name": "",
54 | "secret": "",
55 | "allowed_clock_skew": 0,
56 | "error_code": 0,
57 | "error_message": ""
58 | }
59 | },
60 | "basic": {
61 | "use_param": false,
62 | "param_name": "",
63 | "use_cookie": false,
64 | "cookie_name": "",
65 | "auth_header_name": "Authorization",
66 | "use_certificate": false,
67 | "validate_signature": false,
68 | "signature": {
69 | "algorithm": "",
70 | "header": "",
71 | "use_param": false,
72 | "param_name": "",
73 | "secret": "",
74 | "allowed_clock_skew": 0,
75 | "error_code": 0,
76 | "error_message": ""
77 | }
78 | },
79 | "coprocess": {
80 | "use_param": false,
81 | "param_name": "",
82 | "use_cookie": false,
83 | "cookie_name": "",
84 | "auth_header_name": "Authorization",
85 | "use_certificate": false,
86 | "validate_signature": false,
87 | "signature": {
88 | "algorithm": "",
89 | "header": "",
90 | "use_param": false,
91 | "param_name": "",
92 | "secret": "",
93 | "allowed_clock_skew": 0,
94 | "error_code": 0,
95 | "error_message": ""
96 | }
97 | },
98 | "hmac": {
99 | "use_param": false,
100 | "param_name": "",
101 | "use_cookie": false,
102 | "cookie_name": "",
103 | "auth_header_name": "Authorization",
104 | "use_certificate": false,
105 | "validate_signature": false,
106 | "signature": {
107 | "algorithm": "",
108 | "header": "",
109 | "use_param": false,
110 | "param_name": "",
111 | "secret": "",
112 | "allowed_clock_skew": 0,
113 | "error_code": 0,
114 | "error_message": ""
115 | }
116 | },
117 | "jwt": {
118 | "use_param": false,
119 | "param_name": "",
120 | "use_cookie": false,
121 | "cookie_name": "",
122 | "auth_header_name": "Authorization",
123 | "use_certificate": false,
124 | "validate_signature": false,
125 | "signature": {
126 | "algorithm": "",
127 | "header": "",
128 | "use_param": false,
129 | "param_name": "",
130 | "secret": "",
131 | "allowed_clock_skew": 0,
132 | "error_code": 0,
133 | "error_message": ""
134 | }
135 | },
136 | "oauth": {
137 | "use_param": false,
138 | "param_name": "",
139 | "use_cookie": false,
140 | "cookie_name": "",
141 | "auth_header_name": "Authorization",
142 | "use_certificate": false,
143 | "validate_signature": false,
144 | "signature": {
145 | "algorithm": "",
146 | "header": "",
147 | "use_param": false,
148 | "param_name": "",
149 | "secret": "",
150 | "allowed_clock_skew": 0,
151 | "error_code": 0,
152 | "error_message": ""
153 | }
154 | },
155 | "oidc": {
156 | "use_param": false,
157 | "param_name": "",
158 | "use_cookie": false,
159 | "cookie_name": "",
160 | "auth_header_name": "Authorization",
161 | "use_certificate": false,
162 | "validate_signature": false,
163 | "signature": {
164 | "algorithm": "",
165 | "header": "",
166 | "use_param": false,
167 | "param_name": "",
168 | "secret": "",
169 | "allowed_clock_skew": 0,
170 | "error_code": 0,
171 | "error_message": ""
172 | }
173 | }
174 | },
175 | "use_basic_auth": true,
176 | "basic_auth": {
177 | "disable_caching": false,
178 | "cache_ttl": 0,
179 | "extract_from_body": false,
180 | "body_user_regexp": "",
181 | "body_password_regexp": ""
182 | },
183 | "use_mutual_tls_auth": false,
184 | "client_certificates": [],
185 | "upstream_certificates": {},
186 | "pinned_public_keys": {},
187 | "enable_jwt": false,
188 | "use_standard_auth": false,
189 | "use_go_plugin_auth": false,
190 | "enable_coprocess_auth": false,
191 | "jwt_signing_method": "",
192 | "jwt_source": "",
193 | "jwt_identity_base_field": "",
194 | "jwt_client_base_field": "",
195 | "jwt_policy_field_name": "",
196 | "jwt_default_policies": [],
197 | "jwt_issued_at_validation_skew": 0,
198 | "jwt_expires_at_validation_skew": 0,
199 | "jwt_not_before_validation_skew": 0,
200 | "jwt_skip_kid": false,
201 | "jwt_scope_to_policy_mapping": {},
202 | "jwt_scope_claim_name": "",
203 | "notifications": {
204 | "shared_secret": "",
205 | "oauth_on_keychange_url": ""
206 | },
207 | "enable_signature_checking": false,
208 | "hmac_allowed_clock_skew": -1,
209 | "hmac_allowed_algorithms": [],
210 | "request_signing": {
211 | "is_enabled": false,
212 | "secret": "",
213 | "key_id": "",
214 | "algorithm": "",
215 | "header_list": [],
216 | "certificate_id": "",
217 | "signature_header": ""
218 | },
219 | "base_identity_provided_by": "",
220 | "definition": {
221 | "location": "header",
222 | "key": "x-api-version",
223 | "strip_path": false
224 | },
225 | "version_data": {
226 | "not_versioned": true,
227 | "default_version": "",
228 | "versions": {
229 | "Default": {
230 | "name": "Default",
231 | "expires": "",
232 | "paths": {
233 | "ignored": [],
234 | "white_list": [],
235 | "black_list": []
236 | },
237 | "use_extended_paths": true,
238 | "extended_paths": {},
239 | "global_headers": {},
240 | "global_headers_remove": [],
241 | "global_response_headers": {},
242 | "global_response_headers_remove": [],
243 | "ignore_endpoint_case": false,
244 | "global_size_limit": 0,
245 | "override_target": ""
246 | }
247 | }
248 | },
249 | "uptime_tests": {
250 | "check_list": [],
251 | "config": {
252 | "expire_utime_after": 0,
253 | "service_discovery": {
254 | "use_discovery_service": false,
255 | "query_endpoint": "",
256 | "use_nested_query": false,
257 | "parent_data_path": "",
258 | "data_path": "",
259 | "port_data_path": "",
260 | "target_path": "",
261 | "use_target_list": false,
262 | "cache_timeout": 60,
263 | "endpoint_returns_list": false
264 | },
265 | "recheck_wait": 0
266 | }
267 | },
268 | "proxy": {
269 | "preserve_host_header": false,
270 | "listen_path": "/status/",
271 | "target_url": "http://httpstat.us",
272 | "disable_strip_slash": true,
273 | "strip_listen_path": true,
274 | "enable_load_balancing": false,
275 | "target_list": [],
276 | "check_host_against_uptime_tests": false,
277 | "service_discovery": {
278 | "use_discovery_service": false,
279 | "query_endpoint": "",
280 | "use_nested_query": false,
281 | "parent_data_path": "",
282 | "data_path": "",
283 | "port_data_path": "",
284 | "target_path": "",
285 | "use_target_list": false,
286 | "cache_timeout": 0,
287 | "endpoint_returns_list": false
288 | },
289 | "transport": {
290 | "ssl_insecure_skip_verify": false,
291 | "ssl_ciphers": [],
292 | "ssl_min_version": 0,
293 | "ssl_max_version": 0,
294 | "ssl_force_common_name_check": false,
295 | "proxy_url": ""
296 | }
297 | },
298 | "disable_rate_limit": false,
299 | "disable_quota": false,
300 | "custom_middleware": {
301 | "pre": [],
302 | "post": [],
303 | "post_key_auth": [],
304 | "auth_check": {
305 | "name": "",
306 | "path": "",
307 | "require_session": false,
308 | "raw_body_only": false
309 | },
310 | "response": [],
311 | "driver": "",
312 | "id_extractor": {
313 | "extract_from": "",
314 | "extract_with": "",
315 | "extractor_config": {}
316 | }
317 | },
318 | "custom_middleware_bundle": "",
319 | "cache_options": {
320 | "cache_timeout": 60,
321 | "enable_cache": true,
322 | "cache_all_safe_requests": false,
323 | "cache_response_codes": [],
324 | "enable_upstream_cache_control": false,
325 | "cache_control_ttl_header": "",
326 | "cache_by_headers": []
327 | },
328 | "session_lifetime": 0,
329 | "active": true,
330 | "internal": false,
331 | "auth_provider": {
332 | "name": "",
333 | "storage_engine": "",
334 | "meta": {}
335 | },
336 | "session_provider": {
337 | "name": "",
338 | "storage_engine": "",
339 | "meta": {}
340 | },
341 | "event_handlers": {
342 | "events": {}
343 | },
344 | "enable_batch_request_support": false,
345 | "enable_ip_whitelisting": false,
346 | "allowed_ips": [],
347 | "enable_ip_blacklisting": false,
348 | "blacklisted_ips": [],
349 | "dont_set_quota_on_create": false,
350 | "expire_analytics_after": 0,
351 | "response_processors": [],
352 | "CORS": {
353 | "enable": false,
354 | "allowed_origins": [
355 | "*"
356 | ],
357 | "allowed_methods": [
358 | "GET",
359 | "POST",
360 | "HEAD"
361 | ],
362 | "allowed_headers": [
363 | "Origin",
364 | "Accept",
365 | "Content-Type",
366 | "X-Requested-With",
367 | "Authorization"
368 | ],
369 | "exposed_headers": [],
370 | "allow_credentials": false,
371 | "max_age": 24,
372 | "options_passthrough": false,
373 | "debug": false
374 | },
375 | "domain": "",
376 | "certificates": [],
377 | "do_not_track": false,
378 | "tags": [],
379 | "enable_context_vars": false,
380 | "config_data": {},
381 | "tag_headers": [],
382 | "global_rate_limit": {
383 | "rate": 0,
384 | "per": 0
385 | },
386 | "strip_auth_data": false,
387 | "enable_detailed_recording": false,
388 | "graphql": {
389 | "enabled": false,
390 | "execution_mode": "proxyOnly",
391 | "version": "2",
392 | "schema": "",
393 | "type_field_configurations": [],
394 | "playground": {
395 | "enabled": false,
396 | "path": ""
397 | },
398 | "engine": {
399 | "field_configs": [],
400 | "data_sources": []
401 | },
402 | "proxy": {
403 | "auth_headers": {}
404 | },
405 | "subgraph": {
406 | "sdl": ""
407 | },
408 | "supergraph": {
409 | "subgraphs": [],
410 | "merged_sdl": "",
411 | "global_headers": {},
412 | "disable_query_batching": false
413 | }
414 | }
415 | }
--------------------------------------------------------------------------------
/deployments/grafana/provisioning/dashboards/SLOs-for-APIs-managed-by-Tyk.json:
--------------------------------------------------------------------------------
1 | {
2 | "annotations": {
3 | "list": [
4 | {
5 | "builtIn": 1,
6 | "datasource": {
7 | "type": "grafana",
8 | "uid": "-- Grafana --"
9 | },
10 | "enable": true,
11 | "hide": true,
12 | "iconColor": "rgba(0, 211, 255, 1)",
13 | "name": "Annotations & Alerts",
14 | "target": {
15 | "limit": 100,
16 | "matchAny": false,
17 | "tags": [],
18 | "type": "dashboard"
19 | },
20 | "type": "dashboard"
21 | }
22 | ]
23 | },
24 | "editable": true,
25 | "fiscalYearStartMonth": 0,
26 | "graphTooltip": 0,
27 | "links": [],
28 | "liveNow": false,
29 | "panels": [
30 | {
31 | "datasource": {
32 | "type": "prometheus",
33 | "uid": "PBFA97CFB590B2093"
34 | },
35 | "description": "",
36 | "fieldConfig": {
37 | "defaults": {
38 | "color": {
39 | "mode": "thresholds"
40 | },
41 | "custom": {
42 | "fillOpacity": 70,
43 | "lineWidth": 1
44 | },
45 | "mappings": [],
46 | "thresholds": {
47 | "mode": "absolute",
48 | "steps": [
49 | {
50 | "color": "red",
51 | "value": null
52 | },
53 | {
54 | "color": "green",
55 | "value": 95
56 | }
57 | ]
58 | }
59 | },
60 | "overrides": []
61 | },
62 | "gridPos": {
63 | "h": 8,
64 | "w": 12,
65 | "x": 0,
66 | "y": 0
67 | },
68 | "id": 17,
69 | "options": {
70 | "colWidth": 0.9,
71 | "legend": {
72 | "displayMode": "list",
73 | "placement": "bottom",
74 | "showLegend": true
75 | },
76 | "rowHeight": 0.9,
77 | "showValue": "auto",
78 | "tooltip": {
79 | "mode": "single",
80 | "sort": "none"
81 | }
82 | },
83 | "targets": [
84 | {
85 | "datasource": {
86 | "type": "prometheus",
87 | "uid": "PBFA97CFB590B2093"
88 | },
89 | "editorMode": "code",
90 | "expr": "job:error_budget:remaining{api_name=~\"$api_name\"}",
91 | "legendFormat": "{{api_name}}",
92 | "range": true,
93 | "refId": "A"
94 | }
95 | ],
96 | "title": "Error budget remaining",
97 | "type": "status-history"
98 | },
99 | {
100 | "datasource": {
101 | "type": "prometheus",
102 | "uid": "PBFA97CFB590B2093"
103 | },
104 | "description": "Error rate: across all upstream services [request / s]\nRatio error / request",
105 | "fieldConfig": {
106 | "defaults": {
107 | "color": {
108 | "fixedColor": "red",
109 | "mode": "fixed"
110 | },
111 | "mappings": [],
112 | "noValue": "0",
113 | "thresholds": {
114 | "mode": "absolute",
115 | "steps": [
116 | {
117 | "color": "green",
118 | "value": null
119 | }
120 | ]
121 | }
122 | },
123 | "overrides": []
124 | },
125 | "gridPos": {
126 | "h": 8,
127 | "w": 12,
128 | "x": 12,
129 | "y": 0
130 | },
131 | "id": 4,
132 | "options": {
133 | "colorMode": "value",
134 | "graphMode": "area",
135 | "justifyMode": "auto",
136 | "orientation": "auto",
137 | "reduceOptions": {
138 | "calcs": [
139 | "lastNotNull"
140 | ],
141 | "fields": "",
142 | "values": false
143 | },
144 | "textMode": "auto"
145 | },
146 | "pluginVersion": "9.1.0",
147 | "targets": [
148 | {
149 | "datasource": {
150 | "type": "prometheus",
151 | "uid": "PBFA97CFB590B2093"
152 | },
153 | "editorMode": "code",
154 | "expr": "task:http_response_error_rate{api_name=~\"$api_name\"}",
155 | "hide": false,
156 | "legendFormat": "{{api_name}} error rate [request / s]",
157 | "range": true,
158 | "refId": "Error rates"
159 | },
160 | {
161 | "datasource": {
162 | "type": "prometheus",
163 | "uid": "PBFA97CFB590B2093"
164 | },
165 | "editorMode": "code",
166 | "expr": "job:slo_errors_per_request:ratio_rate10m{api_name=~\"$api_name\"}*100",
167 | "hide": false,
168 | "legendFormat": "{{api_name}} ratio error / request [%]",
169 | "range": true,
170 | "refId": "A"
171 | }
172 | ],
173 | "title": "Error",
174 | "type": "stat"
175 | },
176 | {
177 | "datasource": {
178 | "type": "prometheus",
179 | "uid": "PBFA97CFB590B2093"
180 | },
181 | "description": "90th, 95th and 99th percentile in [ms]",
182 | "fieldConfig": {
183 | "defaults": {
184 | "color": {
185 | "mode": "palette-classic"
186 | },
187 | "custom": {
188 | "axisCenteredZero": false,
189 | "axisColorMode": "text",
190 | "axisLabel": "",
191 | "axisPlacement": "auto",
192 | "barAlignment": 0,
193 | "drawStyle": "line",
194 | "fillOpacity": 21,
195 | "gradientMode": "opacity",
196 | "hideFrom": {
197 | "legend": false,
198 | "tooltip": false,
199 | "viz": false
200 | },
201 | "lineInterpolation": "linear",
202 | "lineWidth": 2,
203 | "pointSize": 5,
204 | "scaleDistribution": {
205 | "type": "linear"
206 | },
207 | "showPoints": "never",
208 | "spanNulls": false,
209 | "stacking": {
210 | "group": "A",
211 | "mode": "none"
212 | },
213 | "thresholdsStyle": {
214 | "mode": "off"
215 | }
216 | },
217 | "mappings": [],
218 | "thresholds": {
219 | "mode": "absolute",
220 | "steps": [
221 | {
222 | "color": "green",
223 | "value": null
224 | }
225 | ]
226 | }
227 | },
228 | "overrides": []
229 | },
230 | "gridPos": {
231 | "h": 8,
232 | "w": 12,
233 | "x": 0,
234 | "y": 8
235 | },
236 | "id": 3,
237 | "options": {
238 | "legend": {
239 | "calcs": [],
240 | "displayMode": "list",
241 | "placement": "bottom",
242 | "showLegend": true
243 | },
244 | "tooltip": {
245 | "mode": "single",
246 | "sort": "none"
247 | }
248 | },
249 | "targets": [
250 | {
251 | "datasource": {
252 | "type": "prometheus",
253 | "uid": "PBFA97CFB590B2093"
254 | },
255 | "editorMode": "code",
256 | "expr": "histogram_quantile(0.90, sum(rate(tyk_http_latency_bucket{api_name=~\"$api_name\"}[1m])) by (le,api_name))",
257 | "hide": false,
258 | "legendFormat": "p90",
259 | "range": true,
260 | "refId": "90th percentile"
261 | },
262 | {
263 | "datasource": {
264 | "type": "prometheus",
265 | "uid": "PBFA97CFB590B2093"
266 | },
267 | "editorMode": "code",
268 | "expr": "histogram_quantile(0.95, sum(rate(tyk_http_latency_bucket{api_name=~\"$api_name\"}[1m])) by (le,api_name))",
269 | "legendFormat": "p95",
270 | "range": true,
271 | "refId": "95th percentile"
272 | },
273 | {
274 | "datasource": {
275 | "type": "prometheus",
276 | "uid": "PBFA97CFB590B2093"
277 | },
278 | "editorMode": "code",
279 | "expr": "histogram_quantile(0.99, sum(rate(tyk_http_latency_bucket{api_name=~\"$api_name\"}[1m])) by (le,api_name))",
280 | "hide": false,
281 | "legendFormat": "p99",
282 | "range": true,
283 | "refId": "99th percentile"
284 | }
285 | ],
286 | "title": "Upstream time",
287 | "type": "timeseries"
288 | },
289 | {
290 | "datasource": {
291 | "type": "prometheus",
292 | "uid": "PBFA97CFB590B2093"
293 | },
294 | "description": "HTTP status codes returned by upstream services [request / s]",
295 | "fieldConfig": {
296 | "defaults": {
297 | "color": {
298 | "mode": "palette-classic"
299 | },
300 | "custom": {
301 | "hideFrom": {
302 | "legend": false,
303 | "tooltip": false,
304 | "viz": false
305 | }
306 | },
307 | "mappings": []
308 | },
309 | "overrides": []
310 | },
311 | "gridPos": {
312 | "h": 8,
313 | "w": 12,
314 | "x": 12,
315 | "y": 8
316 | },
317 | "id": 5,
318 | "options": {
319 | "displayLabels": [
320 | "percent"
321 | ],
322 | "legend": {
323 | "displayMode": "list",
324 | "placement": "right",
325 | "showLegend": true,
326 | "values": []
327 | },
328 | "pieType": "donut",
329 | "reduceOptions": {
330 | "calcs": [
331 | "lastNotNull"
332 | ],
333 | "fields": "",
334 | "values": false
335 | },
336 | "tooltip": {
337 | "mode": "single",
338 | "sort": "none"
339 | }
340 | },
341 | "pluginVersion": "9.1.0",
342 | "targets": [
343 | {
344 | "datasource": {
345 | "type": "prometheus",
346 | "uid": "PBFA97CFB590B2093"
347 | },
348 | "editorMode": "code",
349 | "expr": "sum (rate(tyk_http_requests_total{api_name=~\"$api_name\"}[1m])) by (response_code)",
350 | "hide": false,
351 | "legendFormat": "__auto",
352 | "range": true,
353 | "refId": "Status code"
354 | }
355 | ],
356 | "title": "Status codes",
357 | "type": "piechart"
358 | },
359 | {
360 | "datasource": {
361 | "type": "prometheus",
362 | "uid": "PBFA97CFB590B2093"
363 | },
364 | "description": "[requests / s]",
365 | "fieldConfig": {
366 | "defaults": {
367 | "color": {
368 | "mode": "palette-classic"
369 | },
370 | "custom": {
371 | "axisCenteredZero": false,
372 | "axisColorMode": "text",
373 | "axisLabel": "",
374 | "axisPlacement": "auto",
375 | "barAlignment": 0,
376 | "drawStyle": "line",
377 | "fillOpacity": 21,
378 | "gradientMode": "none",
379 | "hideFrom": {
380 | "legend": false,
381 | "tooltip": false,
382 | "viz": false
383 | },
384 | "lineInterpolation": "linear",
385 | "lineWidth": 2,
386 | "pointSize": 5,
387 | "scaleDistribution": {
388 | "type": "linear"
389 | },
390 | "showPoints": "auto",
391 | "spanNulls": false,
392 | "stacking": {
393 | "group": "A",
394 | "mode": "none"
395 | },
396 | "thresholdsStyle": {
397 | "mode": "off"
398 | }
399 | },
400 | "mappings": [],
401 | "thresholds": {
402 | "mode": "absolute",
403 | "steps": [
404 | {
405 | "color": "green",
406 | "value": null
407 | }
408 | ]
409 | }
410 | },
411 | "overrides": [
412 | {
413 | "matcher": {
414 | "id": "byName",
415 | "options": "/cache"
416 | },
417 | "properties": [
418 | {
419 | "id": "color",
420 | "value": {
421 | "fixedColor": "#73BF69",
422 | "mode": "fixed"
423 | }
424 | }
425 | ]
426 | },
427 | {
428 | "matcher": {
429 | "id": "byName",
430 | "options": "/status/{id}"
431 | },
432 | "properties": [
433 | {
434 | "id": "color",
435 | "value": {
436 | "fixedColor": "dark-purple",
437 | "mode": "fixed"
438 | }
439 | }
440 | ]
441 | }
442 | ]
443 | },
444 | "gridPos": {
445 | "h": 8,
446 | "w": 12,
447 | "x": 0,
448 | "y": 16
449 | },
450 | "id": 14,
451 | "options": {
452 | "legend": {
453 | "calcs": [],
454 | "displayMode": "list",
455 | "placement": "bottom",
456 | "showLegend": true
457 | },
458 | "tooltip": {
459 | "mode": "single",
460 | "sort": "none"
461 | }
462 | },
463 | "targets": [
464 | {
465 | "datasource": {
466 | "type": "prometheus",
467 | "uid": "PBFA97CFB590B2093"
468 | },
469 | "editorMode": "code",
470 | "expr": "sum (rate(tyk_http_requests_total{api_name=~\"$api_name\"}[1m])) by (path)",
471 | "hide": false,
472 | "legendFormat": "__auto",
473 | "range": true,
474 | "refId": "Requests per path"
475 | }
476 | ],
477 | "title": "Requests per path",
478 | "type": "timeseries"
479 | },
480 | {
481 | "datasource": {
482 | "type": "prometheus",
483 | "uid": "PBFA97CFB590B2093"
484 | },
485 | "description": "[requests / s]",
486 | "fieldConfig": {
487 | "defaults": {
488 | "color": {
489 | "mode": "palette-classic"
490 | },
491 | "custom": {
492 | "axisCenteredZero": false,
493 | "axisColorMode": "text",
494 | "axisLabel": "",
495 | "axisPlacement": "auto",
496 | "barAlignment": 0,
497 | "drawStyle": "line",
498 | "fillOpacity": 21,
499 | "gradientMode": "none",
500 | "hideFrom": {
501 | "legend": false,
502 | "tooltip": false,
503 | "viz": false
504 | },
505 | "lineInterpolation": "linear",
506 | "lineWidth": 2,
507 | "pointSize": 5,
508 | "scaleDistribution": {
509 | "type": "linear"
510 | },
511 | "showPoints": "auto",
512 | "spanNulls": false,
513 | "stacking": {
514 | "group": "A",
515 | "mode": "none"
516 | },
517 | "thresholdsStyle": {
518 | "mode": "off"
519 | }
520 | },
521 | "mappings": [],
522 | "thresholds": {
523 | "mode": "absolute",
524 | "steps": [
525 | {
526 | "color": "green",
527 | "value": null
528 | }
529 | ]
530 | }
531 | },
532 | "overrides": []
533 | },
534 | "gridPos": {
535 | "h": 8,
536 | "w": 12,
537 | "x": 12,
538 | "y": 16
539 | },
540 | "id": 15,
541 | "options": {
542 | "legend": {
543 | "calcs": [],
544 | "displayMode": "list",
545 | "placement": "bottom",
546 | "showLegend": true
547 | },
548 | "tooltip": {
549 | "mode": "single",
550 | "sort": "none"
551 | }
552 | },
553 | "targets": [
554 | {
555 | "datasource": {
556 | "type": "prometheus",
557 | "uid": "PBFA97CFB590B2093"
558 | },
559 | "editorMode": "code",
560 | "expr": "sum (rate(tyk_http_requests_total{api_name=~\"$api_name\"}[1m])) by (method)",
561 | "hide": false,
562 | "legendFormat": "__auto",
563 | "range": true,
564 | "refId": "Requests per method"
565 | }
566 | ],
567 | "title": "Requests per method",
568 | "type": "timeseries"
569 | }
570 | ],
571 | "refresh": "5s",
572 | "schemaVersion": 37,
573 | "style": "dark",
574 | "tags": [],
575 | "templating": {
576 | "list": [
577 | {
578 | "current": {
579 | "selected": true,
580 | "text": "All",
581 | "value": "$__all"
582 | },
583 | "datasource": {
584 | "type": "prometheus",
585 | "uid": "PBFA97CFB590B2093"
586 | },
587 | "definition": "label_values(api_name)",
588 | "hide": 0,
589 | "includeAll": true,
590 | "label": "Select an API: ",
591 | "multi": false,
592 | "name": "api_name",
593 | "options": [],
594 | "query": {
595 | "query": "label_values(api_name)",
596 | "refId": "StandardVariableQuery"
597 | },
598 | "refresh": 1,
599 | "regex": "",
600 | "skipUrlSync": false,
601 | "sort": 0,
602 | "type": "query"
603 | }
604 | ]
605 | },
606 | "time": {
607 | "from": "now-15m",
608 | "to": "now"
609 | },
610 | "timepicker": {},
611 | "timezone": "",
612 | "title": "SLOs for APIs managed by Tyk",
613 | "uid": "YjXeVVZ4k",
614 | "version": 1,
615 | "weekStart": ""
616 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Mozilla Public License Version 2.0
2 | ==================================
3 |
4 | 1. Definitions
5 | --------------
6 |
7 | 1.1. "Contributor"
8 | means each individual or legal entity that creates, contributes to
9 | the creation of, or owns Covered Software.
10 |
11 | 1.2. "Contributor Version"
12 | means the combination of the Contributions of others (if any) used
13 | by a Contributor and that particular Contributor's Contribution.
14 |
15 | 1.3. "Contribution"
16 | means Covered Software of a particular Contributor.
17 |
18 | 1.4. "Covered Software"
19 | means Source Code Form to which the initial Contributor has attached
20 | the notice in Exhibit A, the Executable Form of such Source Code
21 | Form, and Modifications of such Source Code Form, in each case
22 | including portions thereof.
23 |
24 | 1.5. "Incompatible With Secondary Licenses"
25 | means
26 |
27 | (a) that the initial Contributor has attached the notice described
28 | in Exhibit B to the Covered Software; or
29 |
30 | (b) that the Covered Software was made available under the terms of
31 | version 1.1 or earlier of the License, but not also under the
32 | terms of a Secondary License.
33 |
34 | 1.6. "Executable Form"
35 | means any form of the work other than Source Code Form.
36 |
37 | 1.7. "Larger Work"
38 | means a work that combines Covered Software with other material, in
39 | a separate file or files, that is not Covered Software.
40 |
41 | 1.8. "License"
42 | means this document.
43 |
44 | 1.9. "Licensable"
45 | means having the right to grant, to the maximum extent possible,
46 | whether at the time of the initial grant or subsequently, any and
47 | all of the rights conveyed by this License.
48 |
49 | 1.10. "Modifications"
50 | means any of the following:
51 |
52 | (a) any file in Source Code Form that results from an addition to,
53 | deletion from, or modification of the contents of Covered
54 | Software; or
55 |
56 | (b) any new file in Source Code Form that contains any Covered
57 | Software.
58 |
59 | 1.11. "Patent Claims" of a Contributor
60 | means any patent claim(s), including without limitation, method,
61 | process, and apparatus claims, in any patent Licensable by such
62 | Contributor that would be infringed, but for the grant of the
63 | License, by the making, using, selling, offering for sale, having
64 | made, import, or transfer of either its Contributions or its
65 | Contributor Version.
66 |
67 | 1.12. "Secondary License"
68 | means either the GNU General Public License, Version 2.0, the GNU
69 | Lesser General Public License, Version 2.1, the GNU Affero General
70 | Public License, Version 3.0, or any later versions of those
71 | licenses.
72 |
73 | 1.13. "Source Code Form"
74 | means the form of the work preferred for making modifications.
75 |
76 | 1.14. "You" (or "Your")
77 | means an individual or a legal entity exercising rights under this
78 | License. For legal entities, "You" includes any entity that
79 | controls, is controlled by, or is under common control with You. For
80 | purposes of this definition, "control" means (a) the power, direct
81 | or indirect, to cause the direction or management of such entity,
82 | whether by contract or otherwise, or (b) ownership of more than
83 | fifty percent (50%) of the outstanding shares or beneficial
84 | ownership of such entity.
85 |
86 | 2. License Grants and Conditions
87 | --------------------------------
88 |
89 | 2.1. Grants
90 |
91 | Each Contributor hereby grants You a world-wide, royalty-free,
92 | non-exclusive license:
93 |
94 | (a) under intellectual property rights (other than patent or trademark)
95 | Licensable by such Contributor to use, reproduce, make available,
96 | modify, display, perform, distribute, and otherwise exploit its
97 | Contributions, either on an unmodified basis, with Modifications, or
98 | as part of a Larger Work; and
99 |
100 | (b) under Patent Claims of such Contributor to make, use, sell, offer
101 | for sale, have made, import, and otherwise transfer either its
102 | Contributions or its Contributor Version.
103 |
104 | 2.2. Effective Date
105 |
106 | The licenses granted in Section 2.1 with respect to any Contribution
107 | become effective for each Contribution on the date the Contributor first
108 | distributes such Contribution.
109 |
110 | 2.3. Limitations on Grant Scope
111 |
112 | The licenses granted in this Section 2 are the only rights granted under
113 | this License. No additional rights or licenses will be implied from the
114 | distribution or licensing of Covered Software under this License.
115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a
116 | Contributor:
117 |
118 | (a) for any code that a Contributor has removed from Covered Software;
119 | or
120 |
121 | (b) for infringements caused by: (i) Your and any other third party's
122 | modifications of Covered Software, or (ii) the combination of its
123 | Contributions with other software (except as part of its Contributor
124 | Version); or
125 |
126 | (c) under Patent Claims infringed by Covered Software in the absence of
127 | its Contributions.
128 |
129 | This License does not grant any rights in the trademarks, service marks,
130 | or logos of any Contributor (except as may be necessary to comply with
131 | the notice requirements in Section 3.4).
132 |
133 | 2.4. Subsequent Licenses
134 |
135 | No Contributor makes additional grants as a result of Your choice to
136 | distribute the Covered Software under a subsequent version of this
137 | License (see Section 10.2) or under the terms of a Secondary License (if
138 | permitted under the terms of Section 3.3).
139 |
140 | 2.5. Representation
141 |
142 | Each Contributor represents that the Contributor believes its
143 | Contributions are its original creation(s) or it has sufficient rights
144 | to grant the rights to its Contributions conveyed by this License.
145 |
146 | 2.6. Fair Use
147 |
148 | This License is not intended to limit any rights You have under
149 | applicable copyright doctrines of fair use, fair dealing, or other
150 | equivalents.
151 |
152 | 2.7. Conditions
153 |
154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155 | in Section 2.1.
156 |
157 | 3. Responsibilities
158 | -------------------
159 |
160 | 3.1. Distribution of Source Form
161 |
162 | All distribution of Covered Software in Source Code Form, including any
163 | Modifications that You create or to which You contribute, must be under
164 | the terms of this License. You must inform recipients that the Source
165 | Code Form of the Covered Software is governed by the terms of this
166 | License, and how they can obtain a copy of this License. You may not
167 | attempt to alter or restrict the recipients' rights in the Source Code
168 | Form.
169 |
170 | 3.2. Distribution of Executable Form
171 |
172 | If You distribute Covered Software in Executable Form then:
173 |
174 | (a) such Covered Software must also be made available in Source Code
175 | Form, as described in Section 3.1, and You must inform recipients of
176 | the Executable Form how they can obtain a copy of such Source Code
177 | Form by reasonable means in a timely manner, at a charge no more
178 | than the cost of distribution to the recipient; and
179 |
180 | (b) You may distribute such Executable Form under the terms of this
181 | License, or sublicense it under different terms, provided that the
182 | license for the Executable Form does not attempt to limit or alter
183 | the recipients' rights in the Source Code Form under this License.
184 |
185 | 3.3. Distribution of a Larger Work
186 |
187 | You may create and distribute a Larger Work under terms of Your choice,
188 | provided that You also comply with the requirements of this License for
189 | the Covered Software. If the Larger Work is a combination of Covered
190 | Software with a work governed by one or more Secondary Licenses, and the
191 | Covered Software is not Incompatible With Secondary Licenses, this
192 | License permits You to additionally distribute such Covered Software
193 | under the terms of such Secondary License(s), so that the recipient of
194 | the Larger Work may, at their option, further distribute the Covered
195 | Software under the terms of either this License or such Secondary
196 | License(s).
197 |
198 | 3.4. Notices
199 |
200 | You may not remove or alter the substance of any license notices
201 | (including copyright notices, patent notices, disclaimers of warranty,
202 | or limitations of liability) contained within the Source Code Form of
203 | the Covered Software, except that You may alter any license notices to
204 | the extent required to remedy known factual inaccuracies.
205 |
206 | 3.5. Application of Additional Terms
207 |
208 | You may choose to offer, and to charge a fee for, warranty, support,
209 | indemnity or liability obligations to one or more recipients of Covered
210 | Software. However, You may do so only on Your own behalf, and not on
211 | behalf of any Contributor. You must make it absolutely clear that any
212 | such warranty, support, indemnity, or liability obligation is offered by
213 | You alone, and You hereby agree to indemnify every Contributor for any
214 | liability incurred by such Contributor as a result of warranty, support,
215 | indemnity or liability terms You offer. You may include additional
216 | disclaimers of warranty and limitations of liability specific to any
217 | jurisdiction.
218 |
219 | 4. Inability to Comply Due to Statute or Regulation
220 | ---------------------------------------------------
221 |
222 | If it is impossible for You to comply with any of the terms of this
223 | License with respect to some or all of the Covered Software due to
224 | statute, judicial order, or regulation then You must: (a) comply with
225 | the terms of this License to the maximum extent possible; and (b)
226 | describe the limitations and the code they affect. Such description must
227 | be placed in a text file included with all distributions of the Covered
228 | Software under this License. Except to the extent prohibited by statute
229 | or regulation, such description must be sufficiently detailed for a
230 | recipient of ordinary skill to be able to understand it.
231 |
232 | 5. Termination
233 | --------------
234 |
235 | 5.1. The rights granted under this License will terminate automatically
236 | if You fail to comply with any of its terms. However, if You become
237 | compliant, then the rights granted under this License from a particular
238 | Contributor are reinstated (a) provisionally, unless and until such
239 | Contributor explicitly and finally terminates Your grants, and (b) on an
240 | ongoing basis, if such Contributor fails to notify You of the
241 | non-compliance by some reasonable means prior to 60 days after You have
242 | come back into compliance. Moreover, Your grants from a particular
243 | Contributor are reinstated on an ongoing basis if such Contributor
244 | notifies You of the non-compliance by some reasonable means, this is the
245 | first time You have received notice of non-compliance with this License
246 | from such Contributor, and You become compliant prior to 30 days after
247 | Your receipt of the notice.
248 |
249 | 5.2. If You initiate litigation against any entity by asserting a patent
250 | infringement claim (excluding declaratory judgment actions,
251 | counter-claims, and cross-claims) alleging that a Contributor Version
252 | directly or indirectly infringes any patent, then the rights granted to
253 | You by any and all Contributors for the Covered Software under Section
254 | 2.1 of this License shall terminate.
255 |
256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257 | end user license agreements (excluding distributors and resellers) which
258 | have been validly granted by You or Your distributors under this License
259 | prior to termination shall survive termination.
260 |
261 | ************************************************************************
262 | * *
263 | * 6. Disclaimer of Warranty *
264 | * ------------------------- *
265 | * *
266 | * Covered Software is provided under this License on an "as is" *
267 | * basis, without warranty of any kind, either expressed, implied, or *
268 | * statutory, including, without limitation, warranties that the *
269 | * Covered Software is free of defects, merchantable, fit for a *
270 | * particular purpose or non-infringing. The entire risk as to the *
271 | * quality and performance of the Covered Software is with You. *
272 | * Should any Covered Software prove defective in any respect, You *
273 | * (not any Contributor) assume the cost of any necessary servicing, *
274 | * repair, or correction. This disclaimer of warranty constitutes an *
275 | * essential part of this License. No use of any Covered Software is *
276 | * authorized under this License except under this disclaimer. *
277 | * *
278 | ************************************************************************
279 |
280 | ************************************************************************
281 | * *
282 | * 7. Limitation of Liability *
283 | * -------------------------- *
284 | * *
285 | * Under no circumstances and under no legal theory, whether tort *
286 | * (including negligence), contract, or otherwise, shall any *
287 | * Contributor, or anyone who distributes Covered Software as *
288 | * permitted above, be liable to You for any direct, indirect, *
289 | * special, incidental, or consequential damages of any character *
290 | * including, without limitation, damages for lost profits, loss of *
291 | * goodwill, work stoppage, computer failure or malfunction, or any *
292 | * and all other commercial damages or losses, even if such party *
293 | * shall have been informed of the possibility of such damages. This *
294 | * limitation of liability shall not apply to liability for death or *
295 | * personal injury resulting from such party's negligence to the *
296 | * extent applicable law prohibits such limitation. Some *
297 | * jurisdictions do not allow the exclusion or limitation of *
298 | * incidental or consequential damages, so this exclusion and *
299 | * limitation may not apply to You. *
300 | * *
301 | ************************************************************************
302 |
303 | 8. Litigation
304 | -------------
305 |
306 | Any litigation relating to this License may be brought only in the
307 | courts of a jurisdiction where the defendant maintains its principal
308 | place of business and such litigation shall be governed by laws of that
309 | jurisdiction, without reference to its conflict-of-law provisions.
310 | Nothing in this Section shall prevent a party's ability to bring
311 | cross-claims or counter-claims.
312 |
313 | 9. Miscellaneous
314 | ----------------
315 |
316 | This License represents the complete agreement concerning the subject
317 | matter hereof. If any provision of this License is held to be
318 | unenforceable, such provision shall be reformed only to the extent
319 | necessary to make it enforceable. Any law or regulation which provides
320 | that the language of a contract shall be construed against the drafter
321 | shall not be used to construe this License against a Contributor.
322 |
323 | 10. Versions of the License
324 | ---------------------------
325 |
326 | 10.1. New Versions
327 |
328 | Mozilla Foundation is the license steward. Except as provided in Section
329 | 10.3, no one other than the license steward has the right to modify or
330 | publish new versions of this License. Each version will be given a
331 | distinguishing version number.
332 |
333 | 10.2. Effect of New Versions
334 |
335 | You may distribute the Covered Software under the terms of the version
336 | of the License under which You originally received the Covered Software,
337 | or under the terms of any subsequent version published by the license
338 | steward.
339 |
340 | 10.3. Modified Versions
341 |
342 | If you create software not governed by this License, and you want to
343 | create a new license for such software, you may create and use a
344 | modified version of this License if you rename the license and remove
345 | any references to the name of the license steward (except to note that
346 | such modified license differs from this License).
347 |
348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary
349 | Licenses
350 |
351 | If You choose to distribute Source Code Form that is Incompatible With
352 | Secondary Licenses under the terms of this version of the License, the
353 | notice described in Exhibit B of this License must be attached.
354 |
355 | Exhibit A - Source Code Form License Notice
356 | -------------------------------------------
357 |
358 | This Source Code Form is subject to the terms of the Mozilla Public
359 | License, v. 2.0. If a copy of the MPL was not distributed with this
360 | file, You can obtain one at http://mozilla.org/MPL/2.0/.
361 |
362 | If it is not possible or desirable to put the notice in a particular
363 | file, then You may include the notice in a location (such as a LICENSE
364 | file in a relevant directory) where a recipient would be likely to look
365 | for such a notice.
366 |
367 | You may add additional accurate notices of copyright ownership.
368 |
369 | Exhibit B - "Incompatible With Secondary Licenses" Notice
370 | ---------------------------------------------------------
371 |
372 | This Source Code Form is "Incompatible With Secondary Licenses", as
373 | defined by the Mozilla Public License, v. 2.0.
374 |
--------------------------------------------------------------------------------
/doc/slo_grafana.excalidraw:
--------------------------------------------------------------------------------
1 | {
2 | "type": "excalidraw",
3 | "version": 2,
4 | "source": "https://excalidraw.com",
5 | "elements": [
6 | {
7 | "type": "rectangle",
8 | "version": 419,
9 | "versionNonce": 1173950399,
10 | "isDeleted": false,
11 | "id": "IMYK5q_vpC1dQCIlHpgYQ",
12 | "fillStyle": "hachure",
13 | "strokeWidth": 1,
14 | "strokeStyle": "solid",
15 | "roughness": 1,
16 | "opacity": 100,
17 | "angle": 0,
18 | "x": 646.3742504387676,
19 | "y": 231.791096675117,
20 | "strokeColor": "#000000",
21 | "backgroundColor": "transparent",
22 | "width": 293.0408029446178,
23 | "height": 247.8070775643526,
24 | "seed": 434890234,
25 | "groupIds": [],
26 | "strokeSharpness": "sharp",
27 | "boundElements": [
28 | {
29 | "id": "ms3XYef5KhA3joebiOKbb",
30 | "type": "arrow"
31 | }
32 | ],
33 | "updated": 1662032666335,
34 | "link": null,
35 | "locked": false
36 | },
37 | {
38 | "type": "text",
39 | "version": 682,
40 | "versionNonce": 2108690353,
41 | "isDeleted": false,
42 | "id": "bZ0oABjxdy1MkMi5icdv8",
43 | "fillStyle": "hachure",
44 | "strokeWidth": 1,
45 | "strokeStyle": "solid",
46 | "roughness": 1,
47 | "opacity": 100,
48 | "angle": 0,
49 | "x": 711.6370758580343,
50 | "y": 185.5625,
51 | "strokeColor": "#000000",
52 | "backgroundColor": "transparent",
53 | "width": 168.54290171606866,
54 | "height": 23.408736349453978,
55 | "seed": 822617018,
56 | "groupIds": [],
57 | "strokeSharpness": "sharp",
58 | "boundElements": [],
59 | "updated": 1662032666335,
60 | "link": null,
61 | "locked": false,
62 | "fontSize": 18.726989079563182,
63 | "fontFamily": 1,
64 | "text": "Tyk API Gateway",
65 | "baseline": 16.408736349453978,
66 | "textAlign": "left",
67 | "verticalAlign": "top",
68 | "containerId": null,
69 | "originalText": "Tyk API Gateway"
70 | },
71 | {
72 | "type": "rectangle",
73 | "version": 710,
74 | "versionNonce": 14598111,
75 | "isDeleted": false,
76 | "id": "DmRcMfhFuCanylshXMWFM",
77 | "fillStyle": "hachure",
78 | "strokeWidth": 1,
79 | "strokeStyle": "solid",
80 | "roughness": 1,
81 | "opacity": 100,
82 | "angle": 0,
83 | "x": 279.9782366071428,
84 | "y": 310.14926715372184,
85 | "strokeColor": "#000000",
86 | "backgroundColor": "transparent",
87 | "width": 181.0991362199131,
88 | "height": 84.21789283624918,
89 | "seed": 805853242,
90 | "groupIds": [],
91 | "strokeSharpness": "sharp",
92 | "boundElements": [
93 | {
94 | "id": "BxrCGvbEIM0Yw2OdNTSZ1",
95 | "type": "arrow"
96 | },
97 | {
98 | "id": "LKSIa7hqbhsOK_6jQrHI9",
99 | "type": "arrow"
100 | }
101 | ],
102 | "updated": 1662032666335,
103 | "link": null,
104 | "locked": false
105 | },
106 | {
107 | "type": "text",
108 | "version": 607,
109 | "versionNonce": 290779537,
110 | "isDeleted": false,
111 | "id": "kJgkyAueW5yd_qtyX_VSL",
112 | "fillStyle": "hachure",
113 | "strokeWidth": 1,
114 | "strokeStyle": "solid",
115 | "roughness": 1,
116 | "opacity": 100,
117 | "angle": 0,
118 | "x": 396.0909674824493,
119 | "y": 275.620297874415,
120 | "strokeColor": "#000000",
121 | "backgroundColor": "transparent",
122 | "width": 33.70858034321373,
123 | "height": 23.408736349453978,
124 | "seed": 1658846694,
125 | "groupIds": [],
126 | "strokeSharpness": "sharp",
127 | "boundElements": [],
128 | "updated": 1662032666335,
129 | "link": null,
130 | "locked": false,
131 | "fontSize": 18.726989079563186,
132 | "fontFamily": 1,
133 | "text": "K6 ",
134 | "baseline": 16.408736349453978,
135 | "textAlign": "left",
136 | "verticalAlign": "top",
137 | "containerId": null,
138 | "originalText": "K6 "
139 | },
140 | {
141 | "type": "rectangle",
142 | "version": 640,
143 | "versionNonce": 265907199,
144 | "isDeleted": false,
145 | "id": "U-j1a3tfeL2exJCkn0lC8",
146 | "fillStyle": "hachure",
147 | "strokeWidth": 1,
148 | "strokeStyle": "solid",
149 | "roughness": 1,
150 | "opacity": 100,
151 | "angle": 0,
152 | "x": 665.3024083463339,
153 | "y": 272.38330855109206,
154 | "strokeColor": "#000000",
155 | "backgroundColor": "transparent",
156 | "width": 254.54806210998436,
157 | "height": 49.944733570592824,
158 | "seed": 587024250,
159 | "groupIds": [],
160 | "strokeSharpness": "sharp",
161 | "boundElements": [
162 | {
163 | "id": "BxrCGvbEIM0Yw2OdNTSZ1",
164 | "type": "arrow"
165 | },
166 | {
167 | "id": "UGOo3cD0cz_nGFyOu9J2z",
168 | "type": "arrow"
169 | },
170 | {
171 | "id": "gMcFsByx80EF54YgbhljB",
172 | "type": "arrow"
173 | }
174 | ],
175 | "updated": 1662032666335,
176 | "link": null,
177 | "locked": false
178 | },
179 | {
180 | "type": "text",
181 | "version": 244,
182 | "versionNonce": 96638833,
183 | "isDeleted": false,
184 | "id": "eq7llxB037_3OTgFCC6Iw",
185 | "fillStyle": "hachure",
186 | "strokeWidth": 1,
187 | "strokeStyle": "solid",
188 | "roughness": 1,
189 | "opacity": 100,
190 | "angle": 0,
191 | "x": 678.3235179407177,
192 | "y": 287.3722150448518,
193 | "strokeColor": "#000000",
194 | "backgroundColor": "transparent",
195 | "width": 189.14258970358816,
196 | "height": 23.408736349453978,
197 | "seed": 805754746,
198 | "groupIds": [],
199 | "strokeSharpness": "sharp",
200 | "boundElements": [
201 | {
202 | "id": "BxrCGvbEIM0Yw2OdNTSZ1",
203 | "type": "arrow"
204 | }
205 | ],
206 | "updated": 1662032666335,
207 | "link": null,
208 | "locked": false,
209 | "fontSize": 18.726989079563182,
210 | "fontFamily": 1,
211 | "text": "httpbin API endpoint",
212 | "baseline": 16.408736349453978,
213 | "textAlign": "left",
214 | "verticalAlign": "top",
215 | "containerId": null,
216 | "originalText": "httpbin API endpoint"
217 | },
218 | {
219 | "type": "rectangle",
220 | "version": 677,
221 | "versionNonce": 518624287,
222 | "isDeleted": false,
223 | "id": "WT3evTrwkesUItebUPIjW",
224 | "fillStyle": "hachure",
225 | "strokeWidth": 1,
226 | "strokeStyle": "solid",
227 | "roughness": 1,
228 | "opacity": 100,
229 | "angle": 0,
230 | "x": 666.6612123391185,
231 | "y": 347.61130618662247,
232 | "strokeColor": "#000000",
233 | "backgroundColor": "transparent",
234 | "width": 251.848742199688,
235 | "height": 49.944733570592824,
236 | "seed": 101675430,
237 | "groupIds": [],
238 | "strokeSharpness": "sharp",
239 | "boundElements": [
240 | {
241 | "id": "LKSIa7hqbhsOK_6jQrHI9",
242 | "type": "arrow"
243 | }
244 | ],
245 | "updated": 1662032666335,
246 | "link": null,
247 | "locked": false
248 | },
249 | {
250 | "type": "text",
251 | "version": 371,
252 | "versionNonce": 1296073041,
253 | "isDeleted": false,
254 | "id": "bA2vKdLP0q9jDRrJbFqMu",
255 | "fillStyle": "hachure",
256 | "strokeWidth": 1,
257 | "strokeStyle": "solid",
258 | "roughness": 1,
259 | "opacity": 100,
260 | "angle": 0,
261 | "x": 679.2946147377145,
262 | "y": 362.45390807819814,
263 | "strokeColor": "#000000",
264 | "backgroundColor": "transparent",
265 | "width": 231.27831513260531,
266 | "height": 23.408736349453978,
267 | "seed": 974545850,
268 | "groupIds": [],
269 | "strokeSharpness": "sharp",
270 | "boundElements": [
271 | {
272 | "id": "FwsF-J0rlFqSD5p_SeHbA",
273 | "type": "arrow"
274 | },
275 | {
276 | "id": "VgWjVxY2n6UbNLZNwMsmG",
277 | "type": "arrow"
278 | }
279 | ],
280 | "updated": 1662032666335,
281 | "link": null,
282 | "locked": false,
283 | "fontSize": 18.726989079563182,
284 | "fontFamily": 1,
285 | "text": "httpstatus API endpoint",
286 | "baseline": 16.408736349453978,
287 | "textAlign": "left",
288 | "verticalAlign": "top",
289 | "containerId": null,
290 | "originalText": "httpstatus API endpoint"
291 | },
292 | {
293 | "type": "arrow",
294 | "version": 593,
295 | "versionNonce": 100644927,
296 | "isDeleted": false,
297 | "id": "BxrCGvbEIM0Yw2OdNTSZ1",
298 | "fillStyle": "hachure",
299 | "strokeWidth": 1,
300 | "strokeStyle": "solid",
301 | "roughness": 1,
302 | "opacity": 100,
303 | "angle": 0,
304 | "x": 466.40796852347955,
305 | "y": 347.9523987391041,
306 | "strokeColor": "#000000",
307 | "backgroundColor": "transparent",
308 | "width": 192.23971819264773,
309 | "height": 46.639695231836015,
310 | "seed": 1360346170,
311 | "groupIds": [],
312 | "strokeSharpness": "round",
313 | "boundElements": [],
314 | "updated": 1662032666335,
315 | "link": null,
316 | "locked": false,
317 | "startBinding": {
318 | "elementId": "DmRcMfhFuCanylshXMWFM",
319 | "gap": 5.330595696423544,
320 | "focus": 0.29582798184391396
321 | },
322 | "endBinding": {
323 | "elementId": "eq7llxB037_3OTgFCC6Iw",
324 | "gap": 19.675831224590326,
325 | "focus": 0.7354318856127774
326 | },
327 | "lastCommittedPoint": null,
328 | "startArrowhead": null,
329 | "endArrowhead": "arrow",
330 | "points": [
331 | [
332 | 0,
333 | 0
334 | ],
335 | [
336 | 192.23971819264773,
337 | -46.639695231836015
338 | ]
339 | ]
340 | },
341 | {
342 | "type": "arrow",
343 | "version": 630,
344 | "versionNonce": 623259441,
345 | "isDeleted": false,
346 | "id": "LKSIa7hqbhsOK_6jQrHI9",
347 | "fillStyle": "hachure",
348 | "strokeWidth": 1,
349 | "strokeStyle": "solid",
350 | "roughness": 1,
351 | "opacity": 100,
352 | "angle": 0,
353 | "x": 467.11626165311645,
354 | "y": 362.35071313777723,
355 | "strokeColor": "#000000",
356 | "backgroundColor": "transparent",
357 | "width": 192.85066074972553,
358 | "height": 15.062391072092623,
359 | "seed": 261431162,
360 | "groupIds": [],
361 | "strokeSharpness": "round",
362 | "boundElements": [],
363 | "updated": 1662032666335,
364 | "link": null,
365 | "locked": false,
366 | "startBinding": {
367 | "elementId": "DmRcMfhFuCanylshXMWFM",
368 | "gap": 6.03888882606054,
369 | "focus": 0.05181981351347791
370 | },
371 | "endBinding": {
372 | "elementId": "WT3evTrwkesUItebUPIjW",
373 | "gap": 6.694289936276406,
374 | "focus": -0.4363267816492446
375 | },
376 | "lastCommittedPoint": null,
377 | "startArrowhead": null,
378 | "endArrowhead": "arrow",
379 | "points": [
380 | [
381 | 0,
382 | 0
383 | ],
384 | [
385 | 192.85066074972553,
386 | 15.062391072092623
387 | ]
388 | ]
389 | },
390 | {
391 | "type": "text",
392 | "version": 687,
393 | "versionNonce": 1258051679,
394 | "isDeleted": false,
395 | "id": "yzY1cxoikSG70skpyhLh4",
396 | "fillStyle": "hachure",
397 | "strokeWidth": 1,
398 | "strokeStyle": "solid",
399 | "roughness": 1,
400 | "opacity": 100,
401 | "angle": 0,
402 | "x": 309.42381811343887,
403 | "y": 326.057924455371,
404 | "strokeColor": "#000000",
405 | "backgroundColor": "transparent",
406 | "width": 116,
407 | "height": 47,
408 | "seed": 90361382,
409 | "groupIds": [],
410 | "strokeSharpness": "sharp",
411 | "boundElements": [],
412 | "updated": 1662032666335,
413 | "link": null,
414 | "locked": false,
415 | "fontSize": 18.726989079563182,
416 | "fontFamily": 1,
417 | "text": "Generate \ndemo traffic",
418 | "baseline": 40,
419 | "textAlign": "left",
420 | "verticalAlign": "top",
421 | "containerId": null,
422 | "originalText": "Generate \ndemo traffic"
423 | },
424 | {
425 | "type": "rectangle",
426 | "version": 205,
427 | "versionNonce": 869998865,
428 | "isDeleted": false,
429 | "id": "jRoZs9xozTSTPPIu_k27i",
430 | "fillStyle": "hachure",
431 | "strokeWidth": 1,
432 | "strokeStyle": "solid",
433 | "roughness": 1,
434 | "opacity": 100,
435 | "angle": 0,
436 | "x": 658.9527886115445,
437 | "y": 575.8080806357254,
438 | "strokeColor": "#000000",
439 | "backgroundColor": "transparent",
440 | "width": 125.82927310842435,
441 | "height": 75.96500706903277,
442 | "seed": 266011238,
443 | "groupIds": [],
444 | "strokeSharpness": "sharp",
445 | "boundElements": [
446 | {
447 | "id": "ms3XYef5KhA3joebiOKbb",
448 | "type": "arrow"
449 | },
450 | {
451 | "id": "SkTV_XdRQynM2E5L1GYq_",
452 | "type": "arrow"
453 | }
454 | ],
455 | "updated": 1662032666335,
456 | "link": null,
457 | "locked": false
458 | },
459 | {
460 | "type": "text",
461 | "version": 400,
462 | "versionNonce": 1672475775,
463 | "isDeleted": false,
464 | "id": "s3K1Dj8ShIeV_kyyf6tDX",
465 | "fillStyle": "hachure",
466 | "strokeWidth": 1,
467 | "strokeStyle": "solid",
468 | "roughness": 1,
469 | "opacity": 100,
470 | "angle": 0,
471 | "x": 689.7864835218409,
472 | "y": 665.2879753315133,
473 | "strokeColor": "#000000",
474 | "backgroundColor": "transparent",
475 | "width": 48.690171606864276,
476 | "height": 23.408736349453978,
477 | "seed": 1317711418,
478 | "groupIds": [],
479 | "strokeSharpness": "sharp",
480 | "boundElements": [],
481 | "updated": 1662032666335,
482 | "link": null,
483 | "locked": false,
484 | "fontSize": 18.726989079563182,
485 | "fontFamily": 1,
486 | "text": "Redis",
487 | "baseline": 16.408736349453978,
488 | "textAlign": "left",
489 | "verticalAlign": "top",
490 | "containerId": null,
491 | "originalText": "Redis"
492 | },
493 | {
494 | "type": "rectangle",
495 | "version": 590,
496 | "versionNonce": 1725355761,
497 | "isDeleted": false,
498 | "id": "EOg3Ose79GvtXkKKoCkqD",
499 | "fillStyle": "hachure",
500 | "strokeWidth": 1,
501 | "strokeStyle": "solid",
502 | "roughness": 1,
503 | "opacity": 100,
504 | "angle": 0,
505 | "x": 910.3329887034768,
506 | "y": 555.2907978082516,
507 | "strokeColor": "#000000",
508 | "backgroundColor": "transparent",
509 | "width": 125.82927310842435,
510 | "height": 103.13742930967241,
511 | "seed": 494298342,
512 | "groupIds": [],
513 | "strokeSharpness": "sharp",
514 | "boundElements": [
515 | {
516 | "id": "SkTV_XdRQynM2E5L1GYq_",
517 | "type": "arrow"
518 | },
519 | {
520 | "id": "WxIGCjt0uEAs_n-Hi4hQc",
521 | "type": "arrow"
522 | }
523 | ],
524 | "updated": 1662032666335,
525 | "link": null,
526 | "locked": false
527 | },
528 | {
529 | "type": "text",
530 | "version": 689,
531 | "versionNonce": 937102495,
532 | "isDeleted": false,
533 | "id": "HrYvhvIGmrP0b3elTdfma",
534 | "fillStyle": "hachure",
535 | "strokeWidth": 1,
536 | "strokeStyle": "solid",
537 | "roughness": 1,
538 | "opacity": 100,
539 | "angle": 0,
540 | "x": 678.5063986934477,
541 | "y": 608.7266161271451,
542 | "strokeColor": "#000000",
543 | "backgroundColor": "transparent",
544 | "width": 85.70230986739445,
545 | "height": 13.734344530031168,
546 | "seed": 224172026,
547 | "groupIds": [],
548 | "strokeSharpness": "sharp",
549 | "boundElements": [],
550 | "updated": 1662032666335,
551 | "link": null,
552 | "locked": false,
553 | "fontSize": 10.987475624024931,
554 | "fontFamily": 1,
555 | "text": "Telemetry data",
556 | "baseline": 9.734344530031168,
557 | "textAlign": "left",
558 | "verticalAlign": "top",
559 | "containerId": null,
560 | "originalText": "Telemetry data"
561 | },
562 | {
563 | "type": "arrow",
564 | "version": 292,
565 | "versionNonce": 203940237,
566 | "isDeleted": false,
567 | "id": "ms3XYef5KhA3joebiOKbb",
568 | "fillStyle": "hachure",
569 | "strokeWidth": 1,
570 | "strokeStyle": "dashed",
571 | "roughness": 1,
572 | "opacity": 100,
573 | "angle": 0,
574 | "x": 714.5299397381746,
575 | "y": 482.0414610959439,
576 | "strokeColor": "#000000",
577 | "backgroundColor": "transparent",
578 | "width": 0.5678635786710768,
579 | "height": 88.00953344383775,
580 | "seed": 1969842022,
581 | "groupIds": [],
582 | "strokeSharpness": "round",
583 | "boundElements": [],
584 | "updated": 1662103261038,
585 | "link": null,
586 | "locked": false,
587 | "startBinding": {
588 | "elementId": "IMYK5q_vpC1dQCIlHpgYQ",
589 | "focus": 0.5264020955905074,
590 | "gap": 2.443286856474259
591 | },
592 | "endBinding": {
593 | "elementId": "jRoZs9xozTSTPPIu_k27i",
594 | "focus": -0.12963279399940372,
595 | "gap": 5.757086095943805
596 | },
597 | "lastCommittedPoint": null,
598 | "startArrowhead": null,
599 | "endArrowhead": "arrow",
600 | "points": [
601 | [
602 | 0,
603 | 0
604 | ],
605 | [
606 | -0.5678635786710768,
607 | 88.00953344383775
608 | ]
609 | ]
610 | },
611 | {
612 | "type": "text",
613 | "version": 1396,
614 | "versionNonce": 724373475,
615 | "isDeleted": false,
616 | "id": "0VJnjkmh3-tQEynhQIh1G",
617 | "fillStyle": "hachure",
618 | "strokeWidth": 1,
619 | "strokeStyle": "solid",
620 | "roughness": 1,
621 | "opacity": 100,
622 | "angle": 0,
623 | "x": 931.1617199687986,
624 | "y": 677.2155668458881,
625 | "strokeColor": "#000000",
626 | "backgroundColor": "transparent",
627 | "width": 86,
628 | "height": 71,
629 | "seed": 1734919142,
630 | "groupIds": [],
631 | "strokeSharpness": "sharp",
632 | "boundElements": [],
633 | "updated": 1662103272421,
634 | "link": null,
635 | "locked": false,
636 | "fontSize": 18.726989079563182,
637 | "fontFamily": 1,
638 | "text": "Tyk Pump\n\n",
639 | "baseline": 64,
640 | "textAlign": "left",
641 | "verticalAlign": "top",
642 | "containerId": null,
643 | "originalText": "Tyk Pump\n\n"
644 | },
645 | {
646 | "type": "rectangle",
647 | "version": 501,
648 | "versionNonce": 1188073137,
649 | "isDeleted": false,
650 | "id": "GRQtapluuU6TzrWG-uaLq",
651 | "fillStyle": "hachure",
652 | "strokeWidth": 1,
653 | "strokeStyle": "solid",
654 | "roughness": 1,
655 | "opacity": 100,
656 | "angle": 0,
657 | "x": 983.883969836472,
658 | "y": 562.6407752604747,
659 | "strokeColor": "#000000",
660 | "backgroundColor": "transparent",
661 | "width": 42.5380630850234,
662 | "height": 90.5844944422777,
663 | "seed": 149075386,
664 | "groupIds": [],
665 | "strokeSharpness": "sharp",
666 | "boundElements": [],
667 | "updated": 1662032666335,
668 | "link": null,
669 | "locked": false
670 | },
671 | {
672 | "type": "text",
673 | "version": 742,
674 | "versionNonce": 927576287,
675 | "isDeleted": false,
676 | "id": "nrE-EU0V2OTZlvOR9H7nK",
677 | "fillStyle": "hachure",
678 | "strokeWidth": 1,
679 | "strokeStyle": "solid",
680 | "roughness": 1,
681 | "opacity": 100,
682 | "angle": 4.710346145539136,
683 | "x": 970.2962138305705,
684 | "y": 601.0427703160068,
685 | "strokeColor": "#000000",
686 | "backgroundColor": "transparent",
687 | "width": 72.09890795631826,
688 | "height": 22.47238689547582,
689 | "seed": 931057574,
690 | "groupIds": [],
691 | "strokeSharpness": "sharp",
692 | "boundElements": [],
693 | "updated": 1662032666335,
694 | "link": null,
695 | "locked": false,
696 | "fontSize": 9.155957779444403,
697 | "fontFamily": 1,
698 | "text": "Prometheus\nmetrics endpoint",
699 | "baseline": 19.47238689547582,
700 | "textAlign": "left",
701 | "verticalAlign": "top",
702 | "containerId": null,
703 | "originalText": "Prometheus\nmetrics endpoint"
704 | },
705 | {
706 | "type": "rectangle",
707 | "version": 771,
708 | "versionNonce": 888977,
709 | "isDeleted": false,
710 | "id": "ovW6SGWDAqZKA8trHL1fp",
711 | "fillStyle": "hachure",
712 | "strokeWidth": 1,
713 | "strokeStyle": "solid",
714 | "roughness": 1,
715 | "opacity": 100,
716 | "angle": 0,
717 | "x": 1080.6205728005907,
718 | "y": 553.9393090455761,
719 | "strokeColor": "#000000",
720 | "backgroundColor": "transparent",
721 | "width": 125.82927310842435,
722 | "height": 103.13742930967241,
723 | "seed": 102496486,
724 | "groupIds": [],
725 | "strokeSharpness": "sharp",
726 | "boundElements": [
727 | {
728 | "id": "2YaeVFQ3nc47T4bPzXVL7",
729 | "type": "arrow"
730 | },
731 | {
732 | "id": "GElz5apUQz1ru-8MfQezQ",
733 | "type": "arrow"
734 | },
735 | {
736 | "id": "WxIGCjt0uEAs_n-Hi4hQc",
737 | "type": "arrow"
738 | },
739 | {
740 | "id": "dWLQ1pHnAPALk8It-dRm3",
741 | "type": "arrow"
742 | }
743 | ],
744 | "updated": 1662032666335,
745 | "link": null,
746 | "locked": false
747 | },
748 | {
749 | "type": "text",
750 | "version": 1590,
751 | "versionNonce": 2109619455,
752 | "isDeleted": false,
753 | "id": "btwbyjOXP7uWMCUYY5pV1",
754 | "fillStyle": "hachure",
755 | "strokeWidth": 1,
756 | "strokeStyle": "solid",
757 | "roughness": 1,
758 | "opacity": 100,
759 | "angle": 0,
760 | "x": 1091.346362408068,
761 | "y": 597.9468514945955,
762 | "strokeColor": "#000000",
763 | "backgroundColor": "transparent",
764 | "width": 104.87113884555383,
765 | "height": 23.408736349453978,
766 | "seed": 536794086,
767 | "groupIds": [],
768 | "strokeSharpness": "sharp",
769 | "boundElements": [],
770 | "updated": 1662032666335,
771 | "link": null,
772 | "locked": false,
773 | "fontSize": 18.726989079563182,
774 | "fontFamily": 1,
775 | "text": "Prometheus",
776 | "baseline": 16.408736349453978,
777 | "textAlign": "left",
778 | "verticalAlign": "top",
779 | "containerId": null,
780 | "originalText": "Prometheus"
781 | },
782 | {
783 | "type": "rectangle",
784 | "version": 911,
785 | "versionNonce": 1913607793,
786 | "isDeleted": false,
787 | "id": "84nPc4dM0IQekOlyhxnZh",
788 | "fillStyle": "hachure",
789 | "strokeWidth": 1,
790 | "strokeStyle": "solid",
791 | "roughness": 1,
792 | "opacity": 100,
793 | "angle": 0,
794 | "x": 1256.5024791237186,
795 | "y": 552.207428317222,
796 | "strokeColor": "#000000",
797 | "backgroundColor": "transparent",
798 | "width": 125.82927310842435,
799 | "height": 103.13742930967241,
800 | "seed": 392692262,
801 | "groupIds": [],
802 | "strokeSharpness": "sharp",
803 | "boundElements": [
804 | {
805 | "id": "2YaeVFQ3nc47T4bPzXVL7",
806 | "type": "arrow"
807 | },
808 | {
809 | "id": "dWLQ1pHnAPALk8It-dRm3",
810 | "type": "arrow"
811 | }
812 | ],
813 | "updated": 1662032666335,
814 | "link": null,
815 | "locked": false
816 | },
817 | {
818 | "type": "text",
819 | "version": 1742,
820 | "versionNonce": 2047624479,
821 | "isDeleted": false,
822 | "id": "lc1HEgSK07oZw9FMg_R9P",
823 | "fillStyle": "hachure",
824 | "strokeWidth": 1,
825 | "strokeStyle": "solid",
826 | "roughness": 1,
827 | "opacity": 100,
828 | "angle": 0,
829 | "x": 1276.2796080169098,
830 | "y": 595.3444350519558,
831 | "strokeColor": "#000000",
832 | "backgroundColor": "transparent",
833 | "width": 78.65335413416537,
834 | "height": 23.408736349453978,
835 | "seed": 1957501754,
836 | "groupIds": [],
837 | "strokeSharpness": "sharp",
838 | "boundElements": [],
839 | "updated": 1662032666335,
840 | "link": null,
841 | "locked": false,
842 | "fontSize": 18.726989079563182,
843 | "fontFamily": 1,
844 | "text": "Grafana",
845 | "baseline": 16.408736349453978,
846 | "textAlign": "left",
847 | "verticalAlign": "top",
848 | "containerId": null,
849 | "originalText": "Grafana"
850 | },
851 | {
852 | "type": "rectangle",
853 | "version": 977,
854 | "versionNonce": 798842961,
855 | "isDeleted": false,
856 | "id": "ImR4o10RjbLaYROymxKAx",
857 | "fillStyle": "hachure",
858 | "strokeWidth": 1,
859 | "strokeStyle": "solid",
860 | "roughness": 1,
861 | "opacity": 100,
862 | "angle": 0,
863 | "x": 1118.162352873579,
864 | "y": 264.89426267898926,
865 | "strokeColor": "#000000",
866 | "backgroundColor": "transparent",
867 | "width": 254.54806210998436,
868 | "height": 49.944733570592824,
869 | "seed": 1518489318,
870 | "groupIds": [],
871 | "strokeSharpness": "sharp",
872 | "boundElements": [
873 | {
874 | "id": "BxrCGvbEIM0Yw2OdNTSZ1",
875 | "type": "arrow"
876 | },
877 | {
878 | "id": "UGOo3cD0cz_nGFyOu9J2z",
879 | "type": "arrow"
880 | },
881 | {
882 | "id": "gMcFsByx80EF54YgbhljB",
883 | "type": "arrow"
884 | }
885 | ],
886 | "updated": 1662032666335,
887 | "link": null,
888 | "locked": false
889 | },
890 | {
891 | "type": "text",
892 | "version": 287,
893 | "versionNonce": 732186943,
894 | "isDeleted": false,
895 | "id": "8G_EBuzJKKY-1cPIduZeM",
896 | "fillStyle": "hachure",
897 | "strokeWidth": 1,
898 | "strokeStyle": "solid",
899 | "roughness": 1,
900 | "opacity": 100,
901 | "angle": 0,
902 | "x": 1143.9910714285713,
903 | "y": 277.9927455357142,
904 | "strokeColor": "#000000",
905 | "backgroundColor": "transparent",
906 | "width": 180,
907 | "height": 25,
908 | "seed": 1534233786,
909 | "groupIds": [],
910 | "strokeSharpness": "sharp",
911 | "boundElements": [],
912 | "updated": 1662032666335,
913 | "link": null,
914 | "locked": false,
915 | "fontSize": 20,
916 | "fontFamily": 1,
917 | "text": "https://httpbin.org",
918 | "baseline": 18,
919 | "textAlign": "left",
920 | "verticalAlign": "top",
921 | "containerId": null,
922 | "originalText": "https://httpbin.org"
923 | },
924 | {
925 | "type": "rectangle",
926 | "version": 1068,
927 | "versionNonce": 110046769,
928 | "isDeleted": false,
929 | "id": "B4ohg4H5Qe83NJC2EMTeQ",
930 | "fillStyle": "hachure",
931 | "strokeWidth": 1,
932 | "strokeStyle": "solid",
933 | "roughness": 1,
934 | "opacity": 100,
935 | "angle": 0,
936 | "x": 1117.2304332307222,
937 | "y": 350.7089948218465,
938 | "strokeColor": "#000000",
939 | "backgroundColor": "transparent",
940 | "width": 254.54806210998436,
941 | "height": 49.944733570592824,
942 | "seed": 1035787578,
943 | "groupIds": [],
944 | "strokeSharpness": "sharp",
945 | "boundElements": [
946 | {
947 | "id": "BxrCGvbEIM0Yw2OdNTSZ1",
948 | "type": "arrow"
949 | },
950 | {
951 | "id": "FwsF-J0rlFqSD5p_SeHbA",
952 | "type": "arrow"
953 | },
954 | {
955 | "id": "VgWjVxY2n6UbNLZNwMsmG",
956 | "type": "arrow"
957 | }
958 | ],
959 | "updated": 1662032666335,
960 | "link": null,
961 | "locked": false
962 | },
963 | {
964 | "type": "text",
965 | "version": 379,
966 | "versionNonce": 1340524895,
967 | "isDeleted": false,
968 | "id": "0MiKa4UK_r9cXwoWT_2xr",
969 | "fillStyle": "hachure",
970 | "strokeWidth": 1,
971 | "strokeStyle": "solid",
972 | "roughness": 1,
973 | "opacity": 100,
974 | "angle": 0,
975 | "x": 1143.0591517857147,
976 | "y": 363.8074776785715,
977 | "strokeColor": "#000000",
978 | "backgroundColor": "transparent",
979 | "width": 185,
980 | "height": 25,
981 | "seed": 787884902,
982 | "groupIds": [],
983 | "strokeSharpness": "sharp",
984 | "boundElements": [],
985 | "updated": 1662032666335,
986 | "link": null,
987 | "locked": false,
988 | "fontSize": 20,
989 | "fontFamily": 1,
990 | "text": "http://httpstat.us",
991 | "baseline": 18,
992 | "textAlign": "left",
993 | "verticalAlign": "top",
994 | "containerId": null,
995 | "originalText": "http://httpstat.us"
996 | },
997 | {
998 | "type": "arrow",
999 | "version": 107,
1000 | "versionNonce": 499925009,
1001 | "isDeleted": false,
1002 | "id": "UGOo3cD0cz_nGFyOu9J2z",
1003 | "fillStyle": "hachure",
1004 | "strokeWidth": 1,
1005 | "strokeStyle": "solid",
1006 | "roughness": 1,
1007 | "opacity": 100,
1008 | "angle": 0,
1009 | "x": 922.9252232142858,
1010 | "y": 290.40234375,
1011 | "strokeColor": "#000000",
1012 | "backgroundColor": "transparent",
1013 | "width": 191.90290178571422,
1014 | "height": 12.522321428571445,
1015 | "seed": 2011849958,
1016 | "groupIds": [],
1017 | "strokeSharpness": "round",
1018 | "boundElements": [],
1019 | "updated": 1662032666335,
1020 | "link": null,
1021 | "locked": false,
1022 | "startBinding": {
1023 | "elementId": "U-j1a3tfeL2exJCkn0lC8",
1024 | "focus": 0.046649417776372964,
1025 | "gap": 3.0747527579675307
1026 | },
1027 | "endBinding": {
1028 | "elementId": "ImR4o10RjbLaYROymxKAx",
1029 | "focus": 0.6163108549691537,
1030 | "gap": 3.334227873578925
1031 | },
1032 | "lastCommittedPoint": null,
1033 | "startArrowhead": null,
1034 | "endArrowhead": "arrow",
1035 | "points": [
1036 | [
1037 | 0,
1038 | 0
1039 | ],
1040 | [
1041 | 191.90290178571422,
1042 | -12.522321428571445
1043 | ]
1044 | ]
1045 | },
1046 | {
1047 | "type": "arrow",
1048 | "version": 104,
1049 | "versionNonce": 606356863,
1050 | "isDeleted": false,
1051 | "id": "gMcFsByx80EF54YgbhljB",
1052 | "fillStyle": "hachure",
1053 | "strokeWidth": 1,
1054 | "strokeStyle": "solid",
1055 | "roughness": 1,
1056 | "opacity": 100,
1057 | "angle": 0,
1058 | "x": 1116.8872767857142,
1059 | "y": 301.58537946428567,
1060 | "strokeColor": "#000000",
1061 | "backgroundColor": "transparent",
1062 | "width": 194.98883928571422,
1063 | "height": 5.647321428571445,
1064 | "seed": 1925520442,
1065 | "groupIds": [],
1066 | "strokeSharpness": "round",
1067 | "boundElements": [],
1068 | "updated": 1662032666335,
1069 | "link": null,
1070 | "locked": false,
1071 | "startBinding": {
1072 | "elementId": "ImR4o10RjbLaYROymxKAx",
1073 | "focus": -0.2789982415687765,
1074 | "gap": 1.2750760878647043
1075 | },
1076 | "endBinding": {
1077 | "elementId": "U-j1a3tfeL2exJCkn0lC8",
1078 | "focus": 0.47533818459866567,
1079 | "gap": 2.0479670436817514
1080 | },
1081 | "lastCommittedPoint": null,
1082 | "startArrowhead": null,
1083 | "endArrowhead": "arrow",
1084 | "points": [
1085 | [
1086 | 0,
1087 | 0
1088 | ],
1089 | [
1090 | -194.98883928571422,
1091 | 5.647321428571445
1092 | ]
1093 | ]
1094 | },
1095 | {
1096 | "type": "arrow",
1097 | "version": 126,
1098 | "versionNonce": 1397495281,
1099 | "isDeleted": false,
1100 | "id": "FwsF-J0rlFqSD5p_SeHbA",
1101 | "fillStyle": "hachure",
1102 | "strokeWidth": 1,
1103 | "strokeStyle": "solid",
1104 | "roughness": 1,
1105 | "opacity": 100,
1106 | "angle": 0,
1107 | "x": 923.3939732142858,
1108 | "y": 365.34095982142856,
1109 | "strokeColor": "#000000",
1110 | "backgroundColor": "transparent",
1111 | "width": 190.28459821428555,
1112 | "height": 5.61941964285711,
1113 | "seed": 1892684602,
1114 | "groupIds": [],
1115 | "strokeSharpness": "round",
1116 | "boundElements": [],
1117 | "updated": 1662032666335,
1118 | "link": null,
1119 | "locked": false,
1120 | "startBinding": {
1121 | "elementId": "bA2vKdLP0q9jDRrJbFqMu",
1122 | "focus": -0.3322670861531642,
1123 | "gap": 12.82104334396604
1124 | },
1125 | "endBinding": {
1126 | "elementId": "B4ohg4H5Qe83NJC2EMTeQ",
1127 | "focus": 0.689963481432414,
1128 | "gap": 3.551861802150711
1129 | },
1130 | "lastCommittedPoint": null,
1131 | "startArrowhead": null,
1132 | "endArrowhead": "arrow",
1133 | "points": [
1134 | [
1135 | 0,
1136 | 0
1137 | ],
1138 | [
1139 | 190.28459821428555,
1140 | -5.61941964285711
1141 | ]
1142 | ]
1143 | },
1144 | {
1145 | "type": "arrow",
1146 | "version": 73,
1147 | "versionNonce": 1738358175,
1148 | "isDeleted": false,
1149 | "id": "VgWjVxY2n6UbNLZNwMsmG",
1150 | "fillStyle": "hachure",
1151 | "strokeWidth": 1,
1152 | "strokeStyle": "solid",
1153 | "roughness": 1,
1154 | "opacity": 100,
1155 | "angle": 0,
1156 | "x": 1114.9229910714284,
1157 | "y": 385.5139508928571,
1158 | "strokeColor": "#000000",
1159 | "backgroundColor": "transparent",
1160 | "width": 194.01227678571422,
1161 | "height": 0.6584821428571104,
1162 | "seed": 863740538,
1163 | "groupIds": [],
1164 | "strokeSharpness": "round",
1165 | "boundElements": [],
1166 | "updated": 1662032666335,
1167 | "link": null,
1168 | "locked": false,
1169 | "startBinding": {
1170 | "elementId": "B4ohg4H5Qe83NJC2EMTeQ",
1171 | "focus": -0.36973161264132415,
1172 | "gap": 2.3074421592936005
1173 | },
1174 | "endBinding": {
1175 | "elementId": "bA2vKdLP0q9jDRrJbFqMu",
1176 | "focus": 1.028509511381891,
1177 | "gap": 10.33778441539448
1178 | },
1179 | "lastCommittedPoint": null,
1180 | "startArrowhead": null,
1181 | "endArrowhead": "arrow",
1182 | "points": [
1183 | [
1184 | 0,
1185 | 0
1186 | ],
1187 | [
1188 | -194.01227678571422,
1189 | 0.6584821428571104
1190 | ]
1191 | ]
1192 | },
1193 | {
1194 | "type": "arrow",
1195 | "version": 62,
1196 | "versionNonce": 1563305965,
1197 | "isDeleted": false,
1198 | "id": "SkTV_XdRQynM2E5L1GYq_",
1199 | "fillStyle": "hachure",
1200 | "strokeWidth": 1,
1201 | "strokeStyle": "dashed",
1202 | "roughness": 1,
1203 | "opacity": 100,
1204 | "angle": 0,
1205 | "x": 793.4776785714287,
1206 | "y": 613.13671875,
1207 | "strokeColor": "#000000",
1208 | "backgroundColor": "transparent",
1209 | "width": 108.17522321428555,
1210 | "height": 0.9319196428571104,
1211 | "seed": 508587558,
1212 | "groupIds": [],
1213 | "strokeSharpness": "round",
1214 | "boundElements": [],
1215 | "updated": 1662103262786,
1216 | "link": null,
1217 | "locked": false,
1218 | "startBinding": {
1219 | "elementId": "jRoZs9xozTSTPPIu_k27i",
1220 | "focus": -0.03298630620157071,
1221 | "gap": 8.695616851459818
1222 | },
1223 | "endBinding": {
1224 | "elementId": "EOg3Ose79GvtXkKKoCkqD",
1225 | "focus": -0.1501784689204754,
1226 | "gap": 8.680086917762537
1227 | },
1228 | "lastCommittedPoint": null,
1229 | "startArrowhead": null,
1230 | "endArrowhead": "arrow",
1231 | "points": [
1232 | [
1233 | 0,
1234 | 0
1235 | ],
1236 | [
1237 | 108.17522321428555,
1238 | 0.9319196428571104
1239 | ]
1240 | ]
1241 | },
1242 | {
1243 | "type": "arrow",
1244 | "version": 34,
1245 | "versionNonce": 375169613,
1246 | "isDeleted": false,
1247 | "id": "WxIGCjt0uEAs_n-Hi4hQc",
1248 | "fillStyle": "hachure",
1249 | "strokeWidth": 1,
1250 | "strokeStyle": "dashed",
1251 | "roughness": 1,
1252 | "opacity": 100,
1253 | "angle": 0,
1254 | "x": 1044.515625,
1255 | "y": 610.3911830357142,
1256 | "strokeColor": "#000000",
1257 | "backgroundColor": "transparent",
1258 | "width": 30.06138392857133,
1259 | "height": 0.8984375,
1260 | "seed": 2021676582,
1261 | "groupIds": [],
1262 | "strokeSharpness": "round",
1263 | "boundElements": [],
1264 | "updated": 1662103264645,
1265 | "link": null,
1266 | "locked": false,
1267 | "startBinding": {
1268 | "elementId": "EOg3Ose79GvtXkKKoCkqD",
1269 | "focus": 0.105925973536739,
1270 | "gap": 8.35336318809891
1271 | },
1272 | "endBinding": {
1273 | "elementId": "ovW6SGWDAqZKA8trHL1fp",
1274 | "focus": -0.03599287692732585,
1275 | "gap": 6.0435638720193765
1276 | },
1277 | "lastCommittedPoint": null,
1278 | "startArrowhead": null,
1279 | "endArrowhead": "arrow",
1280 | "points": [
1281 | [
1282 | 0,
1283 | 0
1284 | ],
1285 | [
1286 | 30.06138392857133,
1287 | -0.8984375
1288 | ]
1289 | ]
1290 | },
1291 | {
1292 | "type": "arrow",
1293 | "version": 39,
1294 | "versionNonce": 1821167789,
1295 | "isDeleted": false,
1296 | "id": "dWLQ1pHnAPALk8It-dRm3",
1297 | "fillStyle": "hachure",
1298 | "strokeWidth": 1,
1299 | "strokeStyle": "dashed",
1300 | "roughness": 1,
1301 | "opacity": 100,
1302 | "angle": 0,
1303 | "x": 1216.228794642857,
1304 | "y": 605.2237723214286,
1305 | "strokeColor": "#000000",
1306 | "backgroundColor": "transparent",
1307 | "width": 33.91741071428578,
1308 | "height": 0.4352678571428896,
1309 | "seed": 779963578,
1310 | "groupIds": [],
1311 | "strokeSharpness": "round",
1312 | "boundElements": [],
1313 | "updated": 1662103266813,
1314 | "link": null,
1315 | "locked": false,
1316 | "startBinding": {
1317 | "elementId": "ovW6SGWDAqZKA8trHL1fp",
1318 | "focus": 0.01238422797880199,
1319 | "gap": 9.778948733842071
1320 | },
1321 | "endBinding": {
1322 | "elementId": "84nPc4dM0IQekOlyhxnZh",
1323 | "focus": -0.0023559636174004437,
1324 | "gap": 6.356273766575669
1325 | },
1326 | "lastCommittedPoint": null,
1327 | "startArrowhead": null,
1328 | "endArrowhead": "arrow",
1329 | "points": [
1330 | [
1331 | 0,
1332 | 0
1333 | ],
1334 | [
1335 | 33.91741071428578,
1336 | -0.4352678571428896
1337 | ]
1338 | ]
1339 | }
1340 | ],
1341 | "appState": {
1342 | "gridSize": null,
1343 | "viewBackgroundColor": "#ffffff"
1344 | },
1345 | "files": {}
1346 | }
--------------------------------------------------------------------------------