Bug 721 - Prometheus Metrix end point // NPCI

Review Request #603 — Created Jan. 6, 2025 and submitted — Latest diff uploaded

weikai
APV10
rel_apv_10_7
721
kevin.poh, tanya, timlai
Prometheus is an open-source systems monitoring and alerting toolkit.
This feature sets up a Prometheus client service on APV to provide metrics. 
Customers can set up their own Prometheus server to monitor APV.

For detailed information, please refer to 
https://arraynetworks.atlassian.net/browse/TWSD-15

Add APV CLI

prometheus on
prometheus off
show prometheus status
prometheus token new
no prometheus token <token>
show prometheus token all
show prometheus token valid
show prometheus token expired
prometheus token ttl <minutes>
show prometheus token ttl
prometheus port <port number>
show prometheus port
prometheus https on
prometheus https off
show prometheus https status
prometheus https ssl <key_url> <crt_url>
no prometheus https ssl
show prometheus https ssl
show prometheus log <lines>

Prometheus service provides monitoring metrics

cpu_usage
memory_status
disk_status
network_throughput
start_time_seconds
Open the Prometheus client service using HTTP
cmd: curl -H 'Authorization: Bearer <token>' http://<ip>:<port>/metrics
The official Prometheus-2.53.3

Open the Prometheus client service using HTTPS
cmd: curl -k -H 'Authorization: Bearer <token>' https://<ip>:<port>/metrics
The official Prometheus-2.53.3

For detailed information, please refer to 
https://arraynetworks.atlassian.net/browse/TWSD-15
    Loading...