Prometheus export
Current values of your account in the Prometheus text format (version 0.0.4): uptime monitors, heartbeats, server monitors with GPUs, domain names and open incidents. Prometheus and any other system that scrapes this format can query the endpoint directly.
--url 'https://peaknode.de/api/metrics' \
--header 'Authorization: Bearer {api_key}'
Response as text/plain; version=0.0.4, all metrics with the prefix peaknode_ and of type gauge. Errors (key missing or invalid, plan without API, limit exceeded) come as JSON with status code 401 or 429, like the rest of the API.
Rules
- The export only contains the account the API key belongs to.
- Unknown values are omitted and never reported as 0: no values before the first check or report, no values for paused items and no values the agent does not deliver (for example GPU memory with unified memory).
- Server and GPU values only while the server is reporting: enabled, not offline and last report within the offline limit (three report intervals plus 90 seconds). GPU values additionally only without a driver error. The values come from the last report.
- During a running maintenance window the checks rest:
peaknode_monitor_up,peaknode_monitor_response_time_secondsandpeaknode_heartbeat_upare omitted, as ispeaknode_server_offlineof a server that is offline. The matching*_maintenancemetric is 1 then. - Server monitors of type workstation never appear in
peaknode_server_offline: a switched-off workstation is not an outage. Its state is inpeaknode_workstation_off(1 = off, 0 = on). - The 24 h availability is the share of successful checks in the last 24 hours up to now, the same time window as the 48 fields in the portal. There are no checks during a maintenance window, so maintenance time does not count.
- Units: seconds, bytes, percent (0 to 100), degrees Celsius and watts, remaining time in full days (negative = expired). The help texts (
# HELP) are in English for every account. - The labels
name,targetandprojectcontain the names as shown in the portal.projectis empty if the item is not assigned to a project. - The response is cached for 15 seconds per account. Limit: 30 requests per minute and account, plus the general API limit per key. A scrape interval of 60 seconds matches the rhythm of checks and agents.
Metrics
| Metric | Labels | Description |
|---|---|---|
peaknode_monitor_up
peaknode_monitor_up
Labels: monitor_id, name, target, project
Uptime monitor: 1 = last check ok, 0 = failed. Omitted before the first check and during maintenance.
|
monitor_id, name, target, project | Uptime monitor: 1 = last check ok, 0 = failed. Omitted before the first check and during maintenance. |
peaknode_monitor_response_time_seconds
peaknode_monitor_response_time_seconds
Labels: monitor_id, name, target, project
Response time of the last check in seconds, only if it was ok.
|
monitor_id, name, target, project | Response time of the last check in seconds, only if it was ok. |
peaknode_monitor_availability_24h_percent
peaknode_monitor_availability_24h_percent
Labels: monitor_id, name, target, project
Availability of the last 24 hours in percent (successful checks of all checks). Omitted without a check in that period.
|
monitor_id, name, target, project | Availability of the last 24 hours in percent (successful checks of all checks). Omitted without a check in that period. |
peaknode_monitor_maintenance
peaknode_monitor_maintenance
Labels: monitor_id, name, target, project
1 while a maintenance window is running for the item, else 0.
|
monitor_id, name, target, project | 1 while a maintenance window is running for the item, else 0. |
peaknode_heartbeat_up
peaknode_heartbeat_up
Labels: heartbeat_id, name, project
Heartbeat: 1 = on time, 0 = missed. Omitted before the first run and during maintenance.
|
heartbeat_id, name, project | Heartbeat: 1 = on time, 0 = missed. Omitted before the first run and during maintenance. |
peaknode_heartbeat_maintenance
peaknode_heartbeat_maintenance
Labels: heartbeat_id, name, project
1 while a maintenance window is running for the item, else 0.
|
heartbeat_id, name, project | 1 while a maintenance window is running for the item, else 0. |
peaknode_server_offline
peaknode_server_offline
Labels: server_monitor_id, name, target, project
Server monitor: 1 = offline, 0 = online, as in the overview. Omitted before the first report.
|
server_monitor_id, name, target, project | Server monitor: 1 = offline, 0 = online, as in the overview. Omitted before the first report. |
peaknode_server_maintenance
peaknode_server_maintenance
Labels: server_monitor_id, name, target, project
1 while a maintenance window is running for the item, else 0.
|
server_monitor_id, name, target, project | 1 while a maintenance window is running for the item, else 0. |
peaknode_workstation_off
peaknode_workstation_off
Labels: server_monitor_id, name, target, project
api_documentation.metrics.m.workstation_off
|
server_monitor_id, name, target, project | api_documentation.metrics.m.workstation_off |
peaknode_server_cpu_usage_percent
peaknode_server_cpu_usage_percent
Labels: server_monitor_id, name, target, project
CPU usage in percent.
|
server_monitor_id, name, target, project | CPU usage in percent. |
peaknode_server_ram_usage_percent
peaknode_server_ram_usage_percent
Labels: server_monitor_id, name, target, project
RAM usage in percent.
|
server_monitor_id, name, target, project | RAM usage in percent. |
peaknode_server_ram_used_bytes
peaknode_server_ram_used_bytes
Labels: server_monitor_id, name, target, project
Used RAM in bytes.
|
server_monitor_id, name, target, project | Used RAM in bytes. |
peaknode_server_ram_total_bytes
peaknode_server_ram_total_bytes
Labels: server_monitor_id, name, target, project
Total RAM in bytes.
|
server_monitor_id, name, target, project | Total RAM in bytes. |
peaknode_server_disk_usage_percent
peaknode_server_disk_usage_percent
Labels: server_monitor_id, name, target, project
Usage of the system disk in percent (Linux and macOS: /, Windows: C:).
|
server_monitor_id, name, target, project | Usage of the system disk in percent (Linux and macOS: /, Windows: C:). |
peaknode_server_disk_used_bytes
peaknode_server_disk_used_bytes
Labels: server_monitor_id, name, target, project
Used space of the system disk in bytes.
|
server_monitor_id, name, target, project | Used space of the system disk in bytes. |
peaknode_server_disk_total_bytes
peaknode_server_disk_total_bytes
Labels: server_monitor_id, name, target, project
Size of the system disk in bytes.
|
server_monitor_id, name, target, project | Size of the system disk in bytes. |
peaknode_server_load1
peaknode_server_load1
Labels: server_monitor_id, name, target, project
System load (1 minute average).
|
server_monitor_id, name, target, project | System load (1 minute average). |
peaknode_server_load5
peaknode_server_load5
Labels: server_monitor_id, name, target, project
System load (5 minute average).
|
server_monitor_id, name, target, project | System load (5 minute average). |
peaknode_server_load15
peaknode_server_load15
Labels: server_monitor_id, name, target, project
System load (15 minute average).
|
server_monitor_id, name, target, project | System load (15 minute average). |
peaknode_server_network_receive_bytes_per_second
peaknode_server_network_receive_bytes_per_second
Labels: server_monitor_id, name, target, project
Network download in bytes per second.
|
server_monitor_id, name, target, project | Network download in bytes per second. |
peaknode_server_network_transmit_bytes_per_second
peaknode_server_network_transmit_bytes_per_second
Labels: server_monitor_id, name, target, project
Network upload in bytes per second.
|
server_monitor_id, name, target, project | Network upload in bytes per second. |
peaknode_gpu_utilization_percent
peaknode_gpu_utilization_percent
Labels: server_monitor_id, name, target, gpu_index, project
GPU utilization in percent (mean over the measuring window with agent v5 or newer).
|
server_monitor_id, name, target, gpu_index, project | GPU utilization in percent (mean over the measuring window with agent v5 or newer). |
peaknode_gpu_memory_used_bytes
peaknode_gpu_memory_used_bytes
Labels: server_monitor_id, name, target, gpu_index, project
Used GPU memory in bytes. Omitted for unified memory.
|
server_monitor_id, name, target, gpu_index, project | Used GPU memory in bytes. Omitted for unified memory. |
peaknode_gpu_memory_total_bytes
peaknode_gpu_memory_total_bytes
Labels: server_monitor_id, name, target, gpu_index, project
Total GPU memory in bytes. Omitted for unified memory.
|
server_monitor_id, name, target, gpu_index, project | Total GPU memory in bytes. Omitted for unified memory. |
peaknode_gpu_temperature_celsius
peaknode_gpu_temperature_celsius
Labels: server_monitor_id, name, target, gpu_index, project
GPU temperature in degrees Celsius (highest value of the measuring window with agent v5 or newer).
|
server_monitor_id, name, target, gpu_index, project | GPU temperature in degrees Celsius (highest value of the measuring window with agent v5 or newer). |
peaknode_gpu_power_draw_watts
peaknode_gpu_power_draw_watts
Labels: server_monitor_id, name, target, gpu_index, project
GPU power draw in watts (mean over the measuring window with agent v5 or newer).
|
server_monitor_id, name, target, gpu_index, project | GPU power draw in watts (mean over the measuring window with agent v5 or newer). |
peaknode_domain_ssl_days_remaining
peaknode_domain_ssl_days_remaining
Labels: domain_name_id, name, target, project
Full days until the SSL certificate expires (negative = expired).
|
domain_name_id, name, target, project | Full days until the SSL certificate expires (negative = expired). |
peaknode_domain_registration_days_remaining
peaknode_domain_registration_days_remaining
Labels: domain_name_id, name, target, project
Full days until the domain registration expires according to WHOIS (negative = expired).
|
domain_name_id, name, target, project | Full days until the domain registration expires according to WHOIS (negative = expired). |
peaknode_incidents_open
peaknode_incidents_open
Labels: type
Number of open incidents of uptime monitors (
type="monitor") and heartbeats (type="heartbeat"). |
type | Number of open incidents of uptime monitors (type="monitor") and heartbeats (type="heartbeat"). |
Example for prometheus.yml
Add it as an entry under scrape_configs in your Prometheus configuration. Prometheus adds the labels job and instance itself. Instead of the key in plain text you can use credentials_file with a file that only contains the API key.
scrape_configs:
- job_name: peaknode
scrape_interval: 60s
scheme: https
metrics_path: /api/metrics
authorization:
type: Bearer
credentials: {api_key}
static_configs:
- targets: ['peaknode.de']
Response example
Excerpt with example values (one entry per metric).
# HELP peaknode_monitor_up Uptime monitor: 1 = last check ok, 0 = failed. Omitted before the first check and during maintenance.
# TYPE peaknode_monitor_up gauge
peaknode_monitor_up{monitor_id="12",name="Inferenz-API",target="https://api.example.com/v1/models",project="Produktion"} 1
# HELP peaknode_monitor_response_time_seconds Uptime monitor: response time of the last check in seconds. Only when the last check was ok.
# TYPE peaknode_monitor_response_time_seconds gauge
peaknode_monitor_response_time_seconds{monitor_id="12",name="Inferenz-API",target="https://api.example.com/v1/models",project="Produktion"} 0.212
# HELP peaknode_monitor_availability_24h_percent Uptime monitor: successful checks of all checks in the last 24 hours in percent (maintenance has no checks). Omitted without a check in that window.
# TYPE peaknode_monitor_availability_24h_percent gauge
peaknode_monitor_availability_24h_percent{monitor_id="12",name="Inferenz-API",target="https://api.example.com/v1/models",project="Produktion"} 99.652778
# HELP peaknode_monitor_maintenance Uptime monitor: 1 while a maintenance window is running, else 0.
# TYPE peaknode_monitor_maintenance gauge
peaknode_monitor_maintenance{monitor_id="12",name="Inferenz-API",target="https://api.example.com/v1/models",project="Produktion"} 0
# HELP peaknode_heartbeat_up Heartbeat: 1 = on time, 0 = missed. Omitted before the first run and during maintenance.
# TYPE peaknode_heartbeat_up gauge
peaknode_heartbeat_up{heartbeat_id="4",name="Backup",project="Produktion"} 1
# HELP peaknode_heartbeat_maintenance Heartbeat: 1 while a maintenance window is running, else 0.
# TYPE peaknode_heartbeat_maintenance gauge
peaknode_heartbeat_maintenance{heartbeat_id="4",name="Backup",project="Produktion"} 0
# HELP peaknode_server_offline Server monitor: 1 = offline (no report within the offline limit), 0 = online. Omitted before the first report, while offline during maintenance and for monitors of type workstation (see peaknode_workstation_off).
# TYPE peaknode_server_offline gauge
peaknode_server_offline{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",project="Produktion"} 0
# HELP peaknode_server_maintenance Server monitor: 1 while a maintenance window is running, else 0.
# TYPE peaknode_server_maintenance gauge
peaknode_server_maintenance{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",project="Produktion"} 0
# HELP peaknode_server_cpu_usage_percent Server monitor: CPU usage in percent (last report).
# TYPE peaknode_server_cpu_usage_percent gauge
peaknode_server_cpu_usage_percent{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",project="Produktion"} 12.5
# HELP peaknode_server_ram_usage_percent Server monitor: RAM usage in percent (last report).
# TYPE peaknode_server_ram_usage_percent gauge
peaknode_server_ram_usage_percent{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",project="Produktion"} 41.2
# HELP peaknode_server_load1 Server monitor: load average over 1 minute (last report).
# TYPE peaknode_server_load1 gauge
peaknode_server_load1{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",project="Produktion"} 1.72
# HELP peaknode_server_network_receive_bytes_per_second Server monitor: network download in bytes per second (last report).
# TYPE peaknode_server_network_receive_bytes_per_second gauge
peaknode_server_network_receive_bytes_per_second{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",project="Produktion"} 1250000
# HELP peaknode_gpu_utilization_percent GPU: utilization in percent (last report, mean over the measuring window with agent v5 or newer).
# TYPE peaknode_gpu_utilization_percent gauge
peaknode_gpu_utilization_percent{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",gpu_index="0",project="Produktion"} 87
# HELP peaknode_gpu_memory_used_bytes GPU: used memory in bytes (last report). Omitted for unified memory.
# TYPE peaknode_gpu_memory_used_bytes gauge
peaknode_gpu_memory_used_bytes{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",gpu_index="0",project="Produktion"} 73400320000
# HELP peaknode_gpu_memory_total_bytes GPU: total memory in bytes (last report). Omitted for unified memory.
# TYPE peaknode_gpu_memory_total_bytes gauge
peaknode_gpu_memory_total_bytes{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",gpu_index="0",project="Produktion"} 150754820096
# HELP peaknode_gpu_temperature_celsius GPU: temperature in degrees Celsius (last report, highest value of the measuring window with agent v5 or newer).
# TYPE peaknode_gpu_temperature_celsius gauge
peaknode_gpu_temperature_celsius{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",gpu_index="0",project="Produktion"} 63
# HELP peaknode_gpu_power_draw_watts GPU: power draw in watts (last report, mean over the measuring window with agent v5 or newer).
# TYPE peaknode_gpu_power_draw_watts gauge
peaknode_gpu_power_draw_watts{server_monitor_id="3",name="gpu-node-01",target="gpu-node-01",gpu_index="0",project="Produktion"} 412.5
# HELP peaknode_domain_ssl_days_remaining Domain name: full days until the SSL certificate expires (negative = expired).
# TYPE peaknode_domain_ssl_days_remaining gauge
peaknode_domain_ssl_days_remaining{domain_name_id="7",name="example.com",target="example.com",project="Produktion"} 54
# HELP peaknode_domain_registration_days_remaining Domain name: full days until the domain registration expires according to WHOIS (negative = expired).
# TYPE peaknode_domain_registration_days_remaining gauge
peaknode_domain_registration_days_remaining{domain_name_id="7",name="example.com",target="example.com",project="Produktion"} 211
# HELP peaknode_incidents_open Open incidents of uptime monitors (type="monitor") and heartbeats (type="heartbeat").
# TYPE peaknode_incidents_open gauge
peaknode_incidents_open{type="monitor"} 0
peaknode_incidents_open{type="heartbeat"} 0