API Endpoints Overview#
System Information#
Endpoint:
/api/v1/system/metricsMethod:
GETDescription: Retrieve system metrics and performance data.
Historical Metrics Data#
Endpoint:
/api/v1/prometheus/graphs_data/targetsMethod:
GETDescription: Fetch historical metrics data for specific targets.
SystemGuard/Prometheus Targets#
Endpoint:
/api/v1/targetsMethod:
GETDescription: Retrieve a list of all monitoring targets in SystemGuard/Prometheus.
Refresh Interval#
Endpoint:
/api/v1/refresh-intervalMethod:
GETDescription: Get the current refresh interval.
Endpoint:
/api/v1/refresh-intervalMethod:
POSTDescription: Set or update the refresh interval.
OS Information#
Endpoint:
/api/v1/os-infoMethod:
GETDescription: Get information about the operating system.
Prometheus Configuration#
Endpoint:
/api/v1/prometheus/configMethod:
GETDescription: Retrieve the current Prometheus configuration.
Method:
POSTDescription: Update the Prometheus configuration.
Prometheus Rules#
Endpoint:
/api/v1/prometheus/rulesMethod:
GETDescription: Get the defined Prometheus rules.
Method:
POSTDescription: Update the Prometheus rules.
Prometheus Ready#
Endpoint:
/api/v1/prometheus/readyMethod:
GETDescription: Check if Prometheus is ready.