A role to setup a custom monitoring on a node
This role requires Docker and Docker Compose to be installed. Also, Grafana tasks requires Go.
Variable for the monitoring service:
monitoring_project_name
: string with the name of the current project (user's choice)monitoring_iam_url
: URL of the IAM servicemonitoring_iam_admin_groups
: string with the name of the IAM groups that will be admin (space separated)monitoring_iam_client_id
: string containing the client idmonitoring_iam_token
: string containing the iam client token
Specific service variables:
service_grafana
: "yes" if you want to setup also grafanaservice_grafana_port
: int, the grafana service portservice_grafana_admin_user
: stringservice_grafana_admin_password
: stringservice_grafana_image
: string (default:"grafana/grafana:10.2.1"
)
The following string variables will be filled with the docker service information:
nvidia_monitoring
: string, (default: "")nvidia_depends
: string, (default: "")prometheus_nvidia
: string, (default: "")grafana_service
: string, (default: "")service_grafana_disable_admin_creation
: bool (default: true)
There are no other dependencies.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- role: dodas-ts-monitoring
monitoring_iam_client_id: "XXXXX"
monitoring_iam_token: "XXXXX"
monitoring_iam_url: iam.cloud.infn.it
service_grafana_admin_user: admin
service_grafana_admin_password: example_password
Apache 2.0
DODAS-TS