kowabunga.cloud.metrology role – Install and configures client-side and server-side metrology components.
Note
This role is part of the kowabunga.cloud collection (version 0.1.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install kowabunga.cloud
.
To use it in a playbook, specify: kowabunga.cloud.metrology
.
Entry point main
– Install and configures client-side and server-side metrology components.
Synopsis
Install and configures client-side and server-side metrology components.
Parameters
Parameter |
Comments |
---|---|
Enable logs collection agent on host. Provided by Grafana Alloy. Choices:
|
|
List of external log files to pull from. Supports globbing. Example: [‘/var/log/dpkg.log’] Default: |
|
List of collected metrics regex to be dropped (i.e. not remotely shipped). Allows saving bandwidth and processing power, minimizing amount of collected timeseries. Supports globbing. Examples: [‘go_.*’, ‘promhttp_.*’] … Default: |
|
Enable metrics collection agent on host. Provided by Grafana Alloy. Choices:
|
|
List of optional external Prometheus exporters to pull metrics from. Default: |
|
IP address of the Prometheus exporter to scrape Defaults to private network address if unspecified. |
|
List of key/values labels to be appended to scraped metrics. |
|
Label name to be appended. |
|
Label value to be appended. |
|
Polling frequency of the Prometheus exporter to scrape. Default: |
|
Friendly name of the Prometheus exporter to scrape. |
|
URL path of the Prometheus exporter to scrape. Default: |
|
Port of the Prometheus exporter to scrape. |
|
Dictionnary of extra labels to be appended each metrics before being shipped to time-series database(s). Format is ‘label_name: label_value’ Default: |
|
Optionally defines a list of default metrics relabelling rules after scrapping. See https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.relabel/ for details. Default: |
|
The relabeling action to perform. Choices:
|
|
A valid RE2 expression with support for parenthesized capture groups. Used to match the extracted value from the combination of the source_label and separator fields or filter labels during the labelkeep/labeldrop/labelmap actions. |
|
The value against which a regular expression replace is performed, if the regular expression matches the extracted value. Supports previously captured groups. |
|
The separator used to concatenate the values present in source_labels. Default: |
|
The list of labels whose values are to be selected. |
|
Label to which the resulting value will be written to. |
|
Optionally defines a list of default target relabelling rules after scrapping. See https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.relabel/ for details. Default: |
|
The relabeling action to perform. Choices:
|
|
A valid RE2 expression with support for parenthesized capture groups. Used to match the extracted value from the combination of the source_label and separator fields or filter labels during the labelkeep/labeldrop/labelmap actions. |
|
The value against which a regular expression replace is performed, if the regular expression matches the extracted value. Supports previously captured groups. |
|
The separator used to concatenate the values present in source_labels. Default: |
|
The list of labels whose values are to be selected. |
|
Label to which the resulting value will be written to. |
|
Admin password for dashboard component. Recommended to be safe and encrypted into Ansible Vault or SOPS. Empty if unspecified. Default: |
|
Admin user name for dashboard component. Default: |
|
Enable logs/metrics dashboard component. Provided by Grafana. |
|
A list of extra users to be added to dashboard component. Default: |
|
User email address. |
|
User short name (a.k.a. login id). Example: ‘jdoe’. |
|
Friendly user name. Example: John Doe. |
|
User password. Recommended to be safe and encrypted into Ansible Vault or SOPS. |
|
Public FQDN for dashboard component. Usually something such as “https://grafana.acme.com”. Default: |
|
Enable metrology-related components deployment. Useless if you do not care about monitoring or are using your own metrology agents. Choices:
|
|
User password used by metrology agent to push logs to server. Used for HTTPS basic authentication (disabled if unspecified). Recommended to be safe and encrypted into Ansible Vault or SOPS. Default: |
|
User name used by metrology agent to push logs to server. Used for HTTPS basic authentication. Default: |
|
Enable logs collection server on host. Provided by Victoria Logs. Choices:
|
|
Public FQDN for logs collection server. Usually something such as “https://logs.acme.com”. Default: |
|
Set server-side logs retention period. Default: |
|
User password used by metrology agent to push metrics to server. Used for HTTPS basic authentication (disabled if unspecified). Recommended to be safe and encrypted into Ansible Vault or SOPS. Default: |
|
User name used by metrology agent to push metrics to server. Used for HTTPS basic authentication. Default: |
|
Enable metrics collection server on host. Provided by Victoria Metrics. Choices:
|
|
Public FQDN for metrics collection server. Usually something such as “https://metrics.acme.com”. Default: |
|
Set server-side metrics retention period. Default: |