Skip to content

tf-cloud-modules/terraform-aiven-grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aiven Grafana Terraform module

Terraform module which creates Aiven Grafana resources

Usage

module "grafana" {
  source       = "tf-cloud-modules/grafana/aiven"
  project      = "test"
  service_name = "test"
}

Requirements

Name Version
terraform >= 0.13.1
aiven >= 4.0.0, < 5.0.0

Providers

Name Version
aiven 4.1.3

Modules

No modules.

Resources

Name Type
aiven_grafana.this resource

Inputs

Name Description Type Default Required
alerting_enabled Enable or disable Grafana alerting functionality. bool null no
alerting_error_or_timeout Default error or timeout setting for new alerting rules. string null no
alerting_max_annotations_to_keep Max number of alert annotations that Grafana stores. 0 (default) keeps all alert annotations. number null no
alerting_nodata_or_nullvalues Default value for 'no data or null values' for new alerting rules. string null no
allow_embedding Allow embedding Grafana dashboards with iframe/frame/object/embed tags. Disabled by default to limit impact of clickjacking. bool null no
auth_azuread Azure AD OAuth integration. list(any) [] no
auth_generic_oauth Generic OAuth integration. list(any) [] no
auth_github Github Auth integration. list(any) [] no
auth_gitlab GitLab Auth integration. list(any) [] no
auth_google Google Auth integration. list(any) [] no
cloud_name Defines where the cloud provider and region where the service is hosted in. string "aws-us-east-1" no
cookie_samesite Cookie SameSite attribute: 'strict' prevents sending cookie for cross-site requests, effectively disabling direct linking from other sites to Grafana. 'lax' is the default value. string null no
create Controls if resources should be created. bool true no
custom_domain Custom domain. string null no
dashboards_min_refresh_interval Minimum refresh interval. string null no
dashboards_versions_to_keep Dashboard versions to keep per dashboard. number null no
dataproxy_send_user_header Send 'X-Grafana-User' header to data source. bool null no
dataproxy_timeout Timeout for data proxy requests in seconds. number null no
date_formats Grafana date format specifications. list(any) [] no
disable_gravatar Set to true to disable gravatar. Defaults to false (gravatar is enabled). bool null no
editors_can_admin Editors can manage folders, teams and dashboards created by them. bool null no
external_image_storage External image store settings. list(any) [] no
google_analytics_ua_id Google Analytics ID. string null no
ip_filter_object Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. list(any)
[
{
"network": "0.0.0.0/0"
}
]
no
maintenance_window_dow Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc. string "thursday" no
maintenance_window_time Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format. string "01:00:00" no
metrics_enabled Enable Grafana /metrics endpoint. bool null no
plan Defines what kind of computing resources are allocated for the service. string "startup-1" no
private_access_grafana Allow clients to connect to Grafana with a DNS name that always resolves to the service's private IP addresses. bool false no
privatelink_grafana Enable Grafana. bool false no
project Aiven Cloud Project Name string n/a yes
project_to_fork_from Name of another project to fork a service from. string null no
project_vpc_id Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. string null no
public_access_grafana Allow clients to connect to Grafana from the public internet for service nodes that are in a project VPC or another type of private network. bool false no
recovery_basebackup_name Name of the basebackup to restore in forked service. string null no
service_integrations Service integrations to specify when creating a service. list(any) [] no
service_name Specifies the actual name of the service. string n/a yes
service_to_fork_from Name of another service to fork from. string null no
smtp_server SMTP server settings. list(any) [] no
static_ips Static IPs that are going to be associated with this service. list(string) [] no
tags List of the service tags. list(any) [] no
termination_protection Prevents the service from being deleted. bool false no
user_auto_assign_org Auto-assign new users on signup to main organization. bool null no
user_auto_assign_org_role Set role for new signups. string null no
viewers_can_edit Users with view-only permission can edit but not save dashboards. bool null no

Outputs

Name Description
cloud_name Defines where the cloud provider and region where the service is hosted in.
components Service component information objects.
disk_space_cap The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
disk_space_default The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
disk_space_step The default disk space step of the service, possible values depend on the service type, the cloud provider and the project.
grafana_user_config Grafana user configurable settings.
id The ID of this resource.
maintenance_window_dow Day of week when maintenance operations should be performed.
maintenance_window_time Time of day when maintenance operations should be performed.
plan Defines what kind of computing resources are allocated for the service.
project Aiven Cloud Project Name.
service_host The hostname of the service.
service_integrations Service integrations to specify when creating a service.
service_name Specifies the actual name of the service.
service_password Password used for connecting to the service, if applicable.
service_port The port of the service.
service_type Aiven internal service type code.
service_uri URI for connecting to the service.
service_username Username used for connecting to the service.
static_ips Static IPs that are going to be associated with this service.