Skip to content

GetOverview

POST
/hopbox.admin.v1.MonitorService/GetOverview
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.

Connect-Protocol-Version
Connect-Protocol-Version

Define the version of the Connect protocol

number
Allowed value: 1

Define the version of the Connect protocol

Example

1
Connect-Timeout-Ms
Connect-Timeout-Ms

Define the timeout, in ms

number

Define the timeout, in ms

Example

1000
Media typeapplication/json
GetOverviewRequest

GetOverviewRequest has no fields.

object

Example generated

{}

Success

Media typeapplication/json
GetOverviewResponse

GetOverviewResponse is the state of the install, from the newest samples of the history.

object
sampleTime
sample_time

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.

string format: date-time
nodes
nodes

Nodes counts the servers with the node role that are not decommissioned (hopbox_server_vcpus).

integer format: int32
vcpus
vcpus

Vcpus is the vCPU capacity of every node, with the overcommit of placement.

string format: int64
vcpusAllocated
vcpus_allocated

Vcpus_allocated is the vCPUs of the machines that hold compute on the nodes.

string format: int64
memoryBytes
memory_bytes

Memory_bytes is the RAM of every node.

string format: int64
memoryAllocatedBytes
memory_allocated_bytes

Memory_allocated_bytes is the RAM of the machines that hold compute on the nodes.

string format: int64
machines
machines

Machines counts the machines by current state (hopbox_machines). A state without a machine is absent.

Array<object>
MachineStateCount

MachineStateCount is the number of machines in one state.

object
state
state
string
Allowed values: MACHINE_STATE_UNSPECIFIED MACHINE_STATE_PENDING MACHINE_STATE_STARTING MACHINE_STATE_RUNNING MACHINE_STATE_STANDBY MACHINE_STATE_HIBERNATED MACHINE_STATE_STOPPED MACHINE_STATE_FAILED MACHINE_STATE_DELETED MACHINE_STATE_MOVING
count
count
string format: int64
pendingAccounts
pending_accounts

Pending_accounts counts the accounts that wait for the approval of an instance admin.

string format: int64
oldestPending
oldest_pending

Oldest_pending is the age of the oldest pending account, or 0 without one.

string format: duration
publicUrls
public_urls

Public_urls counts the machines with a public URL.

string format: int64
suspendedOrgs
suspended_orgs

Suspended_orgs counts the suspended orgs, personal and team.

string format: int64
lastDay
last_day

Last_day counts the events of the last 24 hours.

object
signUps
sign_ups

Sign_ups counts the new accounts that were not refused (hopbox_account_creations_total).

string format: int64
orgCreations
org_creations

Org_creations counts the new orgs (hopbox_audit_entries_total, action org.create).

string format: int64
apiKeyCreations
api_key_creations

Api_key_creations counts the new API keys of every kind (hopbox_api_key_creations_total).

string format: int64
urlsMadePublic
urls_made_public

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.

string format: int64
rateLimited
rate_limited

Rate_limited counts the requests that a rate limit refused (hopbox_rate_limited_total).

string format: int64
limitRefusals
limit_refusals

Limit_refusals counts the calls that an org limit refused (hopbox_limit_refusals_total).

string format: int64
apiErrors
api_errors

Api_errors counts the API calls that ended with the code internal, unavailable, unknown, or data_loss (hopbox_api_calls_total).

string format: int64
executorFailures
executor_failures

Executor_failures counts the failed actions of the executors of the nodes (hopbox_executor_actions_total, result failed).

string format: int64
urlChanges
url_changes

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.

string format: int64
health
health

Health holds one line for each HealthArea, in the order of the enum.

Array<object>
HealthLine

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
area
area
string
Allowed values: HEALTH_AREA_UNSPECIFIED HEALTH_AREA_CONTROL_PLANE HEALTH_AREA_NODES HEALTH_AREA_EDGE HEALTH_AREA_NETWORK
state
state
string
Allowed values: HEALTH_STATE_UNSPECIFIED HEALTH_STATE_OK HEALTH_STATE_WARNING HEALTH_STATE_CRITICAL HEALTH_STATE_UNKNOWN
problems
problems

Problems name each problem that a check found, one line each, the worst first. It is empty when the state is HEALTH_STATE_OK.

Array<string>
busyMachines
busy_machines

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.

Array<object>
MachineUse

MachineUse is what a running machine uses, from the series of its node.

object
machineId
machine_id

Machine_id is the ID of the machine.

string
name
name

Name is the name of the machine.

string
orgId
org_id

Org_id is the ID of the org of the machine.

string
orgName
org_name

Org_name is the name of the org. It is empty when the org is gone.

string
ownerEmail
owner_email

Owner_email is the first email of the first owner of the org, to tell the person.

string
size
size

Size is the name of the size of the machine.

string
vcpus
vcpus

Vcpus is the vCPUs of the size.

integer format: int32
memoryBytes
memory_bytes

Memory_bytes is the RAM of the size.

string format: int64
diskBytes
disk_bytes

Disk_bytes is the disk of the size.

string format: int64
serverId
server_id

Server_id is the ID of the node of the machine. It is empty when the node took the sample before its enrollment.

string
urlVisibility
url_visibility

Url_visibility is the visibility of the URL of the machine. It is unspecified when the machine is gone from the control store.

string
Allowed values: URL_VISIBILITY_UNSPECIFIED URL_VISIBILITY_PRIVATE URL_VISIBILITY_PUBLIC
cpuShare5m
cpu_share_5m

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.

number format: double
cpuShare30m
cpu_share_30m

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.

number | null format: double
cpuShare1h
cpu_share_1h

Cpu_share_1h is the same share over the last hour, absent until the samples cover the hour.

number | null format: double
cpuHistory
cpu_history

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.

Array<object>
SamplePoint

SamplePoint is a value of a trend at one time.

object
time
time

Time is the end of the step of the value.

string format: date-time
value
value
number format: double
memoryUsedBytes
memory_used_bytes

Memory_used_bytes is the host RAM that the machine holds now (hopbox_machine_memory_bytes).

string format: int64
diskUsedBytes
disk_used_bytes

Disk_used_bytes is the bytes that the sparse disk file of the machine holds now (hopbox_machine_disk_bytes).

string format: int64
egressBytes
egress_bytes

Egress_bytes is the bytes that the machine sent out in the last 24 hours.

string format: int64
egressConnections
egress_connections

Egress_connections counts the outbound connections that the machine opened in the last 24 hours.

string format: int64
grafanaUrl
grafana_url

Grafana_url is grafana_url of the install config, for the links to the dashboards, or empty.

string
servers
servers

Servers are the servers of the install that are not decommissioned, from the control store, oldest enrollment first.

Array<object>
ServerHealth

ServerHealth is the state of one server.

object
serverId
server_id

Server_id is the ID of the server.

string
hostname
hostname

Hostname is the host name that the server reported at its enrollment.

string
state
state
string
Allowed values: SERVER_STATE_UNSPECIFIED SERVER_STATE_READY SERVER_STATE_CORDONED SERVER_STATE_UNRESPONSIVE SERVER_STATE_DECOMMISSIONED SERVER_STATE_DRAINING SERVER_STATE_SHUTTING_DOWN
status
status

Status is the status of the last heartbeat. It is unspecified before the first one.

string
Allowed values: SERVER_STATUS_UNSPECIFIED SERVER_STATUS_OK SERVER_STATUS_DEGRADED
pendingEmails
pending_emails

Pending_emails are the first emails of the 5 oldest pending accounts, oldest first.

Array<string>
openNotices
open_notices

Open_notices counts the open notices of the caller. A caller without an account, such as an admin API key, has none.

integer format: int32
publicUrlOrgs
public_url_orgs

Public_url_orgs counts the orgs with a machine with a public URL, from the control store.

integer format: int32
firingAlerts
firing_alerts

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.

Array<object>
FiringAlert

FiringAlert is an alert of the monitoring bundle that fires now.

object
name
name

Name is the label alertname, such as HopboxMachineCPUSustained.

string
severity
severity

Severity is the label severity: critical, warning, or info.

string
summary
summary

Summary is the annotation summary, or empty.

string
startTime
start_time

Start_time is the time at which the alert started to fire.

string format: date-time
fingerprint
fingerprint

Fingerprint is the fingerprint of the alert in Alertmanager, 16 hex characters. It is empty for a signal.

string
kind
kind

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.

string
id
id

Id is the ID of the audit entry that started the alert or the signal: alert.fire or abuse.detect.

string
firingAlertCount
firing_alert_count

Firing_alert_count counts every alert and every signal that fires now, also those after the first 20.

integer format: int32
firingAbuseCount
firing_abuse_count

Firing_abuse_count counts the abuse signals of firing_alert_count.

integer format: int32

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"
}
]
}

Error

Media typeapplication/json
Connect Error
object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

string
Allowed values: canceled unknown invalid_argument deadline_exceeded not_found already_exists permission_denied resource_exhausted failed_precondition aborted out_of_range unimplemented internal unavailable data_loss unauthenticated
message

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.

string
details

A list of messages that carry the error details. There is no limit on the number of messages.

Array<object>

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
type

A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.

string
value

The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

string format: byte
debug
Debug

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
key
additional properties
any
key
additional properties
any
key
additional properties
any

Example

{
"code": "canceled"
}