@lbrlabs/pulumi-grafana
Version:
A Pulumi package for creating and managing grafana.
165 lines (164 loc) • 5.43 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Besides the public probes run by Grafana Labs, you can also install your
* own private probes. These are only accessible to you and only write data to
* your Grafana Cloud account. Private probes are instances of the open source
* Grafana Synthetic Monitoring Agent.
*
* * [Official documentation](https://grafana.com/docs/grafana-cloud/monitor-public-endpoints/private-probes/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@lbrlabs/pulumi-grafana";
*
* const main = new grafana.SyntheticMonitoringProbe("main", {
* labels: {
* type: "mountain",
* },
* latitude: 27.98606,
* longitude: 86.92262,
* region: "APAC",
* });
* ```
*
* ## Import
*
* ```sh
* $ pulumi import grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe probe {{probe-id}}
* ```
*
* ```sh
* $ pulumi import grafana:index/syntheticMonitoringProbe:SyntheticMonitoringProbe probe {{probe-id}}:{{auth_token}}
* ```
*/
export declare class SyntheticMonitoringProbe extends pulumi.CustomResource {
/**
* Get an existing SyntheticMonitoringProbe 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<pulumi.ID>, state?: SyntheticMonitoringProbeState, opts?: pulumi.CustomResourceOptions): SyntheticMonitoringProbe;
/**
* Returns true if the given object is an instance of SyntheticMonitoringProbe. 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 SyntheticMonitoringProbe;
/**
* The probe authentication token. Your probe must use this to authenticate with Grafana Cloud.
*/
readonly authToken: pulumi.Output<string>;
/**
* Custom labels to be included with collected metrics and logs.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Latitude coordinates.
*/
readonly latitude: pulumi.Output<number>;
/**
* Longitude coordinates.
*/
readonly longitude: pulumi.Output<number>;
/**
* Name of the probe.
*/
readonly name: pulumi.Output<string>;
/**
* Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`. Defaults to `false`.
*/
readonly public: pulumi.Output<boolean | undefined>;
/**
* Region of the probe.
*/
readonly region: pulumi.Output<string>;
/**
* The tenant ID of the probe.
*/
readonly tenantId: pulumi.Output<number>;
/**
* Create a SyntheticMonitoringProbe 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: SyntheticMonitoringProbeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SyntheticMonitoringProbe resources.
*/
export interface SyntheticMonitoringProbeState {
/**
* The probe authentication token. Your probe must use this to authenticate with Grafana Cloud.
*/
authToken?: pulumi.Input<string>;
/**
* Custom labels to be included with collected metrics and logs.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Latitude coordinates.
*/
latitude?: pulumi.Input<number>;
/**
* Longitude coordinates.
*/
longitude?: pulumi.Input<number>;
/**
* Name of the probe.
*/
name?: pulumi.Input<string>;
/**
* Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`. Defaults to `false`.
*/
public?: pulumi.Input<boolean>;
/**
* Region of the probe.
*/
region?: pulumi.Input<string>;
/**
* The tenant ID of the probe.
*/
tenantId?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a SyntheticMonitoringProbe resource.
*/
export interface SyntheticMonitoringProbeArgs {
/**
* Custom labels to be included with collected metrics and logs.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Latitude coordinates.
*/
latitude: pulumi.Input<number>;
/**
* Longitude coordinates.
*/
longitude: pulumi.Input<number>;
/**
* Name of the probe.
*/
name?: pulumi.Input<string>;
/**
* Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`. Defaults to `false`.
*/
public?: pulumi.Input<boolean>;
/**
* Region of the probe.
*/
region: pulumi.Input<string>;
}