GetOverview
const url = 'https://example.com/hopbox.admin.v1.MonitorService/GetOverview';const options = { method: 'POST', headers: { 'Connect-Protocol-Version': '1', 'Connect-Timeout-Ms': '1000', 'Content-Type': 'application/json' }, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/hopbox.admin.v1.MonitorService/GetOverview \ --header 'Connect-Protocol-Version: 1' \ --header 'Connect-Timeout-Ms: 1000' \ --header 'Content-Type: application/json' \ --data '{}'GetOverview returns the state of the whole install: its nodes, its machines, the pending accounts, the events of the last 24 hours, and a health line for each part of hopbox.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Define the version of the Connect protocol
Define the version of the Connect protocol
Example
1Define the timeout, in ms
Define the timeout, in ms
Example
1000Request Bodyrequired
Section titled “Request Bodyrequired”GetOverviewRequest has no fields.
object
Example generated
{}Responses
Section titled “Responses”Success
GetOverviewResponse is the state of the install, from the newest samples of the history.
object
Sample_time is the time of the newest sample of the leader. It is absent while the history has none, such as in the first minute after the start of the control role. The counts of the leader are 0 then.
Nodes counts the servers with the node role that are not decommissioned (hopbox_server_vcpus).
Vcpus is the vCPU capacity of every node, with the overcommit of placement.
Vcpus_allocated is the vCPUs of the machines that hold compute on the nodes.
Memory_bytes is the RAM of every node.
Memory_allocated_bytes is the RAM of the machines that hold compute on the nodes.
Machines counts the machines by current state (hopbox_machines). A state without a machine is absent.
MachineStateCount is the number of machines in one state.
object
Pending_accounts counts the accounts that wait for the approval of an instance admin.
Oldest_pending is the age of the oldest pending account, or 0 without one.
Public_urls counts the machines with a public URL.
Suspended_orgs counts the suspended orgs, personal and team.
Last_day counts the events of the last 24 hours.
object
Sign_ups counts the new accounts that were not refused (hopbox_account_creations_total).
Org_creations counts the new orgs (hopbox_audit_entries_total, action org.create).
Api_key_creations counts the new API keys of every kind (hopbox_api_key_creations_total).
Urls_made_public counts the changes of the visibility of a machine URL from private to public, from the audit log of the control store, because no metric names the visibility. url_changes counts them too.
Rate_limited counts the requests that a rate limit refused (hopbox_rate_limited_total).
Limit_refusals counts the calls that an org limit refused (hopbox_limit_refusals_total).
Api_errors counts the API calls that ended with the code internal, unavailable, unknown, or data_loss (hopbox_api_calls_total).
Executor_failures counts the failed actions of the executors of the nodes (hopbox_executor_actions_total, result failed).
Url_changes counts the changes of the port and the visibility of machine URLs (hopbox_audit_entries_total, actions machine.set_url_port and machine.set_url_visibility), as the alert HopboxURLChurn counts them.
Health holds one line for each HealthArea, in the order of the enum.
HealthLine is the health of one part of hopbox, from the checks of the alerts of the monitoring bundle that the history can run.
object
Problems name each problem that a check found, one line each, the worst first. It is empty when the state is HEALTH_STATE_OK.
Busy_machines are the running machines that used 90% or more of their vCPUs over the last 30 minutes, the busiest first. The alert HopboxMachineCPUSustained fires when this lasts 2 hours.
MachineUse is what a running machine uses, from the series of its node.
object
Machine_id is the ID of the machine.
Name is the name of the machine.
Org_id is the ID of the org of the machine.
Org_name is the name of the org. It is empty when the org is gone.
Owner_email is the first email of the first owner of the org, to tell the person.
Size is the name of the size of the machine.
Vcpus is the vCPUs of the size.
Memory_bytes is the RAM of the size.
Disk_bytes is the disk of the size.
Server_id is the ID of the node of the machine. It is empty when the node took the sample before its enrollment.
Url_visibility is the visibility of the URL of the machine. It is unspecified when the machine is gone from the control store.
Cpu_share_5m is the share of its vCPUs that the machine used in the last 5 minutes. 1 is every vCPU all the time.
Cpu_share_30m is the same share over the last 30 minutes. It is absent until the samples of the machine cover the 30 minutes, such as for a machine that started 10 minutes ago.
Cpu_share_1h is the same share over the last hour, absent until the samples cover the hour.
Cpu_history is the share of its vCPUs that the machine used in each 30 minutes of the last 24 hours. ListTopMachines fills it. A step in which the machine did not run has no point.
SamplePoint is a value of a trend at one time.
object
Time is the end of the step of the value.
Memory_used_bytes is the host RAM that the machine holds now (hopbox_machine_memory_bytes).
Disk_used_bytes is the bytes that the sparse disk file of the machine holds now (hopbox_machine_disk_bytes).
Egress_bytes is the bytes that the machine sent out in the last 24 hours.
Egress_connections counts the outbound connections that the machine opened in the last 24 hours.
Grafana_url is grafana_url of the install config, for the links to the dashboards, or empty.
Servers are the servers of the install that are not decommissioned, from the control store, oldest enrollment first.
ServerHealth is the state of one server.
object
Server_id is the ID of the server.
Hostname is the host name that the server reported at its enrollment.
Status is the status of the last heartbeat. It is unspecified before the first one.
Pending_emails are the first emails of the 5 oldest pending accounts, oldest first.
Open_notices counts the open notices of the caller. A caller without an account, such as an admin API key, has none.
Public_url_orgs counts the orgs with a machine with a public URL, from the control store.
Firing_alerts are the alerts of the monitoring bundle and the signals of the detection of abuse that fire now, newest first, at most 20 together. Each one is also a notice of the kind alert or abuse.
FiringAlert is an alert of the monitoring bundle that fires now.
object
Name is the label alertname, such as HopboxMachineCPUSustained.
Severity is the label severity: critical, warning, or info.
Summary is the annotation summary, or empty.
Start_time is the time at which the alert started to fire.
Fingerprint is the fingerprint of the alert in Alertmanager, 16 hex characters. It is empty for a signal.
Kind is alert for an alert of Alertmanager, or abuse for a signal of the detection of abuse inside hopboxd, whose name is the signal, such as cpu_sustained.
Id is the ID of the audit entry that started the alert or the signal: alert.fire or abuse.detect.
Firing_alert_count counts every alert and every signal that fires now, also those after the first 20.
Firing_abuse_count counts the abuse signals of firing_alert_count.
Example
{ "sampleTime": "2023-01-15T01:30:15.01Z", "machines": [ { "state": "MACHINE_STATE_UNSPECIFIED" } ], "health": [ { "area": "HEALTH_AREA_UNSPECIFIED", "state": "HEALTH_STATE_UNSPECIFIED" } ], "busyMachines": [ { "urlVisibility": "URL_VISIBILITY_UNSPECIFIED", "cpuHistory": [ { "time": "2023-01-15T01:30:15.01Z" } ] } ], "servers": [ { "state": "SERVER_STATE_UNSPECIFIED", "status": "SERVER_STATUS_UNSPECIFIED" } ], "firingAlerts": [ { "startTime": "2023-01-15T01:30:15.01Z" } ]}default
Section titled “default”Error
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Deserialized error detail payload. The ‘type’ field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.
object
Example
{ "code": "canceled"}