Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Represents a Grafana Fleet Management collector.
- Official documentation
- API documentation
- Step-by-step guide
Required access policy scopes:
- fleet-management:read
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test = grafana.fleetManagement.getCollector({
id: "my_collector",
});
import pulumi
import pulumi_grafana as grafana
test = grafana.fleetManagement.get_collector(id="my_collector")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/fleetmanagement"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetmanagement.GetCollector(ctx, &fleetmanagement.GetCollectorArgs{
Id: "my_collector",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
return await Deployment.RunAsync(() =>
{
var test = Grafana.FleetManagement.GetCollector.Invoke(new()
{
Id = "my_collector",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.fleetManagement.FleetManagementFunctions;
import com.pulumi.grafana.fleetManagement.inputs.GetCollectorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = FleetManagementFunctions.getCollector(GetCollectorArgs.builder()
.id("my_collector")
.build());
}
}
variables:
test:
fn::invoke:
function: grafana:fleetManagement:getCollector
arguments:
id: my_collector
Using getCollector
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCollector(args: GetCollectorArgs, opts?: InvokeOptions): Promise<GetCollectorResult>
function getCollectorOutput(args: GetCollectorOutputArgs, opts?: InvokeOptions): Output<GetCollectorResult>def get_collector(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCollectorResult
def get_collector_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCollectorResult]func LookupCollector(ctx *Context, args *LookupCollectorArgs, opts ...InvokeOption) (*LookupCollectorResult, error)
func LookupCollectorOutput(ctx *Context, args *LookupCollectorOutputArgs, opts ...InvokeOption) LookupCollectorResultOutput> Note: This function is named LookupCollector in the Go SDK.
public static class GetCollector
{
public static Task<GetCollectorResult> InvokeAsync(GetCollectorArgs args, InvokeOptions? opts = null)
public static Output<GetCollectorResult> Invoke(GetCollectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCollectorResult> getCollector(GetCollectorArgs args, InvokeOptions options)
public static Output<GetCollectorResult> getCollector(GetCollectorArgs args, InvokeOptions options)
fn::invoke:
function: grafana:fleetManagement/getCollector:getCollector
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- ID of the collector
- Id string
- ID of the collector
- id String
- ID of the collector
- id string
- ID of the collector
- id str
- ID of the collector
- id String
- ID of the collector
getCollector Result
The following output properties are available:
- Collector
Type string - Type of the collector (ALLOY or OTEL)
- Enabled bool
- 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
- Id string
- ID of the collector
- Local
Attributes Dictionary<string, string> - Local attributes for the collector
- Remote
Attributes Dictionary<string, string> - Remote attributes for the collector
- Collector
Type string - Type of the collector (ALLOY or OTEL)
- Enabled bool
- 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
- Id string
- ID of the collector
- Local
Attributes map[string]string - Local attributes for the collector
- Remote
Attributes map[string]string - Remote attributes for the collector
- collector
Type String - Type of the collector (ALLOY or OTEL)
- enabled Boolean
- 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
- id String
- ID of the collector
- local
Attributes Map<String,String> - Local attributes for the collector
- remote
Attributes Map<String,String> - Remote attributes for the collector
- collector
Type string - Type of the collector (ALLOY or OTEL)
- enabled boolean
- 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
- id string
- ID of the collector
- local
Attributes {[key: string]: string} - Local attributes for the collector
- remote
Attributes {[key: string]: string} - Remote attributes for the collector
- collector_
type str - Type of the collector (ALLOY or OTEL)
- enabled bool
- 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
- id str
- ID of the collector
- local_
attributes Mapping[str, str] - Local attributes for the collector
- remote_
attributes Mapping[str, str] - Remote attributes for the collector
- collector
Type String - Type of the collector (ALLOY or OTEL)
- enabled Boolean
- 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
- id String
- ID of the collector
- local
Attributes Map<String> - Local attributes for the collector
- remote
Attributes Map<String> - Remote attributes for the collector
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
