Resource: proxmox_virtual_environment_metrics_server¶
Warning
Deprecated: Use proxmox_metrics_server instead. This resource will be removed in v1.0.
Manages PVE metrics server.
Example Usage¶
resource "proxmox_virtual_environment_metrics_server" "influxdb_server" {
name = "example_influxdb_server"
server = "192.168.3.2"
port = 8089
type = "influxdb"
}
resource "proxmox_virtual_environment_metrics_server" "graphite_server" {
name = "example_graphite_server"
server = "192.168.4.2"
port = 2003
type = "graphite"
}
resource "proxmox_virtual_environment_metrics_server" "opentelemetry_server" {
name = "example_opentelemetry_server"
server = "192.168.5.2"
port = 4318
type = "opentelemetry"
opentelemetry_proto = "http"
opentelemetry_path = "/v1/metrics"
}
Schema¶
Required¶
name(String) Unique name that will be ID of this metric server in PVE.port(Number) Server network port.server(String) Server dns name or IP address.type(String) Plugin type. Choice is betweengraphite|influxdb|opentelemetry.
Optional¶
disable(Boolean) Set this totrueto disable this metric server.graphite_path(String) Root graphite path (ex:proxmox.mycluster.mykey).graphite_proto(String) Protocol to send graphite data. Choice is betweenudp|tcp. If not set, PVE default isudp.influx_api_path_prefix(String) An API path prefix inserted between<host>:<port>/and/api2/. Can be useful if the InfluxDB service runs behind a reverse proxy.influx_bucket(String) The InfluxDB bucket/db. Only necessary when using the http v2 api.influx_db_proto(String) Protocol for InfluxDB. Choice is betweenudp|http|https. If not set, PVE default isudp.influx_max_body_size(Number) InfluxDB max-body-size in bytes. Requests are batched up to this size. If not set, PVE default is25000000.influx_organization(String) The InfluxDB organization. Only necessary when using the http v2 api. Has no meaning when using v2 compatibility api.influx_token(String, Sensitive) The InfluxDB access token. Only necessary when using the http v2 api. If the v2 compatibility api is used, useuser:passwordinstead.influx_verify(Boolean) Set tofalseto disable certificate verification for https endpoints.mtu(Number) MTU (maximum transmission unit) for metrics transmission over UDP. If not set, PVE default is1500(allowed512-65536).opentelemetry_compression(String) OpenTelemetry compression algorithm for requests. Choice is betweennone|gzip. If not set, PVE default isgzip.opentelemetry_headers(String, Sensitive) OpenTelemetry custom HTTP headers as JSON, base64 encoded.opentelemetry_max_body_size(Number) OpenTelemetry maximum request body size in bytes. If not set, PVE default is10000000.opentelemetry_path(String) OpenTelemetry endpoint path (e.g.,/v1/metrics).opentelemetry_proto(String) Protocol for OpenTelemetry. Choice is betweenhttp|https. If not set, PVE default ishttps.opentelemetry_resource_attributes(String) OpenTelemetry additional resource attributes as JSON, base64 encoded.opentelemetry_timeout(Number) OpenTelemetry HTTP request timeout in seconds. If not set, PVE default is5.opentelemetry_verify_ssl(Boolean) OpenTelemetry verify SSL certificates. If not set, PVE default istrue.timeout(Number) TCP socket timeout in seconds. If not set, PVE default is1.
Read-Only¶
id(String) The unique identifier of this resource.
Import¶
Import is supported using the following syntax: