import * as pulumi from "@pulumi/pulumi"; /** * Manages PVE metrics server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const influxdbServer = new proxmoxve.metrics.Server("influxdb_server", { * name: "example_influxdb_server", * server: "192.168.3.2", * port: 8089, * type: "influxdb", * }); * const graphiteServer = new proxmoxve.metrics.Server("graphite_server", { * name: "example_graphite_server", * server: "192.168.4.2", * port: 2003, * type: "graphite", * }); * const opentelemetryServer = new proxmoxve.metrics.Server("opentelemetry_server", { * name: "example_opentelemetry_server", * server: "192.168.5.2", * port: 4318, * type: "opentelemetry", * opentelemetryProto: "http", * opentelemetryPath: "/v1/metrics", * }); * ``` * * ## Import * * !/usr/bin/env sh * * ```sh * $ pulumi import proxmoxve:metrics/server:Server example example * ``` */ export declare class Server extends pulumi.CustomResource { /** * Get an existing Server resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ServerState, opts?: pulumi.CustomResourceOptions): Server; /** * Returns true if the given object is an instance of Server. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Server; /** * Set this to `true` to disable this metric server. Defaults to `false`. */ readonly disable: pulumi.Output; /** * Root graphite path (ex: `proxmox.mycluster.mykey`). */ readonly graphitePath: pulumi.Output; /** * Protocol to send graphite data. Choice is between `udp` | `tcp`. If not set, PVE default is `udp`. */ readonly graphiteProto: pulumi.Output; /** * An API path prefix inserted between `:/` and `/api2/`. Can be useful if the InfluxDB service runs behind a reverse proxy. */ readonly influxApiPathPrefix: pulumi.Output; /** * The InfluxDB bucket/db. Only necessary when using the http v2 api. */ readonly influxBucket: pulumi.Output; /** * Protocol for InfluxDB. Choice is between `udp` | `http` | `https`. If not set, PVE default is `udp`. */ readonly influxDbProto: pulumi.Output; /** * InfluxDB max-body-size in bytes. Requests are batched up to this size. If not set, PVE default is `25000000`. */ readonly influxMaxBodySize: pulumi.Output; /** * The InfluxDB organization. Only necessary when using the http v2 api. Has no meaning when using v2 compatibility api. */ readonly influxOrganization: pulumi.Output; /** * The InfluxDB access token. Only necessary when using the http v2 api. If the v2 compatibility api is used, use `user:password` instead. */ readonly influxToken: pulumi.Output; /** * Set to `false` to disable certificate verification for https endpoints. If not set, PVE default is `true`. */ readonly influxVerify: pulumi.Output; /** * MTU (maximum transmission unit) for metrics transmission over UDP. If not set, PVE default is `1500` (allowed `512` - `65536`). */ readonly mtu: pulumi.Output; /** * Unique name that will be ID of this metric server in PVE. */ readonly name: pulumi.Output; /** * OpenTelemetry compression algorithm for requests. Choice is between `none` | `gzip`. If not set, PVE default is `gzip`. */ readonly opentelemetryCompression: pulumi.Output; /** * OpenTelemetry custom HTTP headers as JSON, base64 encoded. */ readonly opentelemetryHeaders: pulumi.Output; /** * OpenTelemetry maximum request body size in bytes. If not set, PVE default is `10000000`. */ readonly opentelemetryMaxBodySize: pulumi.Output; /** * OpenTelemetry endpoint path (e.g., `/v1/metrics`). */ readonly opentelemetryPath: pulumi.Output; /** * Protocol for OpenTelemetry. Choice is between `http` | `https`. If not set, PVE default is `https`. */ readonly opentelemetryProto: pulumi.Output; /** * OpenTelemetry additional resource attributes as JSON, base64 encoded. */ readonly opentelemetryResourceAttributes: pulumi.Output; /** * OpenTelemetry HTTP request timeout in seconds. If not set, PVE default is `5`. */ readonly opentelemetryTimeout: pulumi.Output; /** * OpenTelemetry verify SSL certificates. If not set, PVE default is `true`. */ readonly opentelemetryVerifySsl: pulumi.Output; /** * Server network port. */ readonly port: pulumi.Output; /** * Server dns name or IP address. */ readonly server: pulumi.Output; /** * TCP socket timeout in seconds. If not set, PVE default is `1`. */ readonly timeout: pulumi.Output; /** * Plugin type. Choice is between `graphite` | `influxdb` | `opentelemetry`. */ readonly type: pulumi.Output; /** * Create a Server resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Server resources. */ export interface ServerState { /** * Set this to `true` to disable this metric server. Defaults to `false`. */ disable?: pulumi.Input; /** * Root graphite path (ex: `proxmox.mycluster.mykey`). */ graphitePath?: pulumi.Input; /** * Protocol to send graphite data. Choice is between `udp` | `tcp`. If not set, PVE default is `udp`. */ graphiteProto?: pulumi.Input; /** * An API path prefix inserted between `:/` and `/api2/`. Can be useful if the InfluxDB service runs behind a reverse proxy. */ influxApiPathPrefix?: pulumi.Input; /** * The InfluxDB bucket/db. Only necessary when using the http v2 api. */ influxBucket?: pulumi.Input; /** * Protocol for InfluxDB. Choice is between `udp` | `http` | `https`. If not set, PVE default is `udp`. */ influxDbProto?: pulumi.Input; /** * InfluxDB max-body-size in bytes. Requests are batched up to this size. If not set, PVE default is `25000000`. */ influxMaxBodySize?: pulumi.Input; /** * The InfluxDB organization. Only necessary when using the http v2 api. Has no meaning when using v2 compatibility api. */ influxOrganization?: pulumi.Input; /** * The InfluxDB access token. Only necessary when using the http v2 api. If the v2 compatibility api is used, use `user:password` instead. */ influxToken?: pulumi.Input; /** * Set to `false` to disable certificate verification for https endpoints. If not set, PVE default is `true`. */ influxVerify?: pulumi.Input; /** * MTU (maximum transmission unit) for metrics transmission over UDP. If not set, PVE default is `1500` (allowed `512` - `65536`). */ mtu?: pulumi.Input; /** * Unique name that will be ID of this metric server in PVE. */ name?: pulumi.Input; /** * OpenTelemetry compression algorithm for requests. Choice is between `none` | `gzip`. If not set, PVE default is `gzip`. */ opentelemetryCompression?: pulumi.Input; /** * OpenTelemetry custom HTTP headers as JSON, base64 encoded. */ opentelemetryHeaders?: pulumi.Input; /** * OpenTelemetry maximum request body size in bytes. If not set, PVE default is `10000000`. */ opentelemetryMaxBodySize?: pulumi.Input; /** * OpenTelemetry endpoint path (e.g., `/v1/metrics`). */ opentelemetryPath?: pulumi.Input; /** * Protocol for OpenTelemetry. Choice is between `http` | `https`. If not set, PVE default is `https`. */ opentelemetryProto?: pulumi.Input; /** * OpenTelemetry additional resource attributes as JSON, base64 encoded. */ opentelemetryResourceAttributes?: pulumi.Input; /** * OpenTelemetry HTTP request timeout in seconds. If not set, PVE default is `5`. */ opentelemetryTimeout?: pulumi.Input; /** * OpenTelemetry verify SSL certificates. If not set, PVE default is `true`. */ opentelemetryVerifySsl?: pulumi.Input; /** * Server network port. */ port?: pulumi.Input; /** * Server dns name or IP address. */ server?: pulumi.Input; /** * TCP socket timeout in seconds. If not set, PVE default is `1`. */ timeout?: pulumi.Input; /** * Plugin type. Choice is between `graphite` | `influxdb` | `opentelemetry`. */ type?: pulumi.Input; } /** * The set of arguments for constructing a Server resource. */ export interface ServerArgs { /** * Set this to `true` to disable this metric server. Defaults to `false`. */ disable?: pulumi.Input; /** * Root graphite path (ex: `proxmox.mycluster.mykey`). */ graphitePath?: pulumi.Input; /** * Protocol to send graphite data. Choice is between `udp` | `tcp`. If not set, PVE default is `udp`. */ graphiteProto?: pulumi.Input; /** * An API path prefix inserted between `:/` and `/api2/`. Can be useful if the InfluxDB service runs behind a reverse proxy. */ influxApiPathPrefix?: pulumi.Input; /** * The InfluxDB bucket/db. Only necessary when using the http v2 api. */ influxBucket?: pulumi.Input; /** * Protocol for InfluxDB. Choice is between `udp` | `http` | `https`. If not set, PVE default is `udp`. */ influxDbProto?: pulumi.Input; /** * InfluxDB max-body-size in bytes. Requests are batched up to this size. If not set, PVE default is `25000000`. */ influxMaxBodySize?: pulumi.Input; /** * The InfluxDB organization. Only necessary when using the http v2 api. Has no meaning when using v2 compatibility api. */ influxOrganization?: pulumi.Input; /** * The InfluxDB access token. Only necessary when using the http v2 api. If the v2 compatibility api is used, use `user:password` instead. */ influxToken?: pulumi.Input; /** * Set to `false` to disable certificate verification for https endpoints. If not set, PVE default is `true`. */ influxVerify?: pulumi.Input; /** * MTU (maximum transmission unit) for metrics transmission over UDP. If not set, PVE default is `1500` (allowed `512` - `65536`). */ mtu?: pulumi.Input; /** * Unique name that will be ID of this metric server in PVE. */ name?: pulumi.Input; /** * OpenTelemetry compression algorithm for requests. Choice is between `none` | `gzip`. If not set, PVE default is `gzip`. */ opentelemetryCompression?: pulumi.Input; /** * OpenTelemetry custom HTTP headers as JSON, base64 encoded. */ opentelemetryHeaders?: pulumi.Input; /** * OpenTelemetry maximum request body size in bytes. If not set, PVE default is `10000000`. */ opentelemetryMaxBodySize?: pulumi.Input; /** * OpenTelemetry endpoint path (e.g., `/v1/metrics`). */ opentelemetryPath?: pulumi.Input; /** * Protocol for OpenTelemetry. Choice is between `http` | `https`. If not set, PVE default is `https`. */ opentelemetryProto?: pulumi.Input; /** * OpenTelemetry additional resource attributes as JSON, base64 encoded. */ opentelemetryResourceAttributes?: pulumi.Input; /** * OpenTelemetry HTTP request timeout in seconds. If not set, PVE default is `5`. */ opentelemetryTimeout?: pulumi.Input; /** * OpenTelemetry verify SSL certificates. If not set, PVE default is `true`. */ opentelemetryVerifySsl?: pulumi.Input; /** * Server network port. */ port: pulumi.Input; /** * Server dns name or IP address. */ server: pulumi.Input; /** * TCP socket timeout in seconds. If not set, PVE default is `1`. */ timeout?: pulumi.Input; /** * Plugin type. Choice is between `graphite` | `influxdb` | `opentelemetry`. */ type: pulumi.Input; } //# sourceMappingURL=server.d.ts.map