This repository has been archived by the owner on May 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from azrod/devel
Metrics
- Loading branch information
Showing
4 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Metrics | ||
|
||
Different metrics are available. Metrics are organized into different categories. | ||
|
||
Categories : | ||
|
||
* Global | ||
* Per-Providers | ||
|
||
## How to enable and configure metrics server | ||
|
||
You have some options to enable metrics server. | ||
|
||
### Config File | ||
|
||
| Options | Default | Required | Actions | | ||
| -------------- | -------- | ------------------------ | --------------------------------------- | | ||
| metrics.enable | false | :heavy_multiplication_x: | Define if start metrics web server | | ||
| metrics.host | 0.0.0.0 | :heavy_multiplication_x: | Set IP address for metrics web server | | ||
| metrics.port | 8080 | :heavy_multiplication_x: | Set port for metrics web server | | ||
| metrics.path | /metrics | :heavy_multiplication_x: | Path for acceding to metrics web server | | ||
| | | | | | ||
|
||
```yaml title=config.yaml" | ||
metrics: | ||
enable: true # Default: false | ||
port: 8080 # Default : 8080 | ||
host: 0.0.0.0 # Default: 0.0.0.0 | ||
path: /metrics # Default: /metrics | ||
|
||
``` | ||
|
||
## Env Variables | ||
|
||
|
||
| Options | Actions | | ||
| -------------- | --------------------------------------- | | ||
| | | | ||
| METRICS_ENABLE | Define if start metrics web server | | ||
| METRICS_HOST | Set IP address for metrics web server | | ||
| METRICS_PORT | Set port for metrics web server | | ||
| METRICS_PATH | Path for acceding to metrics web server | | ||
|
||
```bash title="exemple" | ||
METRICS_ENABLE=true ./updateip | ||
``` | ||
|
||
## Metrics details | ||
|
||
### Global | ||
|
||
| Metrics Name | Description | | ||
| ---------------------------- | -------------------- | | ||
| | | | ||
| updateip_count_event_receive | Total event received | | ||
|
||
### AWS Provider | ||
|
||
| Metrics Name | Description | | ||
| ---------------------- | ------------------------------------ | | ||
| | | | ||
| updateip_aws_func_time | Execution time of each function | | ||
| updateip_aws_status | Return Status of AWS Provider | | ||
| updateip_aws_update | Number of DNS record validity checks | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters