<ppw-metric>
<ppw-metric>
Display a public prometheus metric.
name prop
The name
prop is the metric name as defined in victoria metrics or prometheus :
PDF files
title prop or slot
PDF files
desc prop
PDF files
icon prop
no-refresh prop
By default the metric is refreshed every 10 seconds. The value displayed changes smoothly.
The norefresh
prop tell the compoenent to not automatically refresh the metric :
PDF files
fake prop
refresh
You can force a metric refresh by clicking on the component.
Example
A realistic example :
offset prop
Number of my API calls as long as we remember :
Number of my API calls for the last 15 minutes :
Number of my API calls for the last hour :
Number of my API calls for the last week :
Number of my API calls for the current month (from day 1 to now) :
supported metrics
All those metrics are also available at our grafana instance (access restricted).
simple/pp_pdf_info_signers_total
simple/referentiel_nb_checklist_defined
api/pdf/check
Number of PDF check for all users of all domains :
Number of PDF check for all users of this domain :
Number of PDF check for me in all domains :
Number of PDF check for me in this domain :
api/all
Number of my API calls in this domain :
Number of my API calls in all domain :
Please note it is not allowed to query API calls number for anyone else but you.
TODO
- show link to grafana (optional)
- show backend version
- show frontend version
- show frontend widgets version
- red/green display for 0/1 metric (up)
- display a message when the metric fetch fails
- property to change the refresh period
- show Err on API error