mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-30 02:31:10 +00:00
2.6 KiB
2.6 KiB
layout | title | parent | subcategory | description |
---|---|---|---|---|
page | proxmox_virtual_environment_metrics_server | Resources | Virtual Environment | Manages PVE metrics server. |
Resource: proxmox_virtual_environment_metrics_server
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"
}
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
.
Optional
disable
(Boolean) Set this totrue
to 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:password
instead.influx_verify
(Boolean) Set tofalse
to 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
).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:
#!/usr/bin/env sh
terraform import proxmox_virtual_environment_metrics_server.example example