mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-28 21:39:56 +00:00
Squashed 'bridges/' content from commit 062554430
git-subtree-dir: bridges git-subtree-split: 0625544309ff299307f7e110f252f04eac383102
This commit is contained in:
commit
d2b7ee2575
357 files changed
+79920
No files matched your search
@@ -0,0 +1,261 @@
|
||||
# Bridge Deployments
|
||||
|
||||
## Requirements
|
||||
Make sure to install `docker` and `docker-compose` to be able to run and test bridge deployments. If
|
||||
for whatever reason you can't or don't want to use Docker, you can find some scripts for running the
|
||||
bridge [here](https://github.com/svyatonik/parity-bridges-common.test).
|
||||
|
||||
## Networks
|
||||
One of the building blocks we use for our deployments are _networks_. A network is a collection of
|
||||
homogenous blockchain nodes. We have Docker Compose files for each network that we want to bridge.
|
||||
Each of the compose files found in the `./networks` folder is able to independently spin up a
|
||||
network like so:
|
||||
|
||||
```bash
|
||||
docker-compose -f ./networks/rialto.yml up
|
||||
```
|
||||
|
||||
After running this command we would have a network of several nodes producing blocks.
|
||||
|
||||
## Bridges
|
||||
A _bridge_ is a way for several _networks_ to connect to one another. Bridge deployments have their
|
||||
own Docker Compose files which can be found in the `./bridges` folder. These Compose files typically
|
||||
contain bridge relayers, which are services external to blockchain nodes, and other components such
|
||||
as testing infrastructure, or user interfaces.
|
||||
|
||||
Unlike the network Compose files, these *cannot* be deployed on their own. They must be combined
|
||||
with different networks.
|
||||
|
||||
In general, we can deploy the bridge using `docker-compose up` in the following way:
|
||||
|
||||
```bash
|
||||
docker-compose -f <bridge>.yml \
|
||||
-f <network_1>.yml \
|
||||
-f <network_2>.yml \
|
||||
-f <monitoring>.yml up
|
||||
```
|
||||
|
||||
If you want to see how the Compose commands are actually run, check out the source code of the
|
||||
[`./run.sh`](./run.sh).
|
||||
|
||||
One thing worth noting is that we have a _monitoring_ Compose file. This adds support for Prometheus
|
||||
and Grafana. We cover these in more details in the [Monitoring](#monitoring) section. At the moment
|
||||
the monitoring Compose file is _not_ optional, and must be included for bridge deployments.
|
||||
|
||||
### Running and Updating Deployments
|
||||
We currently support three bridge deployments
|
||||
1. Rialto Substrate to Millau Substrate
|
||||
2. Rialto Parachain Substrate to Millau Substrate
|
||||
2. Westend Substrate to Millau Substrate
|
||||
|
||||
These bridges can be deployed using our [`./run.sh`](./run.sh) script.
|
||||
|
||||
The first argument it takes is the name of the bridge you want to run. Right now we only support three
|
||||
bridges: `rialto-millau`, `rialto-parachain-millau` and `westend-millau`.
|
||||
|
||||
```bash
|
||||
./run.sh rialto-millau
|
||||
```
|
||||
|
||||
If you add a second `update` argument to the script it will pull the latest images from Docker Hub
|
||||
and restart the deployment.
|
||||
|
||||
```bash
|
||||
./run.sh rialto-millau update
|
||||
```
|
||||
|
||||
You can also bring down a deployment using the script with the `stop` argument.
|
||||
|
||||
```bash
|
||||
./run.sh rialto-millau stop
|
||||
```
|
||||
|
||||
### Adding Deployments
|
||||
We need two main things when adding a new deployment. First, the new network which we want to
|
||||
bridge. A compose file for the network should be added in the `/networks/` folder. Secondly we'll
|
||||
need a new bridge Compose file in `./bridges/`. This should configure the bridge relayer nodes
|
||||
correctly for the two networks, and add any additional components needed for the deployment. If you
|
||||
want you can also add support in the `./run` script for the new deployment. While recommended it's
|
||||
not strictly required.
|
||||
|
||||
## General Notes
|
||||
|
||||
Rialto authorities are named: `Alice`, `Bob`, `Charlie`, `Dave`, `Eve`.
|
||||
Millau authorities are named: `Alice`, `Bob`, `Charlie`, `Dave`, `Eve`.
|
||||
RialtoParachain authorities are named: `Alice`, `Bob`.
|
||||
|
||||
`Sudo` is a sudo account on all chains.
|
||||
|
||||
Both authorities and following accounts have enough funds (for test purposes) on corresponding Substrate chains:
|
||||
|
||||
- on Rialto: `Ferdie`.
|
||||
- on Millau: `Ferdie`.
|
||||
- on RialtoParachain: `Charlie`, `Dave`, `Eve`, `Ferdie`.
|
||||
|
||||
Names of accounts on Substrate (Rialto and Millau) chains may be prefixed with `//` and used as
|
||||
seeds for the `sr25519` keys. This seed may also be used in the signer argument in Substrate relays.
|
||||
Example:
|
||||
|
||||
```bash
|
||||
./substrate-relay relay-headers rialto-to-millau \
|
||||
--source-host rialto-node-alice \
|
||||
--source-port 9944 \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--source-signer //Ferdie \
|
||||
--prometheus-host=0.0.0.0
|
||||
```
|
||||
|
||||
Some accounts are used by bridge components. Using these accounts to sign other transactions
|
||||
is not recommended, because this may lead to nonces conflict.
|
||||
|
||||
Following accounts are used when `rialto-millau` bridge is running:
|
||||
|
||||
- Millau's `Rialto.HeadersAndMessagesRelay` signs complex headers+messages relay transactions on Millau chain;
|
||||
- Rialto's `Millau.HeadersAndMessagesRelay` signs complex headers+messages relay transactions on Rialto chain;
|
||||
- Millau's `Rialto.MessagesSender` signs Millau transactions which contain messages for Rialto;
|
||||
- Rialto's `Millau.MessagesSender` signs Rialto transactions which contain messages for Millau;
|
||||
- Millau's `Rialto.OutboundMessagesRelay.Lane00000001` signs relay transactions with message delivery confirmations (lane 00000001) from Rialto to Millau;
|
||||
- Rialto's `Millau.InboundMessagesRelay.Lane00000001` signs relay transactions with messages (lane 00000001) from Millau to Rialto;
|
||||
- Millau's `Millau.OutboundMessagesRelay.Lane00000001` signs relay transactions with messages (lane 00000001) from Rialto to Millau;
|
||||
- Rialto's `Rialto.InboundMessagesRelay.Lane00000001` signs relay transactions with message delivery confirmations (lane 00000001) from Millau to Rialto;
|
||||
- Millau's `Rialto.MessagesOwner` signs relay transactions with updated Rialto -> Millau conversion rate;
|
||||
- Rialto's `Millau.MessagesOwner` signs relay transactions with updated Millau -> Rialto conversion rate.
|
||||
|
||||
Following accounts are used when `westend-millau` bridge is running:
|
||||
|
||||
- Millau's `Westend.GrandpaOwner` is signing with-Westend GRANDPA pallet initialization transaction.
|
||||
- Millau's `Westend.HeadersRelay1` and `Westend.HeadersRelay2` are signing transactions with new Westend headers.
|
||||
- Millau's `Westend.WestmintHeaders1` and `Westend.WestmintHeaders2` is signing transactions with new Westming headers.
|
||||
|
||||
Following accounts are used when `rialto-parachain-millau` bridge is running:
|
||||
|
||||
- RialtoParachain's `Millau.MessagesSender` signs RialtoParachain transactions which contain messages for Millau;
|
||||
- Millau's `RialtoParachain.MessagesSender` signs Millau transactions which contain messages for RialtoParachain;
|
||||
- Millau's `RialtoParachain.HeadersAndMessagesRelay` signs complex headers+parachains+messages relay transactions on Millau chain;
|
||||
- RialtoParachain's `Millau.HeadersAndMessagesRelay` signs complex headers+messages relay transactions on RialtoParachain chain.
|
||||
|
||||
### Docker Usage
|
||||
When the network is running you can query logs from individual nodes using:
|
||||
|
||||
```bash
|
||||
docker logs rialto_millau-node-charlie_1 -f
|
||||
```
|
||||
|
||||
To kill all leftover containers and start the network from scratch next time:
|
||||
```bash
|
||||
docker ps -a --format "{{.ID}}" | xargs docker rm # This removes all containers!
|
||||
```
|
||||
|
||||
### Docker Compose Usage
|
||||
If you're not familiar with how to use `docker-compose` here are some useful commands you'll need
|
||||
when interacting with the bridge deployments:
|
||||
|
||||
```bash
|
||||
docker-compose pull # Get the latest images from the Docker Hub
|
||||
docker-compose build # This is going to build images
|
||||
docker-compose up # Start all the nodes
|
||||
docker-compose up -d # Start the nodes in detached mode.
|
||||
docker-compose down # Stop the network.
|
||||
```
|
||||
|
||||
Note that you'll also need to add the appropriate `-f` arguments that were mentioned in the
|
||||
[Bridges](#bridges) section. You can read more about using multiple Compose files
|
||||
[here](https://docs.docker.com/compose/extends/#multiple-compose-files). One thing worth noting is
|
||||
that the _order_ the compose files are specified in matters. A different order will result in a
|
||||
different configuration.
|
||||
|
||||
You can sanity check the final config like so:
|
||||
|
||||
```bash
|
||||
docker-compose -f docker-compose.yml -f docker-compose.override.yml config > docker-compose.merged.yml
|
||||
```
|
||||
|
||||
## Docker and Git Deployment
|
||||
It is also possible to avoid using images from the Docker Hub and instead build
|
||||
containers from Git. There are two ways to build the images this way.
|
||||
|
||||
### Git Repo
|
||||
If you have cloned the bridges repo you can build local Docker images by running the following
|
||||
command at the top level of the repo:
|
||||
|
||||
```bash
|
||||
docker build . -t local/<project_you're_building> --build-arg=PROJECT=<project>
|
||||
```
|
||||
|
||||
This will build a local image of a particular component with a tag of
|
||||
`local/<project_you're_building>`. This tag can be used in Docker Compose files.
|
||||
|
||||
You can configure the build using Docker
|
||||
[build arguments](https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg).
|
||||
Here are the arguments currently supported:
|
||||
- `BRIDGE_REPO`: Git repository of the bridge node and relay code
|
||||
- `BRIDGE_HASH`: Commit hash within that repo (can also be a branch or tag)
|
||||
- `ETHEREUM_REPO`: Git repository of the OpenEthereum client
|
||||
- `ETHEREUM_HASH`: Commit hash within that repo (can also be a branch or tag)
|
||||
- `PROJECT`: Project to build withing bridges repo. Can be one of:
|
||||
- `rialto-bridge-node`
|
||||
- `millau-bridge-node`
|
||||
- `substrate-relay`
|
||||
|
||||
### GitHub Actions
|
||||
We have a nightly job which runs and publishes Docker images for the different nodes and relayers to
|
||||
the [ParityTech Docker Hub](https://hub.docker.com/u/paritytech) organization. These images are used
|
||||
for our ephemeral (temporary) test networks. Additionally, any time a tag in the form of `v*` is
|
||||
pushed to GitHub the publishing job is run. This will build all the components (nodes, relayers) and
|
||||
publish them.
|
||||
|
||||
With images built using either method, all you have to do to use them in a deployment is change the
|
||||
`image` field in the existing Docker Compose files to point to the tag of the image you want to use.
|
||||
|
||||
### Monitoring
|
||||
[Prometheus](https://prometheus.io/) is used by the bridge relay to monitor information such as system
|
||||
resource use, and block data (e.g the best blocks it knows about). In order to visualize this data
|
||||
a [Grafana](https://grafana.com/) dashboard can be used.
|
||||
|
||||
As part of the Rialto `docker-compose` setup we spin up a Prometheus server and Grafana dashboard. The
|
||||
Prometheus server connects to the Prometheus data endpoint exposed by the bridge relay. The Grafana
|
||||
dashboard uses the Prometheus server as its data source.
|
||||
|
||||
The default port for the bridge relay's Prometheus data is `9616`. The host and port can be
|
||||
configured though the `--prometheus-host` and `--prometheus-port` flags. The Prometheus server's
|
||||
dashboard can be accessed at `http://localhost:9090`. The Grafana dashboard can be accessed at
|
||||
`http://localhost:3000`. Note that the default log-in credentials for Grafana are `admin:admin`.
|
||||
|
||||
### Environment Variables
|
||||
Here is an example `.env` file which is used for production deployments and network updates. For
|
||||
security reasons it is not kept as part of version control. When deploying a network this
|
||||
file should be correctly populated and kept in the appropriate [`bridges`](`./bridges`) deployment
|
||||
folder.
|
||||
|
||||
The `UI_SUBSTRATE_PROVIDER` variable lets you define the url of the Substrate node that the user
|
||||
interface will connect to. `UI_ETHEREUM_PROVIDER` is used only as a guidance for users to connect
|
||||
Metamask to the right Ethereum network. `UI_EXPECTED_ETHEREUM_NETWORK_ID` is used by
|
||||
the user interface as a fail safe to prevent users from connecting their Metamask extension to an
|
||||
unexpected network.
|
||||
|
||||
```bash
|
||||
GRAFANA_ADMIN_PASS=admin_pass
|
||||
GRAFANA_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/
|
||||
GRAFANA_SERVER_DOMAIN=server.domain.io
|
||||
MATRIX_ACCESS_TOKEN="access-token"
|
||||
WITH_PROXY=1 # Optional
|
||||
UI_SUBSTRATE_PROVIDER=ws://localhost:9944
|
||||
UI_ETHEREUM_PROVIDER=http://localhost:8545
|
||||
UI_EXPECTED_ETHEREUM_NETWORK_ID=105
|
||||
```
|
||||
|
||||
### UI
|
||||
|
||||
Use [wss://rialto.bridges.test-installations.parity.io/](https://polkadot.js.org/apps/)
|
||||
as a custom endpoint for [https://polkadot.js.org/apps/](https://polkadot.js.org/apps/).
|
||||
|
||||
### Polkadot.js UI
|
||||
|
||||
To teach the UI decode our custom types used in the pallet, go to: `Settings -> Developer`
|
||||
and import the [`./types.json`](./types.json)
|
||||
|
||||
## Scripts
|
||||
|
||||
There are some bash scripts in `scripts` folder that allow testing `Relay`
|
||||
without running the entire network within docker. Use if needed for development.
|
||||
@@ -0,0 +1,64 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script for generating messages from a source chain to a target chain.
|
||||
# Prerequisites: mounting the common folder in the docker container (Adding the following volume entry):
|
||||
# - ./bridges/common:/common
|
||||
# It can be used by executing `source /common/generate_messages.sh` in a different script,
|
||||
# after setting the following variables:
|
||||
# SOURCE_CHAIN
|
||||
# TARGET_CHAIN
|
||||
# MAX_SUBMIT_DELAY_S
|
||||
# SEND_MESSAGE - the command that is executed to send a message
|
||||
# SECONDARY_EXTRA_ARGS - optional, for example "--use-xcm-pallet"
|
||||
# EXTRA_ARGS - for example "--use-xcm-pallet"
|
||||
# REGULAR_PAYLOAD
|
||||
# BATCH_PAYLOAD
|
||||
# MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE
|
||||
|
||||
SECONDARY_EXTRA_ARGS=${SECONDARY_EXTRA_ARGS:-""}
|
||||
|
||||
# Sleep a bit between messages
|
||||
rand_sleep() {
|
||||
SUBMIT_DELAY_S=`shuf -i 0-$MAX_SUBMIT_DELAY_S -n 1`
|
||||
echo "Sleeping $SUBMIT_DELAY_S seconds..."
|
||||
sleep $SUBMIT_DELAY_S
|
||||
NOW=`date "+%Y-%m-%d %H:%M:%S"`
|
||||
echo "Woke up at $NOW"
|
||||
}
|
||||
|
||||
# start sending large messages immediately
|
||||
LARGE_MESSAGES_TIME=0
|
||||
# start sending message packs in a hour
|
||||
BUNCH_OF_MESSAGES_TIME=3600
|
||||
|
||||
while true
|
||||
do
|
||||
rand_sleep
|
||||
|
||||
# send regular message
|
||||
echo "Sending Message from $SOURCE_CHAIN to $TARGET_CHAIN"
|
||||
$SEND_MESSAGE $EXTRA_ARGS raw $REGULAR_PAYLOAD
|
||||
|
||||
# every other hour we're sending 3 large (size, weight, size+weight) messages
|
||||
if [ $SECONDS -ge $LARGE_MESSAGES_TIME ]; then
|
||||
LARGE_MESSAGES_TIME=$((SECONDS + 7200))
|
||||
|
||||
rand_sleep
|
||||
echo "Sending Maximal Size Message from $SOURCE_CHAIN to $TARGET_CHAIN"
|
||||
$SEND_MESSAGE \
|
||||
sized max
|
||||
fi
|
||||
|
||||
# every other hour we're sending a bunch of small messages
|
||||
if [ $SECONDS -ge $BUNCH_OF_MESSAGES_TIME ]; then
|
||||
BUNCH_OF_MESSAGES_TIME=$((SECONDS + 7200))
|
||||
|
||||
for i in $(seq 0 $MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE);
|
||||
do
|
||||
$SEND_MESSAGE \
|
||||
$EXTRA_ARGS \
|
||||
raw $BATCH_PAYLOAD
|
||||
done
|
||||
|
||||
fi
|
||||
done
|
||||
+1153
File diff suppressed because it is too large.
Load diff
+1145
File diff suppressed because it is too large.
Load diff
+791
@@ -0,0 +1,791 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"C",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "At-Rialto relay balances are too low",
|
||||
"noDataState": "ok",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 16
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 8,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "at_Rialto_relay_MillauHeaders_balance",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Millau headers relay account balance",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "at_Rialto_relay_MillauMessages_balance",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Millau messages relay account balance",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"expr": "at_Rialto_relay_MillauMessagesPalletOwner_balance",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Millau messages pallet owner account balance",
|
||||
"refId": "C"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1000
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Rialto relay balances",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"C",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "At-Millau relay balances are too low",
|
||||
"noDataState": "ok",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 16
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 9,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoHeaders_balance{instance=\"relay-millau-rialto:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Rialto headers relay account balance",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoMessages_balance",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Rialto messages relay account balance",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoMessagesPalletOwner_balance",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Rialto messages pallet owner account balance",
|
||||
"refId": "C"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1000
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Millau relay balances",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Whether with-Rialto-grandpa-pallet and Rialto itself are on different forks alert",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 24
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 11,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Rialto_to_Millau_MessageLane_00000000_is_source_and_source_at_target_using_different_forks OR on() vector(0)",
|
||||
"interval": "",
|
||||
"legendFormat": "On different forks?",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Whether with-Rialto-grandpa-pallet and Rialto itself are on different forks",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Whether with-Rialto-grandpa-pallet and Rialto itself are on different forks alert",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 24
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 12,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Millau_to_Rialto_MessageLane_00000000_is_source_and_source_at_target_using_different_forks OR on() vector(0)",
|
||||
"interval": "",
|
||||
"legendFormat": "On different forks?",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Whether with-Millau-grandpa-pallet and Millau itself are on different forks",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 32
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 14,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Millau_to_Rialto_MessageLane_00000000_unprofitable_delivery_transactions",
|
||||
"interval": "",
|
||||
"legendFormat": "Millau -> Rialto, lane 00000000",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "Rialto_to_Millau_MessageLane_00000000_unprofitable_delivery_transactions",
|
||||
"interval": "",
|
||||
"legendFormat": "Rialto -> Millau, lane 00000000",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Count of unprofitable message delivery transactions",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "10s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-15m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {},
|
||||
"timezone": "",
|
||||
"title": "Rialto+Millau maintenance dashboard",
|
||||
"uid": "7AuyrjlMz",
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
- targets:
|
||||
- relay-millau-rialto:9616
|
||||
- relay-messages-millau-to-rialto-lane-00000001:9616
|
||||
- relay-messages-rialto-to-millau-lane-00000001:9616
|
||||
@@ -0,0 +1,110 @@
|
||||
# Exposed ports: 10016, 10116, 10216, 10316, 10416, 10516, 10716
|
||||
|
||||
version: '3.5'
|
||||
services:
|
||||
# We provide overrides for these particular nodes since they are public facing
|
||||
# nodes which we use to connect from things like Polkadot JS Apps.
|
||||
rialto-node-charlie:
|
||||
environment:
|
||||
VIRTUAL_HOST: wss.rialto.brucke.link
|
||||
VIRTUAL_PORT: 9944
|
||||
LETSENCRYPT_HOST: wss.rialto.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
|
||||
millau-node-charlie:
|
||||
environment:
|
||||
VIRTUAL_HOST: wss.millau.brucke.link
|
||||
VIRTUAL_PORT: 9944
|
||||
LETSENCRYPT_HOST: wss.millau.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
|
||||
relay-millau-rialto: &sub-bridge-relay
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/relay-millau-rialto-entrypoint.sh
|
||||
volumes:
|
||||
- ./bridges/common:/common
|
||||
- ./bridges/rialto-millau/entrypoints:/entrypoints
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
ports:
|
||||
- "10016:9616"
|
||||
depends_on: &all-nodes
|
||||
- millau-node-alice
|
||||
- millau-node-bob
|
||||
- millau-node-charlie
|
||||
- millau-node-dave
|
||||
- millau-node-eve
|
||||
- rialto-node-alice
|
||||
- rialto-node-bob
|
||||
- rialto-node-charlie
|
||||
- rialto-node-dave
|
||||
- rialto-node-eve
|
||||
|
||||
relay-messages-millau-to-rialto-lane-00000001:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
MSG_EXCHANGE_GEN_LANE: "00000001"
|
||||
entrypoint: /entrypoints/relay-messages-millau-to-rialto-entrypoint.sh
|
||||
ports:
|
||||
- "10116:9616"
|
||||
depends_on:
|
||||
- relay-millau-rialto
|
||||
|
||||
relay-messages-millau-to-rialto-generator:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
RUST_LOG: bridge=trace
|
||||
MSG_EXCHANGE_GEN_SECONDARY_LANE: "00000001"
|
||||
entrypoint: /entrypoints/relay-messages-to-rialto-generator-entrypoint.sh
|
||||
ports:
|
||||
- "10216:9616"
|
||||
depends_on:
|
||||
- relay-millau-rialto
|
||||
|
||||
relay-messages-millau-to-rialto-resubmitter:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
RUST_LOG: bridge=trace
|
||||
entrypoint: /entrypoints/relay-messages-to-rialto-resubmitter-entrypoint.sh
|
||||
ports:
|
||||
- "10316:9616"
|
||||
depends_on:
|
||||
- relay-messages-millau-to-rialto-generator
|
||||
|
||||
relay-messages-rialto-to-millau-lane-00000001:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
RUST_LOG: bridge=trace
|
||||
MSG_EXCHANGE_GEN_LANE: "00000001"
|
||||
entrypoint: /entrypoints/relay-messages-rialto-to-millau-entrypoint.sh
|
||||
ports:
|
||||
- "10416:9616"
|
||||
depends_on:
|
||||
- relay-millau-rialto
|
||||
|
||||
relay-messages-rialto-to-millau-generator:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
RUST_LOG: bridge=trace
|
||||
MSG_EXCHANGE_GEN_SECONDARY_LANE: "00000001"
|
||||
entrypoint: /entrypoints/relay-messages-to-millau-generator-entrypoint.sh
|
||||
ports:
|
||||
- "10516:9616"
|
||||
depends_on:
|
||||
- relay-millau-rialto
|
||||
|
||||
# Note: These are being overridden from the top level `monitoring` compose file.
|
||||
grafana-dashboard:
|
||||
environment:
|
||||
VIRTUAL_HOST: grafana.millau.brucke.link,grafana.rialto.brucke.link
|
||||
VIRTUAL_PORT: 3000
|
||||
LETSENCRYPT_HOST: grafana.millau.brucke.link,grafana.rialto.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
volumes:
|
||||
- ./bridges/rialto-millau/dashboard/grafana:/etc/grafana/dashboards/rialto-millau:ro
|
||||
- ./networks/dashboard/grafana/beefy-dashboard.json:/etc/grafana/dashboards/beefy.json
|
||||
|
||||
prometheus-metrics:
|
||||
volumes:
|
||||
- ./bridges/rialto-millau/dashboard/prometheus/targets.yml:/etc/prometheus/targets-rialto-millau.yml
|
||||
depends_on: *all-nodes
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
MESSAGE_LANE=${MSG_EXCHANGE_GEN_LANE:-00000000}
|
||||
|
||||
/home/user/substrate-relay relay-messages millau-to-rialto \
|
||||
--lane $MESSAGE_LANE \
|
||||
--source-host millau-node-bob \
|
||||
--source-port 9944 \
|
||||
--source-signer //Rialto.OutboundMessagesRelay.Lane00000001 \
|
||||
--target-host rialto-node-bob \
|
||||
--target-port 9944 \
|
||||
--target-signer //Millau.InboundMessagesRelay.Lane00000001 \
|
||||
--prometheus-host=0.0.0.0
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
MESSAGE_LANE=${MSG_EXCHANGE_GEN_LANE:-00000000}
|
||||
|
||||
/home/user/substrate-relay relay-messages rialto-to-millau \
|
||||
--lane $MESSAGE_LANE \
|
||||
--source-host rialto-node-bob \
|
||||
--source-port 9944 \
|
||||
--source-signer //Millau.OutboundMessagesRelay.Lane00000001 \
|
||||
--target-host millau-node-bob \
|
||||
--target-port 9944 \
|
||||
--target-signer //Rialto.InboundMessagesRelay.Lane00000001 \
|
||||
--prometheus-host=0.0.0.0
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# THIS SCRIPT IS NOT INTENDED FOR USE IN PRODUCTION ENVIRONMENT
|
||||
#
|
||||
# This scripts periodically calls the Substrate relay binary to generate messages. These messages
|
||||
# are sent from the Rialto network to the Millau network.
|
||||
|
||||
set -eu
|
||||
|
||||
# Max delay before submitting transactions (s)
|
||||
MAX_SUBMIT_DELAY_S=${MSG_EXCHANGE_GEN_MAX_SUBMIT_DELAY_S:-30}
|
||||
MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE=1024
|
||||
|
||||
SHARED_CMD="/home/user/substrate-relay send-message rialto-to-millau"
|
||||
SHARED_HOST="--source-host rialto-node-bob --source-port 9944"
|
||||
SOURCE_SIGNER="--source-signer //Millau.MessagesSender"
|
||||
|
||||
SEND_MESSAGE="$SHARED_CMD $SHARED_HOST $SOURCE_SIGNER"
|
||||
|
||||
SOURCE_CHAIN="Rialto"
|
||||
TARGET_CHAIN="Millau"
|
||||
EXTRA_ARGS=""
|
||||
REGULAR_PAYLOAD="020419ac"
|
||||
BATCH_PAYLOAD="020419ac"
|
||||
|
||||
source /common/generate_messages.sh
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# THIS SCRIPT IS NOT INTENDED FOR USE IN PRODUCTION ENVIRONMENT
|
||||
#
|
||||
# This scripts periodically calls the Substrate relay binary to generate messages. These messages
|
||||
# are sent from the Millau network to the Rialto network.
|
||||
|
||||
set -eu
|
||||
|
||||
# Max delay before submitting transactions (s)
|
||||
MAX_SUBMIT_DELAY_S=${MSG_EXCHANGE_GEN_MAX_SUBMIT_DELAY_S:-30}
|
||||
MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE=128
|
||||
|
||||
SHARED_CMD=" /home/user/substrate-relay send-message millau-to-rialto"
|
||||
SHARED_HOST="--source-host millau-node-bob --source-port 9944"
|
||||
SOURCE_SIGNER="--source-signer //Rialto.MessagesSender"
|
||||
|
||||
SEND_MESSAGE="$SHARED_CMD $SHARED_HOST $SOURCE_SIGNER"
|
||||
|
||||
SOURCE_CHAIN="Millau"
|
||||
TARGET_CHAIN="Rialto"
|
||||
EXTRA_ARGS=""
|
||||
REGULAR_PAYLOAD="020419ac"
|
||||
BATCH_PAYLOAD="020419ac"
|
||||
|
||||
source /common/generate_messages.sh
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
# //Rialto.MessagesSender is signing Millau -> Rialto message-send transactions, which are causing problems.
|
||||
#
|
||||
# When large message is being sent from Millau to Rialto AND other transactions are
|
||||
# blocking it from being mined, we'll see something like this in logs:
|
||||
#
|
||||
# Millau transaction priority with tip=0: 17800827994. Target priority:
|
||||
# 526186677695
|
||||
#
|
||||
# So since fee multiplier in Millau is `1` and `WeightToFee` is `IdentityFee`, then
|
||||
# we need tip around `526186677695 - 17800827994 = 508_385_849_701`. Let's round it
|
||||
# up to `1_000_000_000_000`.
|
||||
|
||||
/home/user/substrate-relay resubmit-transactions millau \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //Rialto.MessagesSender \
|
||||
--stalled-blocks 5 \
|
||||
--tip-limit 1000000000000 \
|
||||
--tip-step 1000000000 \
|
||||
make-it-best-transaction
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
/home/user/substrate-relay init-bridge millau-to-rialto \
|
||||
--source-host millau-node-alice \
|
||||
--source-port 9944 \
|
||||
--target-host rialto-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //Sudo
|
||||
|
||||
/home/user/substrate-relay init-bridge rialto-to-millau \
|
||||
--source-host rialto-node-alice \
|
||||
--source-port 9944 \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //Sudo
|
||||
|
||||
# Give chain a little bit of time to process initialization transaction
|
||||
sleep 6
|
||||
|
||||
/home/user/substrate-relay relay-headers-and-messages millau-rialto \
|
||||
--millau-host millau-node-alice \
|
||||
--millau-port 9944 \
|
||||
--millau-signer //Rialto.HeadersAndMessagesRelay \
|
||||
--millau-messages-pallet-owner=//Rialto.MessagesOwner \
|
||||
--millau-transactions-mortality=64 \
|
||||
--rialto-host rialto-node-alice \
|
||||
--rialto-port 9944 \
|
||||
--rialto-signer //Millau.HeadersAndMessagesRelay \
|
||||
--rialto-messages-pallet-owner=//Millau.MessagesOwner \
|
||||
--rialto-transactions-mortality=64 \
|
||||
--lane=00000000 \
|
||||
--lane=73776170 \
|
||||
--prometheus-host=0.0.0.0
|
||||
+910
@@ -0,0 +1,910 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 2,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Millau_to_RialtoParachain_MessageLane_00000000_best_target_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "At RialtoParachain",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "Millau_to_RialtoParachain_MessageLane_00000000_best_target_at_source_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "At Millau",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Best finalized RialtoParachain headers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 4,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Millau_to_RialtoParachain_MessageLane_00000000_best_source_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "At Millau",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "Millau_to_RialtoParachain_MessageLane_00000000_best_source_at_target_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "At RialtoParachain",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Best finalized Millau headers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "20m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Millau -> RialtoParachain messages are not detected by relay",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 11,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 9
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 6,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "label_replace(label_replace(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=~\"source_latest_generated|target_latest_received\"}, \"type\", \"Latest message sent from RialtoParachain\", \"type\", \"source_latest_generated\"), \"type\", \"Latest RialtoParachain message received by Millau\", \"type\", \"target_latest_received\")",
|
||||
"interval": "",
|
||||
"legendFormat": "{{type}}",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "increase(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_generated\"}[10m]) OR on() vector(0)",
|
||||
"hide": true,
|
||||
"interval": "",
|
||||
"legendFormat": "Messages generated in last 5 minutes (Millau -> RialtoParachain, 00000000)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1,
|
||||
"yaxis": "left"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Delivery race (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 11,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 9
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 8,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "label_replace(label_replace(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=~\"source_latest_confirmed|target_latest_received\"}, \"type\", \"Latest message confirmed by RialtoParachain to Millau\", \"type\", \"source_latest_confirmed\"), \"type\", \"Latest RialtoParachain message received by Millau\", \"type\", \"target_latest_received\")",
|
||||
"interval": "",
|
||||
"legendFormat": "{{type}}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Confirmations race (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"1m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "sum"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "7m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Messages from Millau to RialtoParachain are not being delivered",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 7,
|
||||
"w": 8,
|
||||
"x": 0,
|
||||
"y": 20
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_generated\"}[2m])) - scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]))",
|
||||
"format": "time_series",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Undelivered messages at RialtoParachain",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "increase(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[5m]) OR on() vector(0)",
|
||||
"interval": "",
|
||||
"legendFormat": "Millau Messages delivered to RialtoParachain in last 5m",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Delivery race lags (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
50
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "20m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Too many unconfirmed messages (Millau -> RialtoParachain)",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 7,
|
||||
"w": 8,
|
||||
"x": 8,
|
||||
"y": 20
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 12,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]) OR on() vector(0)) - scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_confirmed\"}[2m]) OR on() vector(0))",
|
||||
"interval": "",
|
||||
"legendFormat": "Unconfirmed messages at Millau",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 10
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Confirmations race lags (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
10
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "20m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Rewards are not being confirmed (Millau -> RialtoParachain messages)",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 7,
|
||||
"w": 8,
|
||||
"x": 16,
|
||||
"y": 20
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 14,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_confirmed\"}[2m])) - scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_confirmed\"}[2m]))",
|
||||
"interval": "",
|
||||
"legendFormat": "Unconfirmed rewards at RialtoParachain",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "(scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_confirmed\"}[2m]) OR on() vector(0)) - scalar(max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_confirmed\"}[2m]) OR on() vector(0))) * (max_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]) > bool min_over_time(Millau_to_RialtoParachain_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]))",
|
||||
"interval": "",
|
||||
"legendFormat": "Unconfirmed rewards at Millau->RaltoParachain (zero if messages are not being delivered to RialtoParachain)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 10,
|
||||
"yaxis": "left"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Reward lags (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-5m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "Millau to RialtoParachain Message Sync Dashboard",
|
||||
"uid": "C61e-797z",
|
||||
"version": 1
|
||||
}
|
||||
+908
@@ -0,0 +1,908 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 2,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "RialtoParachain_to_Millau_MessageLane_00000000_best_target_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "At Millau",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "RialtoParachain_to_Millau_MessageLane_00000000_best_target_at_source_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "At RialtoParachain",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Best finalized Millau headers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 4,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "RialtoParachain_to_Millau_MessageLane_00000000_best_source_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "At RialtoParachain",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "RialtoParachain_to_Millau_MessageLane_00000000_best_source_at_target_block_number{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "At Millau",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Best finalized RialtoParachain headers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "20m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "RialtoParachain -> Millau messages are not detected by relay",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 11,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 9
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 6,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "label_replace(label_replace(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=~\"source_latest_generated|target_latest_received\"}, \"type\", \"Latest message sent from Millau\", \"type\", \"source_latest_generated\"), \"type\", \"Latest Millau message received by RialtoParachain\", \"type\", \"target_latest_received\")",
|
||||
"interval": "",
|
||||
"legendFormat": "{{type}}",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "increase(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_generated\"}[10m]) OR on() vector(0)",
|
||||
"hide": true,
|
||||
"interval": "",
|
||||
"legendFormat": "Messages generated in last 5 minutes (RialtoParachain -> Millau, 00000000)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Delivery race (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 11,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 9
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 8,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "label_replace(label_replace(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=~\"source_latest_confirmed|target_latest_received\"}, \"type\", \"Latest message confirmed by Millau to RialtoParachain\", \"type\", \"source_latest_confirmed\"), \"type\", \"Latest Millau message received by RialtoParachain\", \"type\", \"target_latest_received\")",
|
||||
"interval": "",
|
||||
"legendFormat": "{{type}}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Confirmations race (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"1m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "sum"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "7m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Messages from RialtoParachain to Millau are not being delivered",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 7,
|
||||
"w": 8,
|
||||
"x": 0,
|
||||
"y": 20
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_generated\"}[2m])) - scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]))",
|
||||
"format": "time_series",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "Undelivered messages at Millau",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "increase(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[5m]) OR on() vector(0)",
|
||||
"interval": "",
|
||||
"legendFormat": "RialtoParachain Messages delivered to Millau in last 5m",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Delivery race lags (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
50
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "20m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Too many unconfirmed messages (RialtoParachain -> Millau)",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 7,
|
||||
"w": 8,
|
||||
"x": 8,
|
||||
"y": 20
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 12,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]) OR on() vector(0)) - scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_confirmed\"}[2m]) OR on() vector(0))",
|
||||
"interval": "",
|
||||
"legendFormat": "Unconfirmed messages at RialtoParachain",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 10
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Confirmations race lags (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
10
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "20m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Rewards are not being confirmed (RialtoParachain -> Millau messages)",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"links": []
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 7,
|
||||
"w": 8,
|
||||
"x": 16,
|
||||
"y": 20
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 14,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_confirmed\"}[2m])) - scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_confirmed\"}[2m]))",
|
||||
"interval": "",
|
||||
"legendFormat": "Unconfirmed rewards at Millau",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "(scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"source_latest_confirmed\"}[2m]) OR on() vector(0)) - scalar(max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_confirmed\"}[2m]) OR on() vector(0))) * (max_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]) > bool min_over_time(RialtoParachain_to_Millau_MessageLane_00000000_lane_state_nonces{instance=\"relay-millau-rialto-parachain-1:9616\",type=\"target_latest_received\"}[2m]))",
|
||||
"interval": "",
|
||||
"legendFormat": "Unconfirmed rewards at Millau (zero if messages are not being delivered to Millau)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 10
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Reward lags (00000000)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-5m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "RialtoParachain to Millau Message Sync Dashboard",
|
||||
"uid": "-l61a7r7k",
|
||||
"version": 1
|
||||
}
|
||||
+713
@@ -0,0 +1,713 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"C",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "At-Rialto relay balances are too low",
|
||||
"noDataState": "ok",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 16
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "at_RialtoParachain_relay_MillauHeaders_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Millau headers relay account balance",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "at_RialtoParachain_relay_MillauMessages_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Millau messages relay account balance",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"expr": "at_RialtoParachain_relay_MillauMessagesPalletOwner_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Millau messages pallet owner account balance",
|
||||
"refId": "C"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1000
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "RialtoParachain relay balances",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1000
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"C",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "last"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "At-Millau relay balances are too low",
|
||||
"noDataState": "ok",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 16
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 12,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoHeaders_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Rialto headers relay account balance",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoParachainMessages_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-RialtoParachain messages relay account balance",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoParachains_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-Rialto parachains relay account balance",
|
||||
"refId": "C"
|
||||
},
|
||||
{
|
||||
"expr": "at_Millau_relay_RialtoParachainMessagesPalletOwner_balance{instance=\"relay-millau-rialto-parachain-1:9616\"}",
|
||||
"interval": "",
|
||||
"legendFormat": "With-RialtoParachain messages pallet owner account balance",
|
||||
"refId": "D"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1000
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Millau relay balances",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Whether with-RialtoParachain-parachains-pallet and Rialto itself are on different forks alert",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 24
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 14,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "RialtoParachain_to_Millau_MessageLane_00000000_is_source_and_source_at_target_using_different_forks{instance=\"relay-millau-rialto-parachain-1:9616\"} OR on() vector(0)",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "On different forks?",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Whether with-RialtoParachain-parachains-pallet and RialtoParachain itself are on different forks",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Whether with-Millau-grandpa-pallet and Millau itself are on different forks",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 24
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 16,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Millau_to_RialtoParachain_MessageLane_00000000_is_source_and_source_at_target_using_different_forks{instance=\"relay-millau-rialto-parachain-1:9616\"} OR on() vector(0)",
|
||||
"interval": "",
|
||||
"legendFormat": "On different forks?",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Whether with-Millau-grandpa-pallet and Millau itself are on different forks",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-15m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "RialtoParachain+Millau maintenance dashboard",
|
||||
"uid": "WALc3ajnk",
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
- targets:
|
||||
- relay-millau-rialto-parachain-1:9616
|
||||
- relay-millau-rialto-parachain-2:9616
|
||||
@@ -0,0 +1,90 @@
|
||||
# Exposed ports: 10816, 10916, 11016, 11017, 11018
|
||||
|
||||
version: '3.5'
|
||||
services:
|
||||
# We provide overrides for these particular nodes since they are public facing
|
||||
# nodes which we use to connect from things like Polkadot JS Apps.
|
||||
rialto-parachain-collator-charlie:
|
||||
environment:
|
||||
VIRTUAL_HOST: wss.rialto-parachain.brucke.link
|
||||
VIRTUAL_PORT: 9944
|
||||
LETSENCRYPT_HOST: wss.rialto-parachain.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
|
||||
millau-node-charlie:
|
||||
environment:
|
||||
VIRTUAL_HOST: wss.millau.brucke.link
|
||||
VIRTUAL_PORT: 9944
|
||||
LETSENCRYPT_HOST: wss.millau.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
|
||||
relay-millau-rialto-parachain-1: &sub-bridge-relay
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/relay-millau-rialto-parachain-entrypoint.sh
|
||||
volumes:
|
||||
- ./bridges/common:/common
|
||||
- ./bridges/rialto-parachain-millau/entrypoints:/entrypoints
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
ports:
|
||||
- "10816:9616"
|
||||
depends_on: &all-nodes
|
||||
- millau-node-alice
|
||||
- millau-node-bob
|
||||
- millau-node-charlie
|
||||
- millau-node-dave
|
||||
- millau-node-eve
|
||||
- rialto-parachain-collator-alice
|
||||
- rialto-parachain-collator-bob
|
||||
- rialto-parachain-collator-charlie
|
||||
|
||||
relay-millau-rialto-parachain-2:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
EXT_MILLAU_RELAY_ACCOUNT: //RialtoParachain.HeadersAndMessagesRelay2
|
||||
EXT_MILLAU_RELAY_ACCOUNT_HEADERS_OVERRIDE: //RialtoParachain.RialtoHeadersRelay2
|
||||
EXT_RIALTO_PARACHAIN_RELAY_ACCOUNT: //Millau.HeadersAndMessagesRelay2
|
||||
ports:
|
||||
- "10916:9616"
|
||||
relay-messages-millau-to-rialto-parachain-generator:
|
||||
<<: *sub-bridge-relay
|
||||
ports:
|
||||
- "11016:9616"
|
||||
entrypoint: /entrypoints/relay-messages-to-rialto-parachain-generator-entrypoint.sh
|
||||
depends_on:
|
||||
- relay-millau-rialto-parachain-1
|
||||
|
||||
relay-messages-rialto-parachain-to-millau-generator:
|
||||
<<: *sub-bridge-relay
|
||||
entrypoint: /entrypoints/relay-messages-to-millau-generator-entrypoint.sh
|
||||
ports:
|
||||
- "11017:9616"
|
||||
depends_on:
|
||||
- relay-millau-rialto-parachain-1
|
||||
|
||||
relay-messages-millau-to-rialto-parachain-resubmitter:
|
||||
<<: *sub-bridge-relay
|
||||
environment:
|
||||
RUST_LOG: bridge=trace
|
||||
entrypoint: /entrypoints/relay-messages-to-rialto-parachain-resubmitter-entrypoint.sh
|
||||
ports:
|
||||
- "11018:9616"
|
||||
depends_on:
|
||||
- relay-messages-millau-to-rialto-parachain-generator
|
||||
|
||||
# Note: These are being overridden from the top level `monitoring` compose file.
|
||||
grafana-dashboard:
|
||||
environment:
|
||||
VIRTUAL_HOST: grafana.millau.brucke.link,grafana.rialto.brucke.link
|
||||
VIRTUAL_PORT: 3000
|
||||
LETSENCRYPT_HOST: grafana.millau.brucke.link,grafana.rialto.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
volumes:
|
||||
- ./bridges/rialto-parachain-millau/dashboard/grafana:/etc/grafana/dashboards/rialto-parachain-millau:ro
|
||||
- ./networks/dashboard/grafana/beefy-dashboard.json:/etc/grafana/dashboards/beefy.json
|
||||
|
||||
prometheus-metrics:
|
||||
volumes:
|
||||
- ./bridges/rialto-parachain-millau/dashboard/prometheus/targets.yml:/etc/prometheus/targets-rialto-parachain-millau.yml
|
||||
depends_on: *all-nodes
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# THIS SCRIPT IS NOT INTENDED FOR USE IN PRODUCTION ENVIRONMENT
|
||||
#
|
||||
# This scripts periodically calls the Substrate relay binary to generate messages. These messages
|
||||
# are sent from the Rialto network to the Millau network.
|
||||
|
||||
set -eu
|
||||
|
||||
# Max delay before submitting transactions (s)
|
||||
MAX_SUBMIT_DELAY_S=${MSG_EXCHANGE_GEN_MAX_SUBMIT_DELAY_S:-30}
|
||||
MESSAGE_LANE=${MSG_EXCHANGE_GEN_LANE:-00000000}
|
||||
MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE=1024
|
||||
|
||||
SHARED_CMD="/home/user/substrate-relay send-message rialto-parachain-to-millau"
|
||||
SHARED_HOST="--source-host rialto-parachain-collator-bob --source-port 9944"
|
||||
SOURCE_SIGNER="--source-signer //Millau.MessagesSender"
|
||||
|
||||
SEND_MESSAGE="$SHARED_CMD $SHARED_HOST $SOURCE_SIGNER"
|
||||
|
||||
SOURCE_CHAIN="RialtoParachain"
|
||||
TARGET_CHAIN="Millau"
|
||||
EXTRA_ARGS=""
|
||||
REGULAR_PAYLOAD="020419ac"
|
||||
BATCH_PAYLOAD="010109020419A8"
|
||||
|
||||
source /common/generate_messages.sh
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# THIS SCRIPT IS NOT INTENDED FOR USE IN PRODUCTION ENVIRONMENT
|
||||
#
|
||||
# This scripts periodically calls the Substrate relay binary to generate messages. These messages
|
||||
# are sent from the Millau network to the Rialto network.
|
||||
|
||||
set -eu
|
||||
|
||||
# Max delay before submitting transactions (s)
|
||||
MAX_SUBMIT_DELAY_S=${MSG_EXCHANGE_GEN_MAX_SUBMIT_DELAY_S:-30}
|
||||
MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE=1024
|
||||
|
||||
SHARED_CMD=" /home/user/substrate-relay send-message millau-to-rialto-parachain"
|
||||
SHARED_HOST="--source-host millau-node-bob --source-port 9944"
|
||||
SOURCE_SIGNER="--source-signer //RialtoParachain.MessagesSender"
|
||||
|
||||
SEND_MESSAGE="$SHARED_CMD $SHARED_HOST $SOURCE_SIGNER"
|
||||
|
||||
SOURCE_CHAIN="Millau"
|
||||
TARGET_CHAIN="RialtoParachain"
|
||||
EXTRA_ARGS=""
|
||||
REGULAR_PAYLOAD="020419ac"
|
||||
BATCH_PAYLOAD="010109020419A8"
|
||||
|
||||
source /common/generate_messages.sh
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
# //RialtoParachain.MessagesSender is signing Millau -> RialtoParachain message-send transactions, which are causing problems.
|
||||
#
|
||||
# When large message is being sent from Millau to RialtoParachain AND other transactions are
|
||||
# blocking it from being mined, we'll see something like this in logs:
|
||||
#
|
||||
# Millau transaction priority with tip=0: 17800827994. Target priority:
|
||||
# 526186677695
|
||||
#
|
||||
# So since fee multiplier in Millau is `1` and `WeightToFee` is `IdentityFee`, then
|
||||
# we need tip around `526186677695 - 17800827994 = 508_385_849_701`. Let's round it
|
||||
# up to `1_000_000_000_000`.
|
||||
|
||||
/home/user/substrate-relay resubmit-transactions millau \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //RialtoParachain.MessagesSender \
|
||||
--stalled-blocks 7 \
|
||||
--tip-limit 1000000000000 \
|
||||
--tip-step 1000000000 \
|
||||
make-it-best-transaction
|
||||
Executable
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
MILLAU_RELAY_ACCOUNT=${EXT_MILLAU_RELAY_ACCOUNT:-//RialtoParachain.HeadersAndMessagesRelay1}
|
||||
MILLAU_RELAY_ACCOUNT_HEADERS_OVERRIDE=${EXT_MILLAU_RELAY_ACCOUNT_HEADERS_OVERRIDE:-//RialtoParachain.RialtoHeadersRelay1}
|
||||
RIALTO_PARACHAIN_RELAY_ACCOUNT=${EXT_RIALTO_PARACHAIN_RELAY_ACCOUNT:-//Millau.HeadersAndMessagesRelay1}
|
||||
|
||||
/home/user/substrate-relay init-bridge millau-to-rialto-parachain \
|
||||
--source-host millau-node-alice \
|
||||
--source-port 9944 \
|
||||
--target-host rialto-parachain-collator-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //Sudo
|
||||
|
||||
/home/user/substrate-relay init-bridge rialto-to-millau \
|
||||
--source-host rialto-node-alice \
|
||||
--source-port 9944 \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //Sudo
|
||||
|
||||
# Give chain a little bit of time to process initialization transaction
|
||||
sleep 6
|
||||
|
||||
/home/user/substrate-relay relay-headers-and-messages millau-rialto-parachain \
|
||||
--millau-host millau-node-alice \
|
||||
--millau-port 9944 \
|
||||
--millau-signer $MILLAU_RELAY_ACCOUNT \
|
||||
--rialto-headers-to-millau-signer $MILLAU_RELAY_ACCOUNT_HEADERS_OVERRIDE \
|
||||
--millau-messages-pallet-owner=//RialtoParachain.MessagesOwner \
|
||||
--millau-transactions-mortality=64 \
|
||||
--rialto-parachain-host rialto-parachain-collator-charlie \
|
||||
--rialto-parachain-port 9944 \
|
||||
--rialto-parachain-signer $RIALTO_PARACHAIN_RELAY_ACCOUNT \
|
||||
--rialto-parachain-messages-pallet-owner=//Millau.MessagesOwner \
|
||||
--rialto-parachain-transactions-mortality=64 \
|
||||
--rialto-host rialto-node-alice \
|
||||
--rialto-port 9944 \
|
||||
--lane=00000000 \
|
||||
--prometheus-host=0.0.0.0
|
||||
+781
@@ -0,0 +1,781 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
32
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "60m",
|
||||
"frequency": "5m",
|
||||
"handler": 1,
|
||||
"message": "",
|
||||
"name": "Synced Header Difference is Over 32 (Westend to Millau)",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"description": "Shows how many headers behind the target chain is from the source chain.",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 14,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "max(Westend_to_Millau_Sync_best_source_block_number) - max(Westend_to_Millau_Sync_best_source_at_target_block_number)",
|
||||
"format": "table",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 5
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Difference Between Source and Target Headers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
32
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"2m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "60m",
|
||||
"frequency": "5m",
|
||||
"handler": 1,
|
||||
"name": "No New Headers (Westend to Millau)",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"description": "How many headers has the relay synced from the source node in the last 2 mins?",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 16,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "max_over_time(Westend_to_Millau_Sync_best_source_block_number[10m])-min_over_time(Westend_to_Millau_Sync_best_source_block_number[10m])",
|
||||
"interval": "",
|
||||
"legendFormat": "Number of new Headers on Westend (Last 10 Mins)",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 5
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Headers Synced on Millau (Last 2 Mins)",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {
|
||||
"align": null
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 6,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 8
|
||||
},
|
||||
"id": 2,
|
||||
"interval": "5s",
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"mean"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "7.1.3",
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Westend_to_Millau_Sync_best_source_block_number",
|
||||
"format": "time_series",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "Best Known Westend Header at Westend",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "Westend_to_Millau_Sync_best_source_at_target_block_number",
|
||||
"format": "time_series",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "Best Known Westend Header at Millau",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Best Blocks according to Relay",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 6,
|
||||
"x": 12,
|
||||
"y": 8
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 6,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "system_average_load{instance='relay-headers-westend-to-millau-1:9616'}",
|
||||
"interval": "",
|
||||
"legendFormat": "Average system load in last {{over}}",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": null
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Average System Load",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 80
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 6,
|
||||
"x": 18,
|
||||
"y": 8
|
||||
},
|
||||
"id": 12,
|
||||
"options": {
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"mean"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"showThresholdLabels": false,
|
||||
"showThresholdMarkers": true
|
||||
},
|
||||
"pluginVersion": "7.1.3",
|
||||
"targets": [
|
||||
{
|
||||
"expr": "avg_over_time(process_cpu_usage_percentage{instance='relay-headers-westend-to-millau-1:9616'}[1m])",
|
||||
"instant": true,
|
||||
"interval": "",
|
||||
"legendFormat": "1 CPU = 100",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Relay Process CPU Usage ",
|
||||
"type": "gauge"
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Whether with-Westend-grandpa-pallet and Westend itself are on different forks alert",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 10,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 14
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 18,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Westend_to_Millau_Sync_is_source_and_source_at_target_using_different_forks",
|
||||
"interval": "",
|
||||
"legendFormat": "On different forks?",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Whether with-Westend-grandpa-pallet and Westend itself are on different forks",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"description": "",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 12,
|
||||
"x": 12,
|
||||
"y": 16
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 10,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "process_memory_usage_bytes{instance='relay-headers-westend-to-millau-1:9616'} / 1024 / 1024",
|
||||
"interval": "",
|
||||
"legendFormat": "Process memory, MB",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Memory Usage for Relay Process",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-5m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "Westend to Millau Header Sync Dashboard",
|
||||
"uid": "relay-westend-to-millau-headers",
|
||||
"version": 1
|
||||
}
|
||||
+200
@@ -0,0 +1,200 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"id": 9,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
32
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"C",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Too many Westmint headers are missing at Millau",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 2,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "Westend_to_Millau_Parachains_best_parachain_block_number_at_source{parachain='para_2000'}",
|
||||
"interval": "",
|
||||
"legendFormat": "At Westend",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "Westend_to_Millau_Parachains_best_parachain_block_number_at_target{parachain='para_2000'}",
|
||||
"interval": "",
|
||||
"legendFormat": "At Millau",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"expr": "Westend_to_Millau_Parachains_best_parachain_block_number_at_source{parachain='para_2000'} - Westend_to_Millau_Parachains_best_parachain_block_number_at_target{parachain='para_2000'}",
|
||||
"hide": true,
|
||||
"interval": "",
|
||||
"legendFormat": "Missing Westmint headers at Millau",
|
||||
"refId": "C"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 32
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Westmint headers",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-5m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "Westend parachains at Millau",
|
||||
"uid": "vUMhOlq7k",
|
||||
"version": 1
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
- targets:
|
||||
- relay-headers-westend-to-millau-1:9616
|
||||
- relay-parachains-westend-to-millau-1:9616
|
||||
@@ -0,0 +1,72 @@
|
||||
# Exposed ports: 10616, 10617, 10618, 10619
|
||||
|
||||
version: '3.5'
|
||||
services:
|
||||
relay-headers-westend-to-millau-1:
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/relay-headers-westend-to-millau-entrypoint.sh
|
||||
volumes:
|
||||
- ./bridges/westend-millau/entrypoints:/entrypoints
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
ports:
|
||||
- "10616:9616"
|
||||
depends_on:
|
||||
- millau-node-alice
|
||||
|
||||
relay-headers-westend-to-millau-2:
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/relay-headers-westend-to-millau-entrypoint.sh
|
||||
volumes:
|
||||
- ./bridges/westend-millau/entrypoints:/entrypoints
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
EXT_RELAY_ACCOUNT: //Westend.HeadersRelay2
|
||||
ports:
|
||||
- "10617:9616"
|
||||
depends_on:
|
||||
- millau-node-alice
|
||||
|
||||
relay-parachains-westend-to-millau-1:
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/relay-parachains-westend-to-millau-entrypoint.sh
|
||||
volumes:
|
||||
- ./bridges/westend-millau/entrypoints:/entrypoints
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
ports:
|
||||
- "10618:9616"
|
||||
depends_on:
|
||||
- millau-node-alice
|
||||
|
||||
relay-parachains-westend-to-millau-2:
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/relay-parachains-westend-to-millau-entrypoint.sh
|
||||
volumes:
|
||||
- ./bridges/westend-millau/entrypoints:/entrypoints
|
||||
environment:
|
||||
RUST_LOG: rpc=trace,bridge=trace
|
||||
EXT_RELAY_ACCOUNT: //Westend.WestmintHeaders2
|
||||
ports:
|
||||
- "10619:9616"
|
||||
depends_on:
|
||||
- millau-node-alice
|
||||
|
||||
# Note: These are being overridden from the top level `monitoring` compose file.
|
||||
grafana-dashboard:
|
||||
environment:
|
||||
VIRTUAL_HOST: grafana.millau.brucke.link,grafana.rialto.brucke.link
|
||||
VIRTUAL_PORT: 3000
|
||||
LETSENCRYPT_HOST: grafana.millau.brucke.link,grafana.rialto.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
volumes:
|
||||
- ./bridges/westend-millau/dashboard/grafana:/etc/grafana/dashboards/westend-millau:ro
|
||||
|
||||
prometheus-metrics:
|
||||
volumes:
|
||||
- ./bridges/westend-millau/dashboard/prometheus/targets.yml:/etc/prometheus/targets-westend-millau.yml
|
||||
depends_on:
|
||||
- relay-headers-westend-to-millau-1
|
||||
- relay-headers-westend-to-millau-2
|
||||
- relay-parachains-westend-to-millau-1
|
||||
- relay-parachains-westend-to-millau-2
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
RELAY_ACCOUNT=${EXT_RELAY_ACCOUNT:-//Westend.HeadersRelay1}
|
||||
|
||||
/home/user/substrate-relay init-bridge westend-to-millau \
|
||||
--source-host westend-rpc.polkadot.io \
|
||||
--source-port 443 \
|
||||
--source-secure \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer //Westend.GrandpaOwner
|
||||
|
||||
# Give chain a little bit of time to process initialization transaction
|
||||
sleep 6
|
||||
/home/user/substrate-relay relay-headers westend-to-millau \
|
||||
--source-host westend-rpc.polkadot.io \
|
||||
--source-port 443 \
|
||||
--source-secure \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer $RELAY_ACCOUNT \
|
||||
--target-transactions-mortality=4\
|
||||
--prometheus-host=0.0.0.0
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
RELAY_ACCOUNT=${EXT_RELAY_ACCOUNT:-//Westend.WestmintHeaders1}
|
||||
|
||||
/home/user/substrate-relay relay-parachains westend-to-millau \
|
||||
--source-host westend-rpc.polkadot.io \
|
||||
--source-port 443 \
|
||||
--source-secure \
|
||||
--target-host millau-node-alice \
|
||||
--target-port 9944 \
|
||||
--target-signer $RELAY_ACCOUNT \
|
||||
--target-transactions-mortality=4\
|
||||
--prometheus-host=0.0.0.0
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
# This will allow us to run whichever binary the user wanted
|
||||
# with arguments passed through `docker run`
|
||||
# e.g `docker run -it rialto-bridge-node-dev --dev --tmp`
|
||||
/home/user/$PROJECT $@
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# A script for relaying Millau messages to the Rialto chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
set -xeu
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-messages millau-to-rialto \
|
||||
--lane 00000000 \
|
||||
--source-host localhost \
|
||||
--source-port $MILLAU_PORT \
|
||||
--source-signer //Bob \
|
||||
--target-host localhost \
|
||||
--target-port $RIALTO_PORT \
|
||||
--target-signer //Bob \
|
||||
--prometheus-host=0.0.0.0
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# A script for relaying Rialto messages to the Millau chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
set -xeu
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-messages rialto-to-millau \
|
||||
--lane 00000000 \
|
||||
--source-host localhost \
|
||||
--source-port $RIALTO_PORT \
|
||||
--source-signer //Bob \
|
||||
--target-host localhost \
|
||||
--target-port $MILLAU_PORT \
|
||||
--target-signer //Bob \
|
||||
--prometheus-host=0.0.0.0
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# A script for relaying Millau headers to the Rialto chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay init-bridge millau-to-rialto \
|
||||
--source-host localhost \
|
||||
--source-port $MILLAU_PORT \
|
||||
--target-host localhost \
|
||||
--target-port $RIALTO_PORT \
|
||||
--target-signer //Sudo \
|
||||
--source-version-mode Bundle \
|
||||
--target-version-mode Bundle
|
||||
|
||||
sleep 5
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-headers millau-to-rialto \
|
||||
--source-host localhost \
|
||||
--source-port $MILLAU_PORT \
|
||||
--target-host localhost \
|
||||
--target-port $RIALTO_PORT \
|
||||
--target-signer //Alice \
|
||||
--prometheus-host=0.0.0.0
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# A script for relaying Rialto headers to the Millau chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay init-bridge rialto-to-millau \
|
||||
--target-host localhost \
|
||||
--target-port $MILLAU_PORT \
|
||||
--source-host localhost \
|
||||
--source-port $RIALTO_PORT \
|
||||
--target-signer //Sudo \
|
||||
|
||||
sleep 5
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-headers rialto-to-millau \
|
||||
--target-host localhost \
|
||||
--target-port $MILLAU_PORT \
|
||||
--source-host localhost \
|
||||
--source-port $RIALTO_PORT \
|
||||
--target-signer //Alice \
|
||||
--prometheus-host=0.0.0.0
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run a development instance of the Millau Substrate bridge node.
|
||||
# To override the default port just export MILLAU_PORT=9945
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
|
||||
RUST_LOG=runtime=trace \
|
||||
./target/debug/millau-bridge-node --dev --tmp \
|
||||
--rpc-cors=all --unsafe-rpc-external --unsafe-ws-external \
|
||||
--port 33044 --rpc-port 9934 --ws-port $MILLAU_PORT \
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run a development instance of the Rialto Substrate bridge node.
|
||||
# To override the default port just export RIALTO_PORT=9944
|
||||
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=runtime=trace \
|
||||
./target/debug/rialto-bridge-node --dev --tmp \
|
||||
--rpc-cors=all --unsafe-rpc-external --unsafe-ws-external \
|
||||
--port 33033 --rpc-port 9933 --ws-port $RIALTO_PORT \
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run a development instance of the Westend Substrate bridge node.
|
||||
# To override the default port just export WESTEND_PORT=9945
|
||||
#
|
||||
# Note: This script will not work out of the box with the bridges
|
||||
# repo since it relies on a Polkadot binary.
|
||||
|
||||
WESTEND_PORT="${WESTEND_PORT:-9944}"
|
||||
|
||||
RUST_LOG=runtime=trace,runtime::bridge=trace \
|
||||
./target/debug/polkadot --chain=westend-dev --alice --tmp \
|
||||
--rpc-cors=all --unsafe-rpc-external --unsafe-ws-external \
|
||||
--port 33033 --rpc-port 9933 --ws-port $WESTEND_PORT \
|
||||
@@ -0,0 +1,15 @@
|
||||
FROM ruby:alpine3.13
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
ENV APP_HOME /app
|
||||
ENV RACK_ENV production
|
||||
RUN mkdir $APP_HOME
|
||||
WORKDIR $APP_HOME
|
||||
|
||||
RUN git clone https://github.com/ananace/ruby-grafana-matrix.git $APP_HOME
|
||||
RUN bundle install --without development
|
||||
|
||||
RUN mkdir /config && touch /config/config.yml && ln -s /config/config.yml ./config.yml
|
||||
|
||||
CMD ["bundle", "exec", "rackup", "-p4567"]
|
||||
@@ -0,0 +1,15 @@
|
||||
# A disabled version of monitoring.
|
||||
#
|
||||
# We replace each service with a no-op container. We can't simply not include this file,
|
||||
# cause the bridge-specific compose files might have overrides.
|
||||
version: '3.5'
|
||||
services:
|
||||
prometheus-metrics:
|
||||
image: alpine
|
||||
|
||||
grafana-dashboard:
|
||||
image: alpine
|
||||
|
||||
grafana-matrix-notifier:
|
||||
image: alpine
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
version: '3.5'
|
||||
services:
|
||||
prometheus-metrics:
|
||||
image: prom/prometheus:v2.38.0
|
||||
volumes:
|
||||
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
ports:
|
||||
- "9090:9090"
|
||||
|
||||
grafana-dashboard:
|
||||
image: grafana/grafana:8.2.6
|
||||
environment:
|
||||
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASS:-admin}
|
||||
GF_SERVER_ROOT_URL: ${GRAFANA_SERVER_ROOT_URL}
|
||||
GF_SERVER_DOMAIN: ${GRAFANA_SERVER_DOMAIN}
|
||||
volumes:
|
||||
- ./monitoring/grafana/provisioning/:/etc/grafana/provisioning/:ro
|
||||
- ./monitoring/grafana/dashboards/:/etc/grafana/dashboards/common:ro
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- prometheus-metrics
|
||||
entrypoint: sh -c "echo 'sleeping for 10m' && sleep 600 && /run.sh"
|
||||
|
||||
grafana-matrix-notifier:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./monitoring/GrafanaMatrix.Dockerfile
|
||||
volumes:
|
||||
- ./monitoring/grafana-matrix:/config
|
||||
ports:
|
||||
- "4567:4567"
|
||||
depends_on:
|
||||
- grafana-dashboard
|
||||
@@ -0,0 +1,47 @@
|
||||
---
|
||||
# Webhook server configuration
|
||||
# Or use the launch options `-o '::' -p 4567`
|
||||
|
||||
# Set up your HS connections
|
||||
matrix:
|
||||
- name: matrix-parity-io
|
||||
url: https://matrix.parity.io
|
||||
# Create a user - log that user in using a post request
|
||||
# curl -XPOST -d '{"type": "m.login.password",
|
||||
# "user":"grafana",
|
||||
# "password":"dummy-password"}'
|
||||
# "https://my-matrix-server/_matrix/client/r0/login"
|
||||
# Fill that access token in here
|
||||
access_token: "<access_token>"
|
||||
#device_id: <device> # Optional
|
||||
|
||||
# The default message type for messages, should be either m.text or m.notice,
|
||||
# defaults to m.text
|
||||
msgtype: m.text
|
||||
|
||||
# Set up notification ingress rules
|
||||
rules:
|
||||
- name: bridge # Name of the rule
|
||||
room: "#bridges-rialto-millau-alerts:matrix.parity.io" # Room or ID
|
||||
matrix: matrix-parity-io # The Matrix HS to use - defaults to first one
|
||||
msgtype: m.notice
|
||||
# The following values are optional:
|
||||
image: true # Attach image to the notification?
|
||||
embed_image: true # Upload and embed the image into the message?
|
||||
#templates:
|
||||
# Templates to use when rendering the notification, available placeholders:
|
||||
# %TEMPLATES% - lib/grafana_matrix/templates
|
||||
# $<env> - Environment variables
|
||||
#html: "%TEMPLATES%/html.erb" # Path to HTML template
|
||||
#plain: "%TEMPLATES%/plain.erb" # Path to plaintext template
|
||||
#auth:
|
||||
#user: example
|
||||
#pass: any HTTP encodable string
|
||||
#- name: other-hq
|
||||
# room: "#hq:private.matrix.org
|
||||
# matrix: matrix-priv
|
||||
|
||||
# To use the webhook, you need to configure it into Grafana as:
|
||||
#
|
||||
# Url: http://<server address>:<port>/hook?rule=<rule name>
|
||||
# Http Method: POST
|
||||
@@ -0,0 +1,200 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"target": {
|
||||
"limit": 100,
|
||||
"matchAny": false,
|
||||
"tags": [],
|
||||
"type": "dashboard"
|
||||
},
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "Running nodes",
|
||||
"editable": true,
|
||||
"fiscalYearStartMonth": 0,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"liveNow": false,
|
||||
"panels": [
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"15m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "min"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "3m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Nodes are not running",
|
||||
"noDataState": "alerting",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"description": "",
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 9,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 2,
|
||||
"interval": null,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"maxDataPoints": null,
|
||||
"nullPointMode": "null",
|
||||
"options": {
|
||||
"alertThreshold": true
|
||||
},
|
||||
"percentage": false,
|
||||
"pluginVersion": "8.2.6",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"exemplar": true,
|
||||
"expr": "up",
|
||||
"format": "time_series",
|
||||
"instant": false,
|
||||
"interval": "",
|
||||
"legendFormat": "",
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1,
|
||||
"visible": true
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Running nodes",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"$$hashKey": "object:111",
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"$$hashKey": "object:112",
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "",
|
||||
"schemaVersion": 32,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-6h",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "Running nodes",
|
||||
"uid": "DHl-xSW4z",
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
- name: 'default'
|
||||
orgId: 1
|
||||
folder: ''
|
||||
type: file
|
||||
options:
|
||||
path: '/etc/grafana/dashboards'
|
||||
@@ -0,0 +1,16 @@
|
||||
# list of datasources to insert/update depending
|
||||
# whats available in the database
|
||||
datasources:
|
||||
# <string, required> name of the datasource. Required
|
||||
- name: Prometheus
|
||||
# <string, required> datasource type. Required
|
||||
type: prometheus
|
||||
# <string, required> access mode. direct or proxy. Required
|
||||
access: proxy
|
||||
# <int> org id. will default to orgId 1 if not specified
|
||||
orgId: 1
|
||||
# <string> url
|
||||
url: http://prometheus-metrics:9090
|
||||
# <bool> mark as default datasource. Max one per org
|
||||
isDefault: true
|
||||
version: 1
|
||||
@@ -0,0 +1,15 @@
|
||||
notifiers:
|
||||
- name: Matrix
|
||||
type: webhook
|
||||
uid: notifier1
|
||||
is_default: true
|
||||
send_reminder: true
|
||||
frequency: 1h
|
||||
disable_resolve_message: false
|
||||
settings:
|
||||
url: http://grafana-matrix-notifier:4567/hook?rule=bridge
|
||||
http_method: POST
|
||||
|
||||
delete_notifiers:
|
||||
- name: Matrix
|
||||
uid: notifier1
|
||||
@@ -0,0 +1,7 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_configs:
|
||||
- job_name: dummy
|
||||
file_sd_configs:
|
||||
- files:
|
||||
- /etc/prometheus/targets-*.yml
|
||||
@@ -0,0 +1,585 @@
|
||||
{
|
||||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"builtIn": 1,
|
||||
"datasource": "-- Grafana --",
|
||||
"enable": true,
|
||||
"hide": true,
|
||||
"iconColor": "rgba(0, 211, 255, 1)",
|
||||
"name": "Annotations & Alerts",
|
||||
"type": "dashboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
"editable": true,
|
||||
"gnetId": null,
|
||||
"graphTooltip": 0,
|
||||
"links": [],
|
||||
"panels": [
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"C",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
1
|
||||
],
|
||||
"type": "lt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"D",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Beefy best blocks not advancing",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {
|
||||
"align": null
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 14,
|
||||
"w": 12,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 2,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "substrate_beefy_best_block{chain=\"rialto_local\"}",
|
||||
"legendFormat": "Rialto(Charlie)",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "substrate_beefy_best_block{chain=\"millau_local\"}",
|
||||
"legendFormat": "Millau(Charlie)",
|
||||
"refId": "B"
|
||||
},
|
||||
{
|
||||
"expr": "max_over_time(substrate_beefy_best_block{chain=\"millau_local\"}[5m]) - min_over_time(substrate_beefy_best_block{chain=\"millau_local\"}[5m])",
|
||||
"hide": true,
|
||||
"legendFormat": "Millau Best Beefy blocks count in last 5 minutes",
|
||||
"refId": "C"
|
||||
},
|
||||
{
|
||||
"expr": "max_over_time(substrate_beefy_best_block{chain=\"rialto_local\"}[5m]) - min_over_time(substrate_beefy_best_block{chain=\"rialto_local\"}[5m])",
|
||||
"hide": true,
|
||||
"legendFormat": "Rialto Best Beefy blocks count in last 5 minutes",
|
||||
"refId": "D"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "lt",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Beefy Best block",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "yellow",
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"gridPos": {
|
||||
"h": 14,
|
||||
"w": 11,
|
||||
"x": 12,
|
||||
"y": 0
|
||||
},
|
||||
"id": 4,
|
||||
"options": {
|
||||
"colorMode": "value",
|
||||
"graphMode": "area",
|
||||
"justifyMode": "auto",
|
||||
"orientation": "auto",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"mean"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"textMode": "auto"
|
||||
},
|
||||
"pluginVersion": "7.1.3",
|
||||
"targets": [
|
||||
{
|
||||
"expr": "substrate_beefy_should_vote_on{chain=\"rialto_local\"}",
|
||||
"legendFormat": "Rialto(Charlie) Should-Vote-On",
|
||||
"refId": "C"
|
||||
},
|
||||
{
|
||||
"expr": "substrate_beefy_round_concluded{chain=\"rialto_local\"}",
|
||||
"legendFormat": "Rialto(Charlie) Round-Concluded",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "substrate_beefy_should_vote_on{chain=\"millau_local\"}",
|
||||
"legendFormat": "Millau(Charlie) Should-Vote-On",
|
||||
"refId": "D"
|
||||
},
|
||||
{
|
||||
"expr": "substrate_beefy_round_concluded{chain=\"millau_local\"}",
|
||||
"legendFormat": "Millau(Charlie) Round-Concluded",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeShift": null,
|
||||
"title": "Beefy Voting Rounds",
|
||||
"type": "stat"
|
||||
},
|
||||
{
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 18,
|
||||
"x": 0,
|
||||
"y": 14
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 6,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "substrate_beefy_votes_sent{chain=\"rialto_local\"}",
|
||||
"legendFormat": "Rialto (node Charlie)",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "substrate_beefy_votes_sent{chain=\"millau_local\"}",
|
||||
"legendFormat": "Millau (node Charlie)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Beefy Votes Sent",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"alert": {
|
||||
"alertRuleTags": {},
|
||||
"conditions": [
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "and"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"A",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
},
|
||||
{
|
||||
"evaluator": {
|
||||
"params": [
|
||||
0
|
||||
],
|
||||
"type": "gt"
|
||||
},
|
||||
"operator": {
|
||||
"type": "or"
|
||||
},
|
||||
"query": {
|
||||
"params": [
|
||||
"B",
|
||||
"5m",
|
||||
"now"
|
||||
]
|
||||
},
|
||||
"reducer": {
|
||||
"params": [],
|
||||
"type": "max"
|
||||
},
|
||||
"type": "query"
|
||||
}
|
||||
],
|
||||
"executionErrorState": "alerting",
|
||||
"for": "5m",
|
||||
"frequency": "1m",
|
||||
"handler": 1,
|
||||
"name": "Beefy Lagging Sessions alert",
|
||||
"noDataState": "no_data",
|
||||
"notifications": []
|
||||
},
|
||||
"aliasColors": {},
|
||||
"bars": false,
|
||||
"dashLength": 10,
|
||||
"dashes": false,
|
||||
"datasource": "Prometheus",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"custom": {
|
||||
"align": null
|
||||
},
|
||||
"mappings": [],
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"fill": 1,
|
||||
"fillGradient": 0,
|
||||
"gridPos": {
|
||||
"h": 8,
|
||||
"w": 5,
|
||||
"x": 18,
|
||||
"y": 14
|
||||
},
|
||||
"hiddenSeries": false,
|
||||
"id": 8,
|
||||
"legend": {
|
||||
"avg": false,
|
||||
"current": false,
|
||||
"max": false,
|
||||
"min": false,
|
||||
"show": true,
|
||||
"total": false,
|
||||
"values": false
|
||||
},
|
||||
"lines": true,
|
||||
"linewidth": 1,
|
||||
"nullPointMode": "null",
|
||||
"percentage": false,
|
||||
"pluginVersion": "7.1.3",
|
||||
"pointradius": 2,
|
||||
"points": false,
|
||||
"renderer": "flot",
|
||||
"seriesOverrides": [],
|
||||
"spaceLength": 10,
|
||||
"stack": false,
|
||||
"steppedLine": false,
|
||||
"targets": [
|
||||
{
|
||||
"expr": "substrate_beefy_lagging_sessions{chain=\"rialto_local\"}",
|
||||
"legendFormat": "Rialto(Charlie)",
|
||||
"refId": "A"
|
||||
},
|
||||
{
|
||||
"expr": "substrate_beefy_lagging_sessions{chain=\"millau_local\"}",
|
||||
"legendFormat": "Millau(Charlie)",
|
||||
"refId": "B"
|
||||
}
|
||||
],
|
||||
"thresholds": [
|
||||
{
|
||||
"colorMode": "critical",
|
||||
"fill": true,
|
||||
"line": true,
|
||||
"op": "gt",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"timeFrom": null,
|
||||
"timeRegions": [],
|
||||
"timeShift": null,
|
||||
"title": "Beefy Lagging Sessions",
|
||||
"tooltip": {
|
||||
"shared": true,
|
||||
"sort": 0,
|
||||
"value_type": "individual"
|
||||
},
|
||||
"type": "graph",
|
||||
"xaxis": {
|
||||
"buckets": null,
|
||||
"mode": "time",
|
||||
"name": null,
|
||||
"show": true,
|
||||
"values": []
|
||||
},
|
||||
"yaxes": [
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"format": "short",
|
||||
"label": null,
|
||||
"logBase": 1,
|
||||
"max": null,
|
||||
"min": null,
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"yaxis": {
|
||||
"align": false,
|
||||
"alignLevel": null
|
||||
}
|
||||
}
|
||||
],
|
||||
"refresh": "5s",
|
||||
"schemaVersion": 26,
|
||||
"style": "dark",
|
||||
"tags": [],
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"time": {
|
||||
"from": "now-5m",
|
||||
"to": "now"
|
||||
},
|
||||
"timepicker": {
|
||||
"refresh_intervals": [
|
||||
"5s",
|
||||
"10s",
|
||||
"30s",
|
||||
"1m",
|
||||
"5m",
|
||||
"15m",
|
||||
"30m",
|
||||
"1h",
|
||||
"2h",
|
||||
"1d"
|
||||
]
|
||||
},
|
||||
"timezone": "",
|
||||
"title": "Beefy",
|
||||
"uid": "j6cRDRh7z",
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
- targets:
|
||||
- millau-node-charlie:9615
|
||||
@@ -0,0 +1,2 @@
|
||||
- targets:
|
||||
- rialto-node-charlie:9615
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
/home/user/rialto-bridge-node build-spec \
|
||||
--chain local \
|
||||
--raw \
|
||||
--disable-default-bootnode \
|
||||
> /rialto-share/rialto-relaychain-spec-raw.json
|
||||
|
||||
# we're using local driver + tmpfs for shared `/rialto-share` volume, which is populated
|
||||
# by the container running this script. If this script ends, the volume will be detached
|
||||
# and our chain spec will be lost when it'll go online again. Hence the never-ending
|
||||
# script which keeps volume online until container is stopped.
|
||||
tail -f /dev/null
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
sleep 15
|
||||
|
||||
/home/user/substrate-relay register-parachain rialto-parachain \
|
||||
--parachain-host rialto-parachain-collator-alice \
|
||||
--parachain-port 9944 \
|
||||
--relaychain-host rialto-node-alice \
|
||||
--relaychain-port 9944 \
|
||||
--relaychain-signer //Sudo
|
||||
@@ -0,0 +1,101 @@
|
||||
# Compose file for quickly spinning up a local instance of the Millau Substrate network.
|
||||
#
|
||||
# Note that the Millau network is only used for testing, so the configuration settings you see here
|
||||
# are *not* recommended for a production environment.
|
||||
#
|
||||
# For example, do *not* keep your `node-key` in version control, and unless you're _really_ sure you
|
||||
# want to provide public access to your nodes do *not* publicly expose RPC methods.
|
||||
version: '3.5'
|
||||
services:
|
||||
millau-node-alice: &millau-bridge-node
|
||||
image: ${MILLAU_BRIDGE_NODE_IMAGE:-paritytech/millau-bridge-node}
|
||||
entrypoint:
|
||||
- /home/user/millau-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/millau-node-bob/tcp/30333/p2p/12D3KooWM5LFR5ne4yTQ4sBSXJ75M4bDo2MAhAW2GhL3i8fe5aRb
|
||||
- --alice
|
||||
- --node-key=0f900c89f4e626f4a217302ab8c7d213737d00627115f318ad6fb169717ac8e0
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
environment:
|
||||
RUST_LOG: runtime=trace,rpc=debug,txpool=trace,runtime::bridge=trace,sc_basic_authorship=trace,beefy=debug
|
||||
ports:
|
||||
- "19933:9933"
|
||||
- "19944:9944"
|
||||
|
||||
millau-node-bob:
|
||||
<<: *millau-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/millau-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
|
||||
- --bob
|
||||
- --node-key=db383639ff2905d79f8e936fd5dc4416ef46b514b2f83823ec3c42753d7557bb
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
ports:
|
||||
- "20033:9933"
|
||||
- "20044:9944"
|
||||
|
||||
millau-node-charlie:
|
||||
<<: *millau-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/millau-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
|
||||
- --charlie
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
- --prometheus-external
|
||||
ports:
|
||||
- "20133:9933"
|
||||
- "20144:9944"
|
||||
- "20615:9615"
|
||||
|
||||
millau-node-dave:
|
||||
<<: *millau-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/millau-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
|
||||
- --dave
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
ports:
|
||||
- "20233:9933"
|
||||
- "20244:9944"
|
||||
|
||||
millau-node-eve:
|
||||
<<: *millau-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/millau-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/millau-node-alice/tcp/30333/p2p/12D3KooWFqiV73ipQ1jpfVmCfLqBCp8G9PLH3zPkY9EhmdrSGA4H
|
||||
- --eve
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
ports:
|
||||
- "20333:9933"
|
||||
- "20344:9944"
|
||||
|
||||
# Note: These are being overridden from the top level `monitoring` compose file.
|
||||
prometheus-metrics:
|
||||
volumes:
|
||||
- ./networks/dashboard/prometheus/millau-targets.yml:/etc/prometheus/targets-millau-nodes.yml
|
||||
depends_on:
|
||||
- millau-node-charlie
|
||||
@@ -0,0 +1,90 @@
|
||||
# Compose file for quickly spinning up a local instance of the Rialto Parachain network.
|
||||
#
|
||||
# Since Rialto Parachain is unusable without Rialto, this file depends on some Rialto
|
||||
# network nodes.
|
||||
version: '3.5'
|
||||
services:
|
||||
rialto-parachain-collator-alice: &rialto-parachain-collator
|
||||
image: ${RIALTO_PARACHAIN_COLLATOR_IMAGE:-paritytech/rialto-parachain-collator}
|
||||
entrypoint: >
|
||||
/home/user/rialto-parachain-collator
|
||||
--alice
|
||||
--collator
|
||||
--force-authoring
|
||||
--parachain-id 2000
|
||||
--rpc-port 9933
|
||||
--ws-port 9944
|
||||
--rpc-cors=all
|
||||
--unsafe-rpc-external
|
||||
--unsafe-ws-external
|
||||
--
|
||||
--execution wasm
|
||||
--chain /rialto-share/rialto-relaychain-spec-raw.json
|
||||
--rpc-port 9934
|
||||
--ws-port 9945
|
||||
volumes:
|
||||
- rialto-share:/rialto-share:z
|
||||
environment:
|
||||
RUST_LOG: runtime=trace,rpc=trace,txpool=trace,parachain=trace,parity_ws=trace,sc_basic_authorship=trace
|
||||
depends_on:
|
||||
- rialto-chainspec-exporter
|
||||
ports:
|
||||
- "20433:9933"
|
||||
- "20444:9944"
|
||||
|
||||
rialto-parachain-collator-bob:
|
||||
<<: *rialto-parachain-collator
|
||||
entrypoint: >
|
||||
/home/user/rialto-parachain-collator
|
||||
--bob
|
||||
--collator
|
||||
--force-authoring
|
||||
--parachain-id 2000
|
||||
--rpc-port 9933
|
||||
--ws-port 9944
|
||||
--rpc-cors=all
|
||||
--unsafe-rpc-external
|
||||
--unsafe-ws-external
|
||||
--
|
||||
--execution wasm
|
||||
--chain /rialto-share/rialto-relaychain-spec-raw.json
|
||||
--rpc-port 9934
|
||||
--ws-port 9945
|
||||
ports:
|
||||
- "20533:9933"
|
||||
- "20544:9944"
|
||||
|
||||
rialto-parachain-collator-charlie:
|
||||
<<: *rialto-parachain-collator
|
||||
entrypoint: >
|
||||
/home/user/rialto-parachain-collator
|
||||
--charlie
|
||||
--collator
|
||||
--force-authoring
|
||||
--parachain-id 2000
|
||||
--rpc-port 9933
|
||||
--ws-port 9944
|
||||
--rpc-cors=all
|
||||
--unsafe-rpc-external
|
||||
--unsafe-ws-external
|
||||
--
|
||||
--execution wasm
|
||||
--chain /rialto-share/rialto-relaychain-spec-raw.json
|
||||
--rpc-port 9934
|
||||
--ws-port 9945
|
||||
ports:
|
||||
- "20633:9933"
|
||||
- "20644:9944"
|
||||
|
||||
rialto-parachain-registrar:
|
||||
image: ${SUBSTRATE_RELAY_IMAGE:-paritytech/substrate-relay}
|
||||
entrypoint: /entrypoints/rialto-parachain-registrar-entrypoint.sh
|
||||
volumes:
|
||||
- ./networks/entrypoints:/entrypoints
|
||||
- rialto-share:/rialto-share:z
|
||||
environment:
|
||||
RUST_LOG: bridge=trace
|
||||
depends_on:
|
||||
- rialto-node-alice
|
||||
- rialto-parachain-collator-alice
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
# Compose file for quickly spinning up a local instance of the Rialto Substrate network.
|
||||
#
|
||||
# Note that the Rialto network is only used for testing, so the configuration settings you see here
|
||||
# are *not* recommended for a production environment.
|
||||
#
|
||||
# For example, do *not* keep your `node-key` in version control, and unless you're _really_ sure you
|
||||
# want to provide public access to your nodes do *not* publicly expose RPC methods.
|
||||
version: '3.5'
|
||||
services:
|
||||
rialto-node-alice: &rialto-bridge-node
|
||||
image: ${RIALTO_BRIDGE_NODE_IMAGE:-paritytech/rialto-bridge-node}
|
||||
entrypoint:
|
||||
- /home/user/rialto-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/rialto-node-bob/tcp/30333/p2p/12D3KooWSEpHJj29HEzgPFcRYVc5X3sEuP3KgiUoqJNCet51NiMX
|
||||
- --alice
|
||||
- --node-key=79cf382988364291a7968ae7825c01f68c50d679796a8983237d07fe0ccf363b
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
environment:
|
||||
RUST_LOG: runtime=trace,rpc=debug,txpool=trace,runtime::bridge=trace,beefy=debug
|
||||
ports:
|
||||
- "9933:9933"
|
||||
- "9944:9944"
|
||||
|
||||
rialto-node-bob:
|
||||
<<: *rialto-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/rialto-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
|
||||
- --bob
|
||||
- --node-key=4f9d0146dd9b7b3bf5a8089e3880023d1df92057f89e96e07bb4d8c2ead75bbd
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
ports:
|
||||
- "10033:9933"
|
||||
- "10044:9944"
|
||||
|
||||
rialto-node-charlie:
|
||||
<<: *rialto-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/rialto-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
|
||||
- --charlie
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
- --prometheus-external
|
||||
ports:
|
||||
- "10133:9933"
|
||||
- "10144:9944"
|
||||
- "10615:9615"
|
||||
|
||||
rialto-node-dave:
|
||||
<<: *rialto-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/rialto-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
|
||||
- --dave
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
ports:
|
||||
- "10233:9933"
|
||||
- "10244:9944"
|
||||
|
||||
rialto-node-eve:
|
||||
<<: *rialto-bridge-node
|
||||
entrypoint:
|
||||
- /home/user/rialto-bridge-node
|
||||
- --execution=Native
|
||||
- --chain=local
|
||||
- --bootnodes=/dns4/rialto-node-alice/tcp/30333/p2p/12D3KooWMF6JvV319a7kJn5pqkKbhR3fcM2cvK5vCbYZHeQhYzFE
|
||||
- --eve
|
||||
- --rpc-cors=all
|
||||
- --enable-offchain-indexing=true
|
||||
- --unsafe-rpc-external
|
||||
- --unsafe-ws-external
|
||||
ports:
|
||||
- "10333:9933"
|
||||
- "10344:9944"
|
||||
|
||||
rialto-chainspec-exporter:
|
||||
image: ${RIALTO_BRIDGE_NODE_IMAGE:-paritytech/rialto-bridge-node}
|
||||
entrypoint: /entrypoints/rialto-chainspec-exporter-entrypoint.sh
|
||||
volumes:
|
||||
- ./networks/entrypoints:/entrypoints
|
||||
- rialto-share:/rialto-share:z
|
||||
|
||||
# Note: These are being overridden from the top level `monitoring` compose file.
|
||||
prometheus-metrics:
|
||||
volumes:
|
||||
- ./networks/dashboard/prometheus/rialto-targets.yml:/etc/prometheus/targets-rialto-nodes.yml
|
||||
depends_on:
|
||||
- rialto-node-charlie
|
||||
|
||||
# we're using `/rialto-share` to expose Rialto chain spec to those who are interested. Right
|
||||
# now it is Rialto Parachain collator nodes. Local + tmpfs combination allows sharing writable
|
||||
# in-memory volumes, which are dropped when containers are stopped.
|
||||
volumes:
|
||||
rialto-share:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: "tmpfs"
|
||||
device: "tmpfs"
|
||||
@@ -0,0 +1,15 @@
|
||||
# nginx-proxy
|
||||
|
||||
This is a nginx reverse proxy configuration with Let's encrypt companion.
|
||||
Main purpose is to be able to use `https://polkadot.js.org/apps` to connect to
|
||||
a running network.
|
||||
|
||||
## How to?
|
||||
|
||||
In current directory:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
Then start `rialto` network with the same command (one folder up). `nginx` should
|
||||
pick up new containers being created and automatically create a proxy setup for `Charlie`.
|
||||
@@ -0,0 +1,45 @@
|
||||
version: '2'
|
||||
services:
|
||||
nginx-proxy:
|
||||
image: jwilder/nginx-proxy
|
||||
container_name: nginx-proxy
|
||||
networks:
|
||||
- nginx-proxy
|
||||
- deployments_default
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- conf:/etc/nginx/conf.d
|
||||
- vhost:/etc/nginx/vhost.d
|
||||
- html:/usr/share/nginx/html
|
||||
- dhparam:/etc/nginx/dhparam
|
||||
- certs:/etc/nginx/certs:ro
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
- acme:/etc/acme.sh
|
||||
|
||||
letsencrypt:
|
||||
image: jrcs/letsencrypt-nginx-proxy-companion
|
||||
container_name: nginx-proxy-le
|
||||
networks:
|
||||
- nginx-proxy
|
||||
volumes_from:
|
||||
- nginx-proxy
|
||||
volumes:
|
||||
- certs:/etc/nginx/certs:rw
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- acme:/etc/acme.sh
|
||||
|
||||
volumes:
|
||||
conf:
|
||||
vhost:
|
||||
html:
|
||||
dhparam:
|
||||
certs:
|
||||
acme:
|
||||
|
||||
networks:
|
||||
nginx-proxy:
|
||||
driver: bridge
|
||||
deployments_default:
|
||||
external: true
|
||||
Executable
+210
@@ -0,0 +1,210 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script used for running and updating bridge deployments.
|
||||
#
|
||||
# To deploy a network you can run this script with the name of the bridge (or multiple bridges) you want to run.
|
||||
#
|
||||
# `./run.sh westend-millau rialto-millau`
|
||||
#
|
||||
# To update a deployment to use the latest images available from the Docker Hub add the `update`
|
||||
# argument after the bridge name.
|
||||
#
|
||||
# `./run.sh rialto-millau update`
|
||||
#
|
||||
# Once you've stopped having fun with your deployment you can take it down with:
|
||||
#
|
||||
# `./run.sh rialto-millau stop`
|
||||
#
|
||||
# Stopping the bridge will also bring down all networks that it uses. So if you have started multiple bridges
|
||||
# that are using the same network (like Millau in rialto-millau and westend-millau bridges), then stopping one
|
||||
# of these bridges will cause the other bridge to break.
|
||||
|
||||
set -xeu
|
||||
|
||||
# Since the Compose commands are using relative paths we need to `cd` into the `deployments` folder.
|
||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||
|
||||
function show_help () {
|
||||
set +x
|
||||
echo " "
|
||||
echo Error: $1
|
||||
echo " "
|
||||
echo "Usage:"
|
||||
echo " ./run.sh rialto-millau [stop|update] Run Rialto <> Millau Networks & Bridge"
|
||||
echo " ./run.sh rialto-parachain-millau [stop|update] Run RialtoParachain <> Millau Networks & Bridge"
|
||||
echo " ./run.sh westend-millau [stop|update] Run Westend -> Millau Networks & Bridge"
|
||||
echo " ./run.sh everything|all [stop|update] Run all available Networks & Bridges"
|
||||
echo " "
|
||||
echo "Options:"
|
||||
echo " --no-monitoring Disable monitoring"
|
||||
echo " --no-ui Disable UI"
|
||||
echo " --local Use prebuilt local images when starting relay and nodes"
|
||||
echo " --local-substrate-relay Use prebuilt local/substrate-realy image when starting relay"
|
||||
echo " --local-rialto Use prebuilt local/rialto-bridge-node image when starting nodes"
|
||||
echo " --local-rialto-parachain Use prebuilt local/rialto-parachain-collator image when starting nodes"
|
||||
echo " --local-millau Use prebuilt local/millau-bridge-node image when starting nodes"
|
||||
echo " "
|
||||
echo "You can start multiple bridges at once by passing several bridge names:"
|
||||
echo " ./run.sh rialto-millau rialto-parachain-millau westend-millau [stop|update]"
|
||||
exit 1
|
||||
}
|
||||
|
||||
RIALTO=' -f ./networks/rialto.yml'
|
||||
RIALTO_PARACHAIN=' -f ./networks/rialto-parachain.yml'
|
||||
MILLAU=' -f ./networks/millau.yml'
|
||||
|
||||
RIALTO_MILLAU='rialto-millau'
|
||||
RIALTO_PARACHAIN_MILLAU='rialto-parachain-millau'
|
||||
WESTEND_MILLAU='westend-millau'
|
||||
|
||||
MONITORING=' -f ./monitoring/docker-compose.yml'
|
||||
UI=' -f ./ui/docker-compose.yml'
|
||||
|
||||
BRIDGES=()
|
||||
NETWORKS=''
|
||||
SUB_COMMAND='start'
|
||||
for i in "$@"
|
||||
do
|
||||
case $i in
|
||||
--no-monitoring)
|
||||
MONITORING=" -f ./monitoring/disabled.yml"
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
--no-ui)
|
||||
UI=""
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
--local)
|
||||
export SUBSTRATE_RELAY_IMAGE=local/substrate-relay
|
||||
export RIALTO_BRIDGE_NODE_IMAGE=local/rialto-bridge-node
|
||||
export RIALTO_PARACHAIN_COLLATOR_IMAGE=local/rialto-parachain-collator
|
||||
export MILLAU_BRIDGE_NODE_IMAGE=local/millau-bridge-node
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
--local-substrate-relay)
|
||||
export SUBSTRATE_RELAY_IMAGE=local/substrate-relay
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
--local-rialto)
|
||||
export RIALTO_BRIDGE_NODE_IMAGE=local/rialto-bridge-node
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
--local-rialto-parachain)
|
||||
export RIALTO_PARACHAIN_COLLATOR_IMAGE=local/rialto-parachain-collator
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
--local-millau)
|
||||
export MILLAU_BRIDGE_NODE_IMAGE=local/millau-bridge-node
|
||||
shift
|
||||
continue
|
||||
;;
|
||||
everything|all)
|
||||
BRIDGES=(${RIALTO_MILLAU:-} ${RIALTO_PARACHAIN_MILLAU:-} ${WESTEND_MILLAU:-})
|
||||
NETWORKS="${RIALTO:-} ${RIALTO_PARACHAIN:-} ${MILLAU:-}"
|
||||
unset RIALTO RIALTO_PARACHAIN MILLAU RIALTO_MILLAU RIALTO_PARACHAIN_MILLAU WESTEND_MILLAU
|
||||
shift
|
||||
;;
|
||||
rialto-millau)
|
||||
BRIDGES+=(${RIALTO_MILLAU:-})
|
||||
NETWORKS+="${RIALTO:-} ${MILLAU:-}"
|
||||
unset RIALTO MILLAU RIALTO_MILLAU
|
||||
shift
|
||||
;;
|
||||
rialto-parachain-millau)
|
||||
BRIDGES+=(${RIALTO_PARACHAIN_MILLAU:-})
|
||||
NETWORKS+="${RIALTO:-} ${RIALTO_PARACHAIN:-} ${MILLAU:-}"
|
||||
unset RIALTO RIALTO_PARACHAIN MILLAU RIALTO_PARACHAIN_MILLAU
|
||||
shift
|
||||
;;
|
||||
westend-millau)
|
||||
BRIDGES+=(${WESTEND_MILLAU:-})
|
||||
NETWORKS+=${MILLAU:-}
|
||||
unset MILLAU WESTEND_MILLAU
|
||||
shift
|
||||
;;
|
||||
start|stop|update)
|
||||
SUB_COMMAND=$i
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
show_help "Unknown option: $i"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ ${#BRIDGES[@]} -eq 0 ]; then
|
||||
show_help "Missing bridge name."
|
||||
fi
|
||||
|
||||
COMPOSE_FILES=$NETWORKS$MONITORING$UI
|
||||
|
||||
# Compose looks for .env files in the the current directory by default, we don't want that
|
||||
COMPOSE_ARGS="--project-directory ."
|
||||
# Path to env file that we want to use. Compose only accepts single `--env-file` argument,
|
||||
# so we'll be using the last .env file we'll found.
|
||||
COMPOSE_ENV_FILE=''
|
||||
|
||||
for BRIDGE in "${BRIDGES[@]}"
|
||||
do
|
||||
BRIDGE_PATH="./bridges/$BRIDGE"
|
||||
BRIDGE=" -f $BRIDGE_PATH/docker-compose.yml"
|
||||
COMPOSE_FILES=$BRIDGE$COMPOSE_FILES
|
||||
|
||||
# Remember .env file to use in docker-compose call
|
||||
if [[ -f "$BRIDGE_PATH/.env" ]]; then
|
||||
COMPOSE_ENV_FILE=" --env-file $BRIDGE_PATH/.env"
|
||||
fi
|
||||
|
||||
# Read and source variables from .env file so we can use them here
|
||||
grep -e MATRIX_ACCESS_TOKEN -e WITH_PROXY $BRIDGE_PATH/.env > .env2 && . ./.env2 && rm .env2
|
||||
if [ ! -z ${MATRIX_ACCESS_TOKEN+x} ]; then
|
||||
sed -i "s/access_token.*/access_token: \"$MATRIX_ACCESS_TOKEN\"/" ./monitoring/grafana-matrix/config.yml
|
||||
fi
|
||||
done
|
||||
|
||||
# Final COMPOSE_ARGS
|
||||
COMPOSE_ARGS="$COMPOSE_ARGS $COMPOSE_ENV_FILE"
|
||||
|
||||
# Check the sub-command, perhaps we just mean to stop the network instead of starting it.
|
||||
if [ "$SUB_COMMAND" == "stop" ]; then
|
||||
|
||||
if [ ! -z ${WITH_PROXY+x} ]; then
|
||||
cd ./reverse-proxy
|
||||
docker-compose down
|
||||
cd -
|
||||
fi
|
||||
|
||||
docker-compose $COMPOSE_ARGS $COMPOSE_FILES down
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# See if we want to update the docker images before starting the network.
|
||||
if [ "$SUB_COMMAND" == "update" ]; then
|
||||
|
||||
# Stop the proxy cause otherwise the network can't be stopped
|
||||
if [ ! -z ${WITH_PROXY+x} ]; then
|
||||
cd ./reverse-proxy
|
||||
docker-compose down
|
||||
cd -
|
||||
fi
|
||||
|
||||
|
||||
docker-compose $COMPOSE_ARGS $COMPOSE_FILES pull
|
||||
docker-compose $COMPOSE_ARGS $COMPOSE_FILES down
|
||||
docker-compose $COMPOSE_ARGS $COMPOSE_FILES build
|
||||
fi
|
||||
|
||||
docker-compose $COMPOSE_ARGS $COMPOSE_FILES up -d
|
||||
|
||||
# Start the proxy if needed
|
||||
if [ ! -z ${WITH_PROXY+x} ]; then
|
||||
cd ./reverse-proxy
|
||||
docker-compose up -d
|
||||
fi
|
||||
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"--1": "Millau Types",
|
||||
"MillauAddress": "AccountId",
|
||||
"MillauLookupSource": "AccountId",
|
||||
"MillauBalance": "u64",
|
||||
"MillauBlockHash": "H512",
|
||||
"MillauBlockNumber": "u64",
|
||||
"MillauHeader": {
|
||||
"parent_Hash": "MillauBlockHash",
|
||||
"number": "Compact<MillauBlockNumber>",
|
||||
"state_root": "MillauBlockHash",
|
||||
"extrinsics_root": "MillauBlockHash",
|
||||
"digest": "MillauDigest"
|
||||
},
|
||||
"MillauDigest": {
|
||||
"logs": "Vec<MillauDigestItem>"
|
||||
},
|
||||
"MillauDigestItem": {
|
||||
"_enum": {
|
||||
"Other": "Vec<u8>",
|
||||
"AuthoritiesChange": "Vec<AuthorityId>",
|
||||
"ChangesTrieRoot": "MillauBlockHash",
|
||||
"SealV0": "SealV0",
|
||||
"Consensus": "Consensus",
|
||||
"Seal": "Seal",
|
||||
"PreRuntime": "PreRuntime"
|
||||
}
|
||||
},
|
||||
"--2": "Rialto Types",
|
||||
"RialtoAddress": "MultiAddress",
|
||||
"RialtoLookupSource": "MultiAddress",
|
||||
"RialtoBalance": "u128",
|
||||
"RialtoBlockHash": "H256",
|
||||
"RialtoBlockNumber": "u32",
|
||||
"RialtoHeader": {
|
||||
"parent_Hash": "RialtoBlockHash",
|
||||
"number": "Compact<RialtoBlockNumber>",
|
||||
"state_root": "RialtoBlockHash",
|
||||
"extrinsics_root": "RialtoBlockHash",
|
||||
"digest": "RialtoDigest"
|
||||
},
|
||||
"RialtoDigest": {
|
||||
"logs": "Vec<RialtoDigestItem>"
|
||||
},
|
||||
"RialtoDigestItem": {
|
||||
"_enum": {
|
||||
"Other": "Vec<u8>",
|
||||
"AuthoritiesChange": "Vec<AuthorityId>",
|
||||
"ChangesTrieRoot": "RialtoBlockHash",
|
||||
"SealV0": "SealV0",
|
||||
"Consensus": "Consensus",
|
||||
"Seal": "Seal",
|
||||
"PreRuntime": "PreRuntime"
|
||||
}
|
||||
},
|
||||
"--3": "Common types",
|
||||
"AccountSigner": "MultiSigner",
|
||||
"SpecVersion": "u32",
|
||||
"RelayerId": "AccountId",
|
||||
"SourceAccountId": "AccountId",
|
||||
"ImportedHeader": {
|
||||
"header": "BridgedHeader",
|
||||
"requires_justification": "bool",
|
||||
"is_finalized": "bool",
|
||||
"signal_hash": "Option<BridgedBlockHash>"
|
||||
},
|
||||
"AuthoritySet": {
|
||||
"authorities": "AuthorityList",
|
||||
"set_id": "SetId"
|
||||
},
|
||||
"Id": "[u8; 4]",
|
||||
"ChainId": "Id",
|
||||
"LaneId": "Id",
|
||||
"MessageNonce": "u64",
|
||||
"BridgeMessageId": "(Id, u64)",
|
||||
"MessageKey": {
|
||||
"lane_id": "LaneId",
|
||||
"nonce:": "MessageNonce"
|
||||
},
|
||||
"InboundRelayer": "AccountId",
|
||||
"InboundLaneData": {
|
||||
"relayers": "Vec<UnrewardedRelayer>",
|
||||
"last_confirmed_nonce": "MessageNonce"
|
||||
},
|
||||
"UnrewardedRelayer": {
|
||||
"relayer": "RelayerId",
|
||||
"messages": "DeliveredMessages"
|
||||
},
|
||||
"DeliveredMessages": {
|
||||
"begin": "MessageNonce",
|
||||
"end": "MessageNonce",
|
||||
"dispatch_results": "BitVec"
|
||||
},
|
||||
"OutboundLaneData": {
|
||||
"oldest_unpruned_nonce": "MessageNonce",
|
||||
"latest_received_nonce": "MessageNonce",
|
||||
"latest_generated_nonce": "MessageNonce"
|
||||
},
|
||||
"MessageData": {
|
||||
"payload": "MessagePayload",
|
||||
"fee": "Fee"
|
||||
},
|
||||
"MessagePayload": "Vec<u8>",
|
||||
"BridgedOpaqueCall": "Vec<u8>",
|
||||
"OutboundMessageFee": "Fee",
|
||||
"OutboundPayload": {
|
||||
"spec_version": "SpecVersion",
|
||||
"weight": "Weight",
|
||||
"origin": "CallOrigin",
|
||||
"dispatch_fee_payment": "DispatchFeePayment",
|
||||
"call": "BridgedOpaqueCall"
|
||||
},
|
||||
"CallOrigin": {
|
||||
"_enum": {
|
||||
"SourceRoot": "()",
|
||||
"TargetAccount": "(SourceAccountId, MultiSigner, MultiSignature)",
|
||||
"SourceAccount": "SourceAccountId"
|
||||
}
|
||||
},
|
||||
"DispatchFeePayment": {
|
||||
"_enum": {
|
||||
"AtSourceChain": "()",
|
||||
"AtTargetChain": "()"
|
||||
}
|
||||
},
|
||||
"MultiSigner": {
|
||||
"_enum": {
|
||||
"Ed25519": "H256",
|
||||
"Sr25519": "H256",
|
||||
"Ecdsa": "[u8;33]"
|
||||
}
|
||||
},
|
||||
"MessagesProofOf": {
|
||||
"bridged_header_hash": "BridgedBlockHash",
|
||||
"storage_proof": "Vec<StorageProofItem>",
|
||||
"lane": "LaneId",
|
||||
"nonces_start": "MessageNonce",
|
||||
"nonces_end": "MessageNonce"
|
||||
},
|
||||
"StorageProofItem": "Vec<u8>",
|
||||
"MessagesDeliveryProofOf": {
|
||||
"bridged_header_hash": "BridgedBlockHash",
|
||||
"storage_proof": "Vec<StorageProofItem>",
|
||||
"lane": "LaneId"
|
||||
},
|
||||
"UnrewardedRelayersState": {
|
||||
"unrewarded_relayer_entries": "MessageNonce",
|
||||
"messages_in_oldest_entry": "MessageNonce",
|
||||
"total_messages": "MessageNonce"
|
||||
},
|
||||
"AncestryProof": "()",
|
||||
"MessageFeeData": {
|
||||
"lane_id": "LaneId",
|
||||
"payload": "OutboundPayload"
|
||||
},
|
||||
"Precommit": {
|
||||
"target_hash": "BridgedBlockHash",
|
||||
"target_number": "BridgedBlockNumber"
|
||||
},
|
||||
"AuthoritySignature": "[u8;64]",
|
||||
"AuthorityId": "[u8;32]",
|
||||
"SignedPrecommit": {
|
||||
"precommit": "Precommit",
|
||||
"signature": "AuthoritySignature",
|
||||
"id": "AuthorityId"
|
||||
},
|
||||
"Commit": {
|
||||
"target_hash": "BridgedBlockHash",
|
||||
"target_number": "BridgedBlockNumber",
|
||||
"precommits": "Vec<SignedPrecommit>"
|
||||
},
|
||||
"GrandpaJustification": {
|
||||
"round": "u64",
|
||||
"commit": "Commit",
|
||||
"votes_ancestries": "Vec<BridgedHeader>"
|
||||
},
|
||||
"Address": "MillauAddress",
|
||||
"LookupSource": "MillauLookupSource",
|
||||
"Fee": "MillauBalance",
|
||||
"Balance": "MillauBalance",
|
||||
"Hash": "MillauBlockHash",
|
||||
"BlockHash": "MillauBlockHash",
|
||||
"BlockNumber": "MillauBlockNumber",
|
||||
"BridgedBlockHash": "RialtoBlockHash",
|
||||
"BridgedBlockNumber": "RialtoBlockNumber",
|
||||
"BridgedHeader": "RialtoHeader",
|
||||
"Parameter": {
|
||||
"_enum": {
|
||||
"MillauToRialtoConversionRate": "u128"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"--1": "Millau Types",
|
||||
"MillauAddress": "AccountId",
|
||||
"MillauLookupSource": "AccountId",
|
||||
"MillauBalance": "u64",
|
||||
"MillauBlockHash": "H512",
|
||||
"MillauBlockNumber": "u64",
|
||||
"MillauHeader": {
|
||||
"parent_Hash": "MillauBlockHash",
|
||||
"number": "Compact<MillauBlockNumber>",
|
||||
"state_root": "MillauBlockHash",
|
||||
"extrinsics_root": "MillauBlockHash",
|
||||
"digest": "MillauDigest"
|
||||
},
|
||||
"MillauDigest": {
|
||||
"logs": "Vec<MillauDigestItem>"
|
||||
},
|
||||
"MillauDigestItem": {
|
||||
"_enum": {
|
||||
"Other": "Vec<u8>",
|
||||
"AuthoritiesChange": "Vec<AuthorityId>",
|
||||
"ChangesTrieRoot": "MillauBlockHash",
|
||||
"SealV0": "SealV0",
|
||||
"Consensus": "Consensus",
|
||||
"Seal": "Seal",
|
||||
"PreRuntime": "PreRuntime"
|
||||
}
|
||||
},
|
||||
"--2": "Rialto Types",
|
||||
"RialtoAddress": "MultiAddress",
|
||||
"RialtoLookupSource": "MultiAddress",
|
||||
"RialtoBalance": "u128",
|
||||
"RialtoBlockHash": "H256",
|
||||
"RialtoBlockNumber": "u32",
|
||||
"RialtoHeader": {
|
||||
"parent_Hash": "RialtoBlockHash",
|
||||
"number": "Compact<RialtoBlockNumber>",
|
||||
"state_root": "RialtoBlockHash",
|
||||
"extrinsics_root": "RialtoBlockHash",
|
||||
"digest": "RialtoDigest"
|
||||
},
|
||||
"RialtoDigest": {
|
||||
"logs": "Vec<RialtoDigestItem>"
|
||||
},
|
||||
"RialtoDigestItem": {
|
||||
"_enum": {
|
||||
"Other": "Vec<u8>",
|
||||
"AuthoritiesChange": "Vec<AuthorityId>",
|
||||
"ChangesTrieRoot": "RialtoBlockHash",
|
||||
"SealV0": "SealV0",
|
||||
"Consensus": "Consensus",
|
||||
"Seal": "Seal",
|
||||
"PreRuntime": "PreRuntime"
|
||||
}
|
||||
},
|
||||
"--3": "Common types",
|
||||
"AccountSigner": "MultiSigner",
|
||||
"SpecVersion": "u32",
|
||||
"RelayerId": "AccountId",
|
||||
"SourceAccountId": "AccountId",
|
||||
"ImportedHeader": {
|
||||
"header": "BridgedHeader",
|
||||
"requires_justification": "bool",
|
||||
"is_finalized": "bool",
|
||||
"signal_hash": "Option<BridgedBlockHash>"
|
||||
},
|
||||
"AuthoritySet": {
|
||||
"authorities": "AuthorityList",
|
||||
"set_id": "SetId"
|
||||
},
|
||||
"Id": "[u8; 4]",
|
||||
"ChainId": "Id",
|
||||
"LaneId": "Id",
|
||||
"MessageNonce": "u64",
|
||||
"BridgeMessageId": "(Id, u64)",
|
||||
"MessageKey": {
|
||||
"lane_id": "LaneId",
|
||||
"nonce:": "MessageNonce"
|
||||
},
|
||||
"InboundRelayer": "AccountId",
|
||||
"InboundLaneData": {
|
||||
"relayers": "Vec<UnrewardedRelayer>",
|
||||
"last_confirmed_nonce": "MessageNonce"
|
||||
},
|
||||
"UnrewardedRelayer": {
|
||||
"relayer": "RelayerId",
|
||||
"messages": "DeliveredMessages"
|
||||
},
|
||||
"DeliveredMessages": {
|
||||
"begin": "MessageNonce",
|
||||
"end": "MessageNonce",
|
||||
"dispatch_results": "BitVec"
|
||||
},
|
||||
"OutboundLaneData": {
|
||||
"oldest_unpruned_nonce": "MessageNonce",
|
||||
"latest_received_nonce": "MessageNonce",
|
||||
"latest_generated_nonce": "MessageNonce"
|
||||
},
|
||||
"MessageData": {
|
||||
"payload": "MessagePayload",
|
||||
"fee": "Fee"
|
||||
},
|
||||
"MessagePayload": "Vec<u8>",
|
||||
"BridgedOpaqueCall": "Vec<u8>",
|
||||
"OutboundMessageFee": "Fee",
|
||||
"OutboundPayload": {
|
||||
"spec_version": "SpecVersion",
|
||||
"weight": "Weight",
|
||||
"origin": "CallOrigin",
|
||||
"dispatch_fee_payment": "DispatchFeePayment",
|
||||
"call": "BridgedOpaqueCall"
|
||||
},
|
||||
"CallOrigin": {
|
||||
"_enum": {
|
||||
"SourceRoot": "()",
|
||||
"TargetAccount": "(SourceAccountId, MultiSigner, MultiSignature)",
|
||||
"SourceAccount": "SourceAccountId"
|
||||
}
|
||||
},
|
||||
"DispatchFeePayment": {
|
||||
"_enum": {
|
||||
"AtSourceChain": "()",
|
||||
"AtTargetChain": "()"
|
||||
}
|
||||
},
|
||||
"MultiSigner": {
|
||||
"_enum": {
|
||||
"Ed25519": "H256",
|
||||
"Sr25519": "H256",
|
||||
"Ecdsa": "[u8;33]"
|
||||
}
|
||||
},
|
||||
"MessagesProofOf": {
|
||||
"bridged_header_hash": "BridgedBlockHash",
|
||||
"storage_proof": "Vec<StorageProofItem>",
|
||||
"lane": "LaneId",
|
||||
"nonces_start": "MessageNonce",
|
||||
"nonces_end": "MessageNonce"
|
||||
},
|
||||
"StorageProofItem": "Vec<u8>",
|
||||
"MessagesDeliveryProofOf": {
|
||||
"bridged_header_hash": "BridgedBlockHash",
|
||||
"storage_proof": "Vec<StorageProofItem>",
|
||||
"lane": "LaneId"
|
||||
},
|
||||
"UnrewardedRelayersState": {
|
||||
"unrewarded_relayer_entries": "MessageNonce",
|
||||
"messages_in_oldest_entry": "MessageNonce",
|
||||
"total_messages": "MessageNonce"
|
||||
},
|
||||
"AncestryProof": "()",
|
||||
"MessageFeeData": {
|
||||
"lane_id": "LaneId",
|
||||
"payload": "OutboundPayload"
|
||||
},
|
||||
"Precommit": {
|
||||
"target_hash": "BridgedBlockHash",
|
||||
"target_number": "BridgedBlockNumber"
|
||||
},
|
||||
"AuthoritySignature": "[u8;64]",
|
||||
"AuthorityId": "[u8;32]",
|
||||
"SignedPrecommit": {
|
||||
"precommit": "Precommit",
|
||||
"signature": "AuthoritySignature",
|
||||
"id": "AuthorityId"
|
||||
},
|
||||
"Commit": {
|
||||
"target_hash": "BridgedBlockHash",
|
||||
"target_number": "BridgedBlockNumber",
|
||||
"precommits": "Vec<SignedPrecommit>"
|
||||
},
|
||||
"GrandpaJustification": {
|
||||
"round": "u64",
|
||||
"commit": "Commit",
|
||||
"votes_ancestries": "Vec<BridgedHeader>"
|
||||
},
|
||||
"Address": "RialtoAddress",
|
||||
"LookupSource": "RialtoLookupSource",
|
||||
"Fee": "RialtoBalance",
|
||||
"Balance": "RialtoBalance",
|
||||
"BlockHash": "RialtoBlockHash",
|
||||
"BlockNumber": "RialtoBlockNumber",
|
||||
"BridgedBlockHash": "MillauBlockHash",
|
||||
"BridgedBlockNumber": "MillauBlockNumber",
|
||||
"BridgedHeader": "MillauHeader",
|
||||
"Parameter": {
|
||||
"_enum": {
|
||||
"RialtoToMillauConversionRate": "u128"
|
||||
}
|
||||
},
|
||||
"ValidationCodeHash": "H256"
|
||||
}
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# The script generates JSON type definition files in `./deployment` directory to be used for
|
||||
# JS clients.
|
||||
#
|
||||
# It works by creating definitions for each side of the different bridge pairs we support
|
||||
# (Rialto<>Millau at the moment).
|
||||
#
|
||||
# To avoid duplication each bridge pair has a JSON file with common definitions, as well as a
|
||||
# general JSON file with common definitions regardless of the bridge pair. These files are then
|
||||
# merged with chain-specific type definitions.
|
||||
|
||||
set -eux
|
||||
|
||||
# Make sure we are in the right dir.
|
||||
cd $(dirname $(realpath $0))
|
||||
|
||||
# Create types for our supported bridge pairs (Rialto<>Millau)
|
||||
jq -s '.[0] * .[1] * .[2]' rialto-millau.json common.json rialto.json > ../types-rialto.json
|
||||
jq -s '.[0] * .[1] * .[2]' rialto-millau.json common.json millau.json > ../types-millau.json
|
||||
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"--3": "Common types",
|
||||
"AccountSigner": "MultiSigner",
|
||||
"SpecVersion": "u32",
|
||||
"RelayerId": "AccountId",
|
||||
"SourceAccountId": "AccountId",
|
||||
"ImportedHeader": {
|
||||
"header": "BridgedHeader",
|
||||
"requires_justification": "bool",
|
||||
"is_finalized": "bool",
|
||||
"signal_hash": "Option<BridgedBlockHash>"
|
||||
},
|
||||
"AuthoritySet": {
|
||||
"authorities": "AuthorityList",
|
||||
"set_id": "SetId"
|
||||
},
|
||||
"Id": "[u8; 4]",
|
||||
"ChainId": "Id",
|
||||
"LaneId": "Id",
|
||||
"MessageNonce": "u64",
|
||||
"BridgeMessageId": "(Id, u64)",
|
||||
"MessageKey": {
|
||||
"lane_id": "LaneId",
|
||||
"nonce:": "MessageNonce"
|
||||
},
|
||||
"InboundRelayer": "AccountId",
|
||||
"InboundLaneData": {
|
||||
"relayers": "Vec<UnrewardedRelayer>",
|
||||
"last_confirmed_nonce": "MessageNonce"
|
||||
},
|
||||
"UnrewardedRelayer": {
|
||||
"relayer": "RelayerId",
|
||||
"messages": "DeliveredMessages"
|
||||
},
|
||||
"DeliveredMessages": {
|
||||
"begin": "MessageNonce",
|
||||
"end": "MessageNonce",
|
||||
"dispatch_results": "BitVec"
|
||||
},
|
||||
"OutboundLaneData": {
|
||||
"oldest_unpruned_nonce": "MessageNonce",
|
||||
"latest_received_nonce": "MessageNonce",
|
||||
"latest_generated_nonce": "MessageNonce"
|
||||
|
||||
},
|
||||
"MessageData": {
|
||||
"payload": "MessagePayload",
|
||||
"fee": "Fee"
|
||||
},
|
||||
"MessagePayload": "Vec<u8>",
|
||||
"BridgedOpaqueCall": "Vec<u8>",
|
||||
"OutboundMessageFee": "Fee",
|
||||
"OutboundPayload": {
|
||||
"spec_version": "SpecVersion",
|
||||
"weight": "Weight",
|
||||
"origin": "CallOrigin",
|
||||
"dispatch_fee_payment": "DispatchFeePayment",
|
||||
"call": "BridgedOpaqueCall"
|
||||
},
|
||||
"CallOrigin": {
|
||||
"_enum": {
|
||||
"SourceRoot": "()",
|
||||
"TargetAccount": "(SourceAccountId, MultiSigner, MultiSignature)",
|
||||
"SourceAccount": "SourceAccountId"
|
||||
}
|
||||
},
|
||||
"DispatchFeePayment": {
|
||||
"_enum": {
|
||||
"AtSourceChain": "()",
|
||||
"AtTargetChain": "()"
|
||||
}
|
||||
},
|
||||
"MultiSigner": {
|
||||
"_enum": {
|
||||
"Ed25519": "H256",
|
||||
"Sr25519": "H256",
|
||||
"Ecdsa": "[u8;33]"
|
||||
}
|
||||
},
|
||||
"MessagesProofOf": {
|
||||
"bridged_header_hash": "BridgedBlockHash",
|
||||
"storage_proof": "Vec<StorageProofItem>",
|
||||
"lane": "LaneId",
|
||||
"nonces_start": "MessageNonce",
|
||||
"nonces_end": "MessageNonce"
|
||||
},
|
||||
"StorageProofItem": "Vec<u8>",
|
||||
"MessagesDeliveryProofOf": {
|
||||
"bridged_header_hash": "BridgedBlockHash",
|
||||
"storage_proof": "Vec<StorageProofItem>",
|
||||
"lane": "LaneId"
|
||||
},
|
||||
"UnrewardedRelayersState": {
|
||||
"unrewarded_relayer_entries": "MessageNonce",
|
||||
"messages_in_oldest_entry": "MessageNonce",
|
||||
"total_messages": "MessageNonce"
|
||||
},
|
||||
"AncestryProof": "()",
|
||||
"MessageFeeData": {
|
||||
"lane_id": "LaneId",
|
||||
"payload": "OutboundPayload"
|
||||
},
|
||||
"Precommit": {
|
||||
"target_hash": "BridgedBlockHash",
|
||||
"target_number": "BridgedBlockNumber"
|
||||
},
|
||||
"AuthoritySignature": "[u8;64]",
|
||||
"AuthorityId": "[u8;32]",
|
||||
"SignedPrecommit": {
|
||||
"precommit": "Precommit",
|
||||
"signature": "AuthoritySignature",
|
||||
"id": "AuthorityId"
|
||||
},
|
||||
"Commit": {
|
||||
"target_hash": "BridgedBlockHash",
|
||||
"target_number": "BridgedBlockNumber",
|
||||
"precommits": "Vec<SignedPrecommit>"
|
||||
},
|
||||
"GrandpaJustification": {
|
||||
"round": "u64",
|
||||
"commit": "Commit",
|
||||
"votes_ancestries": "Vec<BridgedHeader>"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"Address": "MillauAddress",
|
||||
"LookupSource": "MillauLookupSource",
|
||||
"Fee": "MillauBalance",
|
||||
"Balance": "MillauBalance",
|
||||
"Hash": "MillauBlockHash",
|
||||
"BlockHash": "MillauBlockHash",
|
||||
"BlockNumber": "MillauBlockNumber",
|
||||
"BridgedBlockHash": "RialtoBlockHash",
|
||||
"BridgedBlockNumber": "RialtoBlockNumber",
|
||||
"BridgedHeader": "RialtoHeader",
|
||||
"Parameter": {
|
||||
"_enum": {
|
||||
"MillauToRialtoConversionRate": "u128"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"--1": "Millau Types",
|
||||
"MillauAddress": "AccountId",
|
||||
"MillauLookupSource": "AccountId",
|
||||
"MillauBalance": "u64",
|
||||
"MillauBlockHash": "H512",
|
||||
"MillauBlockNumber": "u64",
|
||||
"MillauHeader": {
|
||||
"parent_Hash": "MillauBlockHash",
|
||||
"number": "Compact<MillauBlockNumber>",
|
||||
"state_root": "MillauBlockHash",
|
||||
"extrinsics_root": "MillauBlockHash",
|
||||
"digest": "MillauDigest"
|
||||
},
|
||||
"MillauDigest": {
|
||||
"logs": "Vec<MillauDigestItem>"
|
||||
},
|
||||
"MillauDigestItem": {
|
||||
"_enum": {
|
||||
"Other": "Vec<u8>",
|
||||
"AuthoritiesChange": "Vec<AuthorityId>",
|
||||
"ChangesTrieRoot": "MillauBlockHash",
|
||||
"SealV0": "SealV0",
|
||||
"Consensus": "Consensus",
|
||||
"Seal": "Seal",
|
||||
"PreRuntime": "PreRuntime"
|
||||
}
|
||||
},
|
||||
"--2": "Rialto Types",
|
||||
"RialtoAddress": "MultiAddress",
|
||||
"RialtoLookupSource": "MultiAddress",
|
||||
"RialtoBalance": "u128",
|
||||
"RialtoBlockHash": "H256",
|
||||
"RialtoBlockNumber": "u32",
|
||||
"RialtoHeader": {
|
||||
"parent_Hash": "RialtoBlockHash",
|
||||
"number": "Compact<RialtoBlockNumber>",
|
||||
"state_root": "RialtoBlockHash",
|
||||
"extrinsics_root": "RialtoBlockHash",
|
||||
"digest": "RialtoDigest"
|
||||
},
|
||||
"RialtoDigest": {
|
||||
"logs": "Vec<RialtoDigestItem>"
|
||||
},
|
||||
"RialtoDigestItem": {
|
||||
"_enum": {
|
||||
"Other": "Vec<u8>",
|
||||
"AuthoritiesChange": "Vec<AuthorityId>",
|
||||
"ChangesTrieRoot": "RialtoBlockHash",
|
||||
"SealV0": "SealV0",
|
||||
"Consensus": "Consensus",
|
||||
"Seal": "Seal",
|
||||
"PreRuntime": "PreRuntime"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"Address": "RialtoAddress",
|
||||
"LookupSource": "RialtoLookupSource",
|
||||
"Fee": "RialtoBalance",
|
||||
"Balance": "RialtoBalance",
|
||||
"BlockHash": "RialtoBlockHash",
|
||||
"BlockNumber": "RialtoBlockNumber",
|
||||
"BridgedBlockHash": "MillauBlockHash",
|
||||
"BridgedBlockNumber": "MillauBlockNumber",
|
||||
"BridgedHeader": "MillauHeader",
|
||||
"Parameter": {
|
||||
"_enum": {
|
||||
"RialtoToMillauConversionRate": "u128"
|
||||
}
|
||||
},
|
||||
"ValidationCodeHash": "H256"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
# bridges-ui
|
||||
|
||||
This is a Bridges UI docker configuration file. The source of the Bridges UI code
|
||||
can be found in [the repository](https://github.com/paritytech/parity-bridges-ui).
|
||||
The CI should create and publish a docker image that is used by this configuration
|
||||
file, so that the code is always using the latest version.
|
||||
The UI is configured to point to local Rialto and Millau nodes to retrieve the require
|
||||
data.
|
||||
|
||||
This image can be used together with `nginx-proxy` to expose the UI externally. See
|
||||
`VIRTUAL_*` and `LETSENCRYPT_*` environment variables.
|
||||
|
||||
After start the UI is available at `http://localhost:8080`
|
||||
|
||||
## How to?
|
||||
|
||||
In current directory:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
Then start `rialto` & `millau` networks with the same command (one folder up) or
|
||||
run the full setup by using `../run.sh` script.
|
||||
@@ -0,0 +1,13 @@
|
||||
version: '3.5'
|
||||
services:
|
||||
bridges-ui:
|
||||
image: paritytech/parity-bridges-ui
|
||||
environment:
|
||||
VIRTUAL_HOST: ui.brucke.link
|
||||
VIRTUAL_PORT: 80
|
||||
LETSENCRYPT_HOST: ui.brucke.link
|
||||
LETSENCRYPT_EMAIL: admin@parity.io
|
||||
CHAIN_1_SUBSTRATE_PROVIDER: ${UI_CHAIN_1:-ws://localhost:9944}
|
||||
CHAIN_2_SUBSTRATE_PROVIDER: ${UI_CHAIN_2:-ws://localhost:19944}
|
||||
ports:
|
||||
- "8080:80"
|
||||
Reference in new issue
Block a user