Commit graph

12 commits

Author SHA1 Message Date
Pierre Verkest
d56f8dba6d Allow empty string interface to not call the OPNsense traffic diagnostic REST API endpoint 2023-09-06 09:09:41 +02:00
Pierre Verkest
4fbd6c94c7 remove main_ha_state and backup_ha_state
those metrics have been replaced by opnsense_server_ha_state in v0.5.1
2023-09-04 00:32:02 +02:00
Pierre Verkest
bea721a275 FIX opnsense_server_ha_state metric
I've forgot to implement the main part calling state() on metric
2023-09-04 00:21:56 +02:00
Pierre Verkest
76b1338ae6 Create opnsense_server_ha_state metric
in order to replace
 and  that will be removed
in version 1.0.0.

Also use Enum to store possible OPNsense HA states to avoid typo
2023-09-04 00:06:17 +02:00
Pierre Verkest
7501a0d9b8 Allow to monitor multiple interfaces 2023-09-03 23:38:34 +02:00
Pierre Verkest
334be5b4c2 refactor create OPNSensePrometheusExporter class
goals is to avoid to transmit all params over sub calls
2023-09-03 22:08:24 +02:00
Pierre Verkest
091ee429f1 Add role label in metrics
I expecte to refactor and merge metrics together so
later those labels will be required
2023-09-03 21:52:19 +02:00
Pierre Verkest
79c3486305 Increase timeout while getting wan traffic info 2023-09-02 02:35:02 +02:00
Pierre Verkest
65179c8b45 use proper api endpoint to compute rate trafic on wan interface 2023-09-02 02:16:27 +02:00
Pierre Verkest
145e2dc2e3 calling lables metric and unitest chain 2023-09-01 18:18:09 +02:00
Pierre Verkest
bb66722036 add labels 2023-09-01 16:23:20 +02:00
Pierre Verkest
15bb93d8a4 First implementation 2023-09-01 13:27:55 +02:00