user5015: I'm running the stake pool and want to know the delegators count and total amount of ADA delegated to my pool.
Is there a way to do that from my producer/relay node using cardano-cli?
I know this info can be obtained from resources like https://adapools.org/, but is there any internal statistics that provide such details (e.g. for my monitoring tools to fetch)

user2629: you can obtain a snapshot information using the cardano-cli:
cardano-cli query stake-snapshot --stake-pool-id POOL_ID --mainnet

which returns the following
{
"poolStakeGo": 12016106401607,
"activeStakeGo": 14925992640911949,
"activeStakeMark": 14854196369191645,
"poolStakeMark": 12021194972631,
"activeStakeSet": 14853022119978909,
"poolStakeSet": 12018867311903

}
Go - 2 epochs ago
Set - 1 epoch ago
Mark - snapshot for the current epoch
To get the more detailed information about the delegator count you'd need to query cardano-db-sync

5015: <p>I'm running the stake pool and want to know the delegators count and total amount of ADA delegated to my pool.
Is there a way to do that from my producer/relay node using <code>cardano-cli</code>?
I know this info can be obtained from resources like <a href="https://adapools.org/" rel="nofollow noreferrer">https://adapools.org/</a>, but is there any internal statistics that provide such details (e.g. for my monitoring tools to fetch)</p>
 2629: <p>you can obtain a snapshot information using the <code>cardano-cli</code>:</p>
<pre><code>cardano-cli query stake-snapshot --stake-pool-id POOL_ID --mainnet
</code></pre>
<p>which returns the following</p>
<pre><code>{
&quot;poolStakeGo&quot;: 12016106401607,
&quot;activeStakeGo&quot;: 14925992640911949,
&quot;activeStakeMark&quot;: 14854196369191645,
&quot;poolStakeMark&quot;: 12021194972631,
&quot;activeStakeSet&quot;: 14853022119978909,
&quot;poolStakeSet&quot;: 12018867311903
</code></pre>
<p>}</p>
<p><code>Go</code> - 2 epochs ago</p>
<p><code>Set</code> - 1 epoch ago</p>
<p><code>Mark</code> - snapshot for the current epoch</p>
<p>To get the more detailed information about the delegator count you'd need to query <code>cardano-db-sync</code></p>
