---
# System prepended metadata

title: LnMetrics in ln-dashboard

---

# LnMetrics in ln-dashboard

**1. Uptime of a particular node**
   This can be displayed using bar graphs with up_time on y-axis and the days on x-axis

```
query {
    getMetricOneResult(network: "", node_id: "") {
	up_time {
          one_day
          ten_days
          thirty_days
          six_months
        }
    } 
}
```
**2. Forwards_rating of a particular node.**
   Each metric(one_day, ten_days, etc) can be displayed in the form of a pie chart with three values (success, failure and internal_failure) 
   
   NOTE: The values are not adding upto 100, they can be around 99 or 98 as well
```
query {
    getMetricOneResult(network: "", node_id: "") {
    forwards_rating {
      one_day {
        success,
        failure,
        internal_failure
      }
      ten_days {
        success,
        failure
        internal_failure
      }
      thirty_days {
        success,
        failure
        internal_failure
      }
      six_months {
        success,
        failure
        internal_failure
      }
    }
  } 
}
```

These above two can be repeated for different channels.

3. `upward_rating` for different channels that would be done using line graph with various channels(different lines with colours)
4. `forwards_rating` -> radar


**NOTE:**

```
channels_info {
        direction
      }
```
 
 5. for all the channels, we can have capacity on the y-axis and the node_id on the x-axis.

```
query {
    getMetricOneResult(network: "", node_id: "") {
     channels_info {
        node_id
        capacity
      }
  } 
}
```

6. for all the channels, we can have fee(base or msat) on the y-axis and the node_id on the x-axis. - WAIT


**30 July: issues to be open**

* 1. ~~last_update for channel (server)~~
* 2. ~~I have to check for fake data if there is an issue(server)~~
* 3. ~~forwards_rating dont add upto 100(server)~~
* 4. ~~cool to add location (.rfc)~~
* 5. incoming and outcoming (.rfc) -> mentor has to check if the words are correct?
**typos**
 INCOOMING -> INCOMING
 OUTCOMING -> OUTGOING

**Topic to be researched**
Bar chart with line - Update: cna be done
remove other lines when clicked on one line