UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

95 lines (94 loc) 2.62 kB
import * as pulumi from "@pulumi/pulumi"; /** * Represents a Grafana Fleet Management collector. * * * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/) * * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/) * * Step-by-step guide * * Required access policy scopes: * * * fleet-management:read * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = grafana.fleetManagement.getCollector({ * id: "my_collector", * }); * ``` */ export declare function getCollector(args: GetCollectorArgs, opts?: pulumi.InvokeOptions): Promise<GetCollectorResult>; /** * A collection of arguments for invoking getCollector. */ export interface GetCollectorArgs { /** * ID of the collector */ id: string; } /** * A collection of values returned by getCollector. */ export interface GetCollectorResult { /** * Type of the collector (ALLOY or OTEL) */ readonly collectorType: string; /** * Whether remote configuration for the collector is enabled or not. If the collector is disabled, it will receive empty configurations from the Fleet Management service */ readonly enabled: boolean; /** * ID of the collector */ readonly id: string; /** * Local attributes for the collector */ readonly localAttributes: { [key: string]: string; }; /** * Remote attributes for the collector */ readonly remoteAttributes: { [key: string]: string; }; } /** * Represents a Grafana Fleet Management collector. * * * [Official documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/) * * [API documentation](https://grafana.com/docs/grafana-cloud/send-data/fleet-management/api-reference/collector-api/) * * Step-by-step guide * * Required access policy scopes: * * * fleet-management:read * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumiverse/grafana"; * * const test = grafana.fleetManagement.getCollector({ * id: "my_collector", * }); * ``` */ export declare function getCollectorOutput(args: GetCollectorOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCollectorResult>; /** * A collection of arguments for invoking getCollector. */ export interface GetCollectorOutputArgs { /** * ID of the collector */ id: pulumi.Input<string>; }