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_use_gpu
: bool, if the GPU is used and then monitored (default: false)monitoring_iam_url
: URL of the IAM servicemonitoring_iam_groups
: string with the name of the IAM groups allowed (space separated)monitoring_iam_admin_groups
: string with the name of the IAM groups that will be admin (space separated)monitoring_server_ip
: string with the ip of the current server
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_client_id
: string (used for the IAM login)service_grafana_client_secret
: string (used for the IAM login)service_grafana_image
: string (default:"dodasts/monitoring-grafana:v1.0.1-monitoring"
)
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_project_name: compute_server
service_grafana_admin_user: admin
service_grafana_admin_password: example_password
Apache 2.0
DODAS-TS