@@ -31,5 +31,11 @@ namespace Nethermind.TxPool
         
         [Description("Number of known pending transactions.")]
         public static long PendingTransactionsKnown { get; set; }
+        
+        [Description("Ratio of discovered transactions in the block")]
+        public static float DarkPoolRatio { get; set; }
+        
+        [Description("Ratio of previously known transactions in the block")]
+        public static float OpenPoolRatio { get { return 1 - DarkPoolRatio; } }
     }
 }
//  Copyright (c) 2021 Demerzel Solutions Limited
//  This file is part of the Nethermind library.
// 
//  The Nethermind library is free software: you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
// 
//  The Nethermind library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//  GNU Lesser General Public License for more details.
// 
//  You should have received a copy of the GNU Lesser General Public License
//  along with the Nethermind. If not, see <http://www.gnu.org/licenses/>.

using System.ComponentModel;

namespace Nethermind.TxPool
{
    public static class Metrics
    {
        [Description("Number of pending transactions broadcasted to peers.")]
        public static long PendingTransactionsSent { get; set; }
        
        [Description("Number of pending transactions received from peers.")]
        public static long PendingTransactionsReceived { get; set; }
        
        [Description("Number of pending transactions received that were ignored.")]
        public static long PendingTransactionsDiscarded { get; set; }
        
        [Description("Number of known pending transactions.")]
        public static long PendingTransactionsKnown { get; set; }
    }
}

We can calculate OpenPoolRatio on grafana side, we can drop it here.