# Grafana and Prometheus for Namada
## enable Prometheus metrics on cometbft config
find ~/.local/ -type f -iname '*.toml' | xargs grep -rns 'prome'
## you will see `prometheus = false` by default
Just make sure to set that to true and the `namespace = "namada_tm"`
nano and edit all resulting files to make prometheus = true
```
prometheus = true
prometheus_listen_addr = ":26660"
max_open_connections = 3
namespace = "namada_tm"
```
## restart the validator then test the metrics endpoint
`curl -s localhost:26660`
# Grafana for Validator and VFN
## make a key for grafana
```
cd ~
nano ~/grafana-pub-key.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Hostname:
Version: Hockeypuck 2.1.0-166-geb2a11b
xsBNBFiHXVIBCADr3VDEAGpq9Sg/xrPVu1GGqWGXdbnTbbNKeveCtFHZz7/GSATW
iwiY1skvlAOBiIKCqJEji0rZZgd8WxuhdfugiCBk1hDTMWCpjI0P+YymV77jHjYB
jHrKNlhb+aLjEd9Gf2EtbKUT1fvGUkzlVrcRGSX/XR9MBZlgja7NIyuVbn3uwZQ4
jflWSNSlvMpohNxTFkrBFTRrCJXhbDLfCS46+so22CP3+1VQyqJ7/6RWK9v9KYdS
AVNgILXMggSrMqha4WA1a/ktczVQXNtP8IuPxTdp9pNYsklOTmrFVeq3mXsvWh9Q
lIhpYHIZlTZ5wVBq4wTRchsXC5MubIhz+ASDABEBAAHNGkdyYWZhbmEgPGluZm9A
Z3JhZmFuYS5jb20+wsB4BBMBAgAiBQJYh11SAhsDBgsJCAcDAgYVCAIJCgsEFgID
AQIeAQIXgAAKCRCMjDTFJAmMthxJB/9Id6JrwqRkJW+eSBb71FGQmRsJvNFR8J+3
NPVhJNkTFFOM7TnjAMUIv+LYEURqGcceTNAN1aHq/7n/8ybXucCS0CnDYyNYpyVs
tWJ3FOQK3jPrmziDCWPQATqMM/Z2auXVFWrDFqfh2xKZNjuix0w2nyuWB8U0CG2U
89w+ksPJblGGU5xLPPzDQoAqyZXY3gpGGTkCuohMq2RWYbp/QJSQagYhQkKZoJhr
XJlnw4At6R1A5UUPzDw6WJqMRkGrkieE6ApIgf1vZSmnLRpXkqquRTAEyGT8Pugg
ee6YkD19/LK6ED6gn32StY770U9ti560U7oRjrOPK/Kjp4+qBtkQzsBNBFiHXVIB
CACz4hO1g/4fKO9QWLcbSWpB75lbNgt1kHXP0UcW8TE0DIgqrifod09lC85adIz0
zdhs+00lLqckM5wNbp2r+pd5rRaxOsMw2V+c/y1Pt3qZxupmPc5l5lL6jzbEVR9g
ygPaE+iabTk9Np2OZQ7Qv5gIDzivqK2mRHXaHTzoQn2dA/3xpFcxnen9dvu7LCpA
CdScSj9/UIRKk9PHIgr2RJhcjzLx0u1PxN9MEqfIsIJUUgZOoDsr8oCs44PGGIMm
cK1CKALLLiC4ZM58B56jRyXo18MqB6VYsC1X9wkcIs72thL3tThXO70oDGcoXzoo
ywAHBH63EzEyduInOhecDIKlABEBAAHCwF8EGAECAAkFAliHXVICGwwACgkQjIw0
xSQJjLbWSwf/VIM5wEFBY4QLGUAfqfjDyfGXpcha58Y24Vv3n6MwJqnCIbTAaeWf
30CZ/wHg3NNIMB7I31vgmMOEbHQdv0LPTi9TG205VQeehcpNtZRZQ0D8TIetbxyi
Emmn9osig9U3/7jaAWBabE/9bGx4TF3eLlEH9wmFrNYeXvgRqmyqVoqhIMCNAAOY
REYyHyy9mzr9ywkwl0aroBqhzKIPyFlatZy9oRKllY/CCKO9RJy4DZidLphuwzqU
ymdQ1sqe5nKvwG5GvcncPc3O7LMevDBWnpNNkgERnVxCqpm90TuE3ONbirnU4+/S
tUsVU1DERc1fjOCnAm4pKIlNYphISIE7OQ==
=cBRo
-----END PGP PUBLIC KEY BLOCK-----
```
## set up the grafana key and install the grafana and prometheus packages
```
sudo apt-key add grafana-pub-key.txt
sudo apt-get install software-properties-common
sudo apt-get update
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
curl https://packages.grafana.com/gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install grafana
sudo apt-get install -y prometheus prometheus-node-exporter prometheus-pushgateway prometheus-alertmanager
```
## make sure the prometheus config is set to scrape the Namada metrics port
`sudo nano /etc/prometheus/prometheus.yml`
With the contents:
```
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
external_labels:
monitor: 'example'
alerting:
alertmanagers:
- static_configs:
- targets: ['localhost:9093']
rule_files:
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 5s
scrape_timeout: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: "namada"
scrape_interval: 5s
metrics_path: /
static_configs:
- targets: ['localhost:26660']
```
## give Grafana and Prometheus a kick and make sure it fires up
```
sudo chown -R prometheus:prometheus /usr/bin/prometheus
sudo chmod 777 /var/lib/prometheus/metrics2
sudo pkill -f prometheus
sudo pkill -f grafana
sudo systemctl daemon-reload
sudo systemctl enable grafana-server
sudo systemctl start grafana-server
sudo systemctl enable prometheus
sudo systemctl start prometheus
sudo systemctl enable prometheus-node-exporter
sudo systemctl start prometheus-node-exporter
sudo systemctl enable prometheus-pushgateway
sudo systemctl start prometheus-pushgateway
sudo systemctl enable prometheus-alertmanager
sudo systemctl start prometheus-alertmanager
ps -ef | grep grafana
sudo systemctl enable prometheus
sudo systemctl start prometheus
ps -ef | grep prometheus
```
## set Grafana pwd and login for the admin user
sudo grafana-cli admin reset-admin-password pickapasswordthatworksforyou
## check your grafana instance
# http://you.node.ip.addy:3000/
# import the Namada Validator Grafana Template
## you will need to set up a prometheus datasource
Just click add Prometheus datasource and add `http://localhost:9090` at the top and hit save at the bottom for a green toast message.
# import dash (make sure to adjust the values for your validator and the correct main/testnet)
```
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "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": "",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 18401,
"graphTooltip": 0,
"id": 4,
"links": [],
"liveNow": false,
"panels": [
{
"collapsed": false,
"datasource": {
"type": "loki",
"uid": "l2N9Iwb4z"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 64,
"panels": [],
"targets": [
{
"datasource": {
"type": "loki",
"uid": "l2N9Iwb4z"
},
"refId": "A"
}
],
"title": "$chain_id overview",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "locale"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 1
},
"hideTimeOverride": false,
"id": 4,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_latest_block_height{chain_id=\"$chain_id\"}",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "30s",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Block Height",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "locale"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 1
},
"hideTimeOverride": false,
"id": 40,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_total_txs{chain_id=\"$chain_id\"}",
"format": "time_series",
"interval": "30s",
"intervalFactor": 1,
"range": true,
"refId": "A"
}
],
"title": "Total Transactions",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 2,
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 1
},
"hideTimeOverride": true,
"id": 39,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_block_interval_seconds_count{chain_id=\"$chain_id\"}",
"format": "time_series",
"interval": "30s",
"intervalFactor": 1,
"range": true,
"refId": "A"
}
],
"timeFrom": "1h",
"title": "Avg Block Time",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 1
},
"hideTimeOverride": false,
"id": 47,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_validator_power{chain_id=\"$chain_id\", validator_address=\"$validator\"}",
"format": "time_series",
"instant": false,
"interval": "30s",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Bonded Tokens",
"type": "stat"
},
{
"aliasColors": {
"Height for last 3 hours": "#447ebc",
"Total Transactions for last 3 hours": "#ef843c"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"decimals": 0,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 3,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 5
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 15,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sideWidth": 350,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_validators{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Active",
"refId": "A"
},
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_missing_validators{chain_id=\"$chain_id\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Missing",
"range": true,
"refId": "B"
},
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_byzantine_validators{chain_id=\"$chain_id\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Byzantine",
"range": true,
"refId": "C"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Validators",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "locale",
"label": "",
"logBase": 1,
"min": "0",
"show": true
},
{
"format": "none",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {
"Height for last 3 hours": "#447ebc",
"Total Transactions for last 3 hours": "#ef843c"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 3,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 5
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 48,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": true,
"min": true,
"rightSide": false,
"show": true,
"sideWidth": 350,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_validators_power{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Online",
"refId": "A"
},
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_missing_validators_power{chain_id=\"$chain_id\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Missing",
"range": true,
"refId": "B"
},
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_byzantine_validators_power{chain_id=\"$chain_id\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Byzantine",
"range": true,
"refId": "C"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Voting Power",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": "",
"logBase": 1,
"min": "0",
"show": true
},
{
"format": "none",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {
"Height for last 3 hours": "#447ebc",
"Total Transactions for last 3 hours": "#ef843c"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 3,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 14
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 49,
"legend": {
"alignAsTable": false,
"avg": true,
"current": false,
"max": true,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_block_size_bytes{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Block Size",
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Block Size",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 2,
"format": "bytes",
"label": "",
"logBase": 1,
"min": "0",
"show": true
},
{
"format": "none",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {
"Height for last 3 hours": "#447ebc",
"Total Transactions for last 3 hours": "#ef843c"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"decimals": 0,
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 3,
"fillGradient": 0,
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 14
},
"hiddenSeries": false,
"hideTimeOverride": false,
"id": 50,
"legend": {
"alignAsTable": false,
"avg": true,
"current": false,
"max": true,
"min": false,
"rightSide": false,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_consensus_num_txs{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 1,
"legendFormat": "Transactions",
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Transactions",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "time",
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 0,
"format": "short",
"label": "",
"logBase": 1,
"min": "0",
"show": true
},
{
"format": "none",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"collapsed": false,
"datasource": {
"type": "loki",
"uid": "l2N9Iwb4z"
},
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 19
},
"id": 55,
"panels": [],
"repeat": "instance",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "l2N9Iwb4z"
},
"refId": "A"
}
],
"title": "instance overview: $instance",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"max": 20,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#e24d42",
"value": null
},
{
"color": "#ef843c",
"value": 2
},
{
"color": "#7eb26d",
"value": 5
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 0,
"y": 20
},
"hideTimeOverride": true,
"id": 53,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_p2p_peers{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": true,
"interval": "30s",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Connected Peers",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"max": 50,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#7eb26d",
"value": null
},
{
"color": "#ef843c",
"value": 10
},
{
"color": "#e24d42",
"value": 20
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 6,
"y": 20
},
"hideTimeOverride": true,
"id": 56,
"links": [],
"options": {
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_mempool_size{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": true,
"interval": "30s",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Unconfirmed Transactions",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 20
},
"hideTimeOverride": true,
"id": 60,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_mempool_failed_txs{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": true,
"interval": "30s",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Failed Transactions",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 0,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "locale"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 20
},
"hideTimeOverride": true,
"id": 61,
"links": [],
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"textMode": "auto"
},
"pluginVersion": "10.0.3",
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_mempool_recheck_times{chain_id=\"$chain_id\"}",
"format": "time_series",
"instant": true,
"interval": "30s",
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Recheck Times",
"type": "stat"
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 24
},
"hiddenSeries": false,
"id": 59,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": false,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_p2p_peer_receive_bytes_total{chain_id=\"$chain_id\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{peer_id}}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Total Network Input",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "series",
"show": false,
"values": [
"current"
]
},
"yaxes": [
{
"format": "bytes",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "$DS"
},
"fieldConfig": {
"defaults": {
"links": []
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 24
},
"hiddenSeries": false,
"id": 58,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": false,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "10.0.3",
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"datasource": {
"uid": "$DS"
},
"editorMode": "code",
"expr": "namada_tm_p2p_peer_send_bytes_total{chain_id=\"$chain_id\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{peer_id}}",
"range": true,
"refId": "A"
}
],
"thresholds": [],
"timeRegions": [],
"title": "Total Network Output",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"mode": "series",
"show": false,
"values": [
"current"
]
},
"yaxes": [
{
"format": "bytes",
"logBase": 1,
"show": true
},
{
"format": "short",
"logBase": 1,
"show": false
}
],
"yaxis": {
"align": false
}
}
],
"refresh": "5s",
"schemaVersion": 38,
"style": "dark",
"tags": [
"Blockchain",
"Namada"
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "Prometheus",
"value": "Prometheus"
},
"hide": 0,
"includeAll": false,
"label": "Datasource",
"multi": false,
"name": "DS",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": true,
"text": "public-testnet-12.fedec12f3428",
"value": "public-testnet-12.fedec12f3428"
},
"hide": 0,
"label": "Chain ID",
"name": "chain_id",
"options": [
{
"selected": true,
"text": "public-testnet-12.fedec12f3428",
"value": "public-testnet-12.fedec12f3428"
}
],
"query": "public-testnet-12.fedec12f3428",
"skipUrlSync": false,
"type": "textbox"
},
{
"allValue": "",
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"uid": "$DS"
},
"definition": "label_values(tendermint_consensus_height{chain_id=\"$chain_id\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "Instance",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(tendermint_consensus_height{chain_id=\"$chain_id\"}, instance)",
"refId": "Prometheus-instance-Variable-Query"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": true,
"text": "yourvalidatoraccount",
"value": "yourvalidatoraccount"
},
"hide": 0,
"name": "validator",
"options": [
{
"selected": true,
"text": "yourvalidatoraccount",
"value": "yourvalidatoraccount"
}
],
"query": "yourvalidatoraccount",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "Namada",
"uid": "UJyurCTWz",
"version": 6,
"weekStart": ""
}
```