fold needs-login gauge into a snapshot registrar, fix doc wording
This commit is contained in:
parent
9043be4a61
commit
790975ac8d
2 changed files with 8 additions and 3 deletions
|
|
@ -354,7 +354,7 @@ filters those series out and the host dashboard's top-10 panels group by
|
|||
| `hyperhive.container.cpu.percent` | `%` | gauge | host-normalised percent (custom — no `rate()` needed) |
|
||||
| `hyperhive.agent.unrestricted_internet` | `1` | gauge | the agent's `unrestricted_internet` flag in the swarm permissions this hive last read: `1` on, `0` off; a flag never set reads `1`. Omitted while the stored permissions file is unreadable |
|
||||
| `hyperhive.agent.closure_pullable` | `1` | gauge | `1` when this hive can fetch the agent's latest closure from the swarm's binary cache and verify its signature, else `0` with a `reason` label (`no-record`, `not-cached`, `no-credentials`, `fetch-failed`, `bad-signature`; see [the builder docs](../swarm/builder.md#what-hives-do-with-the-cache)). Omitted before the first probe pass, every 5 minutes |
|
||||
| `hyperhive.agent.needs_login` | `1` | gauge | `1` when a running agent needs a claude login (the dashboard's needs-login flag), `0` when it is logged in. Omitted for a stopped agent and before the first container scan |
|
||||
| `hyperhive.agent.needs_login` | `1` | gauge | `1` when a running agent needs a claude login (the dashboard's needs-login flag), `0` when it has a login. Omitted for a stopped agent and before the first container scan |
|
||||
|
||||
The `hyperhive.`-prefixed metrics have no semconv equivalent (memory
|
||||
limit + peak, on-disk footprint, and an instantaneous cpu percent kept
|
||||
|
|
|
|||
|
|
@ -258,11 +258,16 @@ fn register_instruments(provider: &SdkMeterProvider, snapshot: Arc<Mutex<Vec<Con
|
|||
})
|
||||
.build();
|
||||
|
||||
register_closure_pullable(&meter);
|
||||
register_needs_login(&meter);
|
||||
register_snapshot_gauges(&meter);
|
||||
register_hive_instruments(&meter);
|
||||
}
|
||||
|
||||
/// The per-agent gauges that read hive-c0re state rather than a container sample.
|
||||
fn register_snapshot_gauges(meter: &opentelemetry::metrics::Meter) {
|
||||
register_closure_pullable(meter);
|
||||
register_needs_login(meter);
|
||||
}
|
||||
|
||||
/// 1 when this hive can fetch the agent's latest closure from the swarm's
|
||||
/// cache and verify its signature, else 0 with the `reason` it cannot. Nothing
|
||||
/// is reported until the first probe pass has run.
|
||||
|
|
|
|||
Loading…
Reference in a new issue