Dog55
30 August 2022 22:37
1
after I complete my upgrade to 1.35.3 I realized my grafana console not show me any more this 4 values.
cardano_node_metrics_txsInMempool_int
cardano_node_metrics_density_real
rts_gc_max_bytes_used
cardano_node_metrics_epoch_int
any one else had the same problem?
I encountered no change related to those four metrics displaying with Cardano Node 1.35.3 installed.
What values does ekg display for those metrics?
# Monitoring a Node with EKG
This tutorial assumes that you have installed `cardano-node` as explained [here](../getting-started/install.md).
1. For security reasons, EKG can normally only be used to monitor a node
running on the local machine.
In order to monitor a node running on an AWS instance, we must work around this.
We will use port forwarding in this tutorial: When we use Open SSL to connect to our instance,
we can forward port 8080 on our local machine to port 12788 on the AWS instance as follows:
ssh -L 8080:127.0.0.1:12788 -i <key-file> ec2-user@<domain>
2. On the AWS instance we change into the `cardano-node` folder again and delete the database-folder and the log-folder:
cd cardano-node
rm -rf db
rm -rf logs
3. When we first started the node, we used the provided script `scripts/mainnet.sh`.
This file has been truncated. show original
If ekg displays values for the metrics correctly, then is Prometheus serving the metrics?
If Prometheus is serving the metrics, then the issue may be with the Grafana dashboard configuration.
CHG
os11k
1 September 2022 12:04
3
I agree with @ParadoxicalSphere
I do run 1.35.3 on all my environments(legacy-testnet, pre-prod & mainnet) and I do have all those metrics
First step for troubleshooting would be on your cardano node(Assuming you are using default 12798 for exporting metrics from your node):
curl -s localhost:12798/metrics | grep cardano_node_metrics_txsInMempool_int
curl -s localhost:12798/metrics | grep cardano_node_metrics_density_real
curl -s localhost:12798/metrics | grep rts_gc_max_bytes_used
curl -s localhost:12798/metrics | grep cardano_node_metrics_epoch_int
You should see something like that, if those metrics are being exported by your node
If you don’t see those metrics, as shown above, then probably it is disabled in your config file, check TraceMempool and other configuration…
If you see them with grep, then you need to check why those metrics is not in your grafana, so maybe your dashboards are broken or check if those metrics exists at all using Grafana => Explore
Froge
6 October 2022 14:20
4
I have the same issue. And what if the grep command returns nothing ?? My dashboard seems fine, i can see all the metrics apart from a handful.
Is it a problem with the node install or the node exporter?
os11k
6 October 2022 14:45
5
Hi @Froge !
I would assume your config.json
doesn’t have some metrics enabled, just check your config.json
and enable metrics what you need.
Froge
6 October 2022 14:49
6
Nothig has cjanged from before. The metrics just dropped off once i updated to 1.35.3.
What is the easiest way to check that a relay is operating as a bp?
Froge
6 October 2022 14:52
7
The important ones like kes expiry and missed slots are the ones missing fyi. Makes me think its not running as a bp.
os11k
6 October 2022 15:21
8
If you run ps -ax | grep cardano
what you see?
Probably you should see something like this on BP:
/usr/local/bin/cardano-node run +RTS -N -A16m -qg -qb -RTS --topology /config/testnet-topology.json --database-path /data/db --socket-path /ipc/node.socket --host-addr 0.0.0.0 --port 3001 --config /config/testnet-config.json --shelley-kes-key /config/kes.skey --shelley-vrf-key /config/vrf.skey --shelley-operational-certificate /config/node.cert
and on relay:
/usr/local/bin/cardano-node run +RTS -N -A16m -qg -qb -RTS --topology /config/testnet-topology.json --database-path /data/db --socket-path /ipc/node.socket --host-addr 0.0.0.0 --port 3001 --config /config/testnet-config.json
As you can see relay doesn’t have flags with keys and cert