config

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuth

func GetAuth(ctx *pulumi.Context) string

API token, basic auth in the `username:password` format or `anonymous` (string literal). May alternatively be set via the `GRAFANA_AUTH` environment variable.

func GetCaCert

func GetCaCert(ctx *pulumi.Context) string

Certificate CA bundle to use to verify the Grafana server's certificate. May alternatively be set via the `GRAFANA_CA_CERT` environment variable.

func GetCloudApiKey

func GetCloudApiKey(ctx *pulumi.Context) string

API key for Grafana Cloud. May alternatively be set via the `GRAFANA_CLOUD_API_KEY` environment variable.

func GetCloudApiUrl

func GetCloudApiUrl(ctx *pulumi.Context) string

Grafana Cloud's API URL. May alternatively be set via the `GRAFANA_CLOUD_API_URL` environment variable.

func GetHttpHeaders

func GetHttpHeaders(ctx *pulumi.Context) string

Optional. HTTP headers mapping keys to values used for accessing the Grafana and Grafana Cloud APIs. May alternatively be set via the `GRAFANA_HTTP_HEADERS` environment variable in JSON format.

func GetInsecureSkipVerify

func GetInsecureSkipVerify(ctx *pulumi.Context) bool

Skip TLS certificate verification. May alternatively be set via the `GRAFANA_INSECURE_SKIP_VERIFY` environment variable.

func GetOncallAccessToken

func GetOncallAccessToken(ctx *pulumi.Context) string

A Grafana OnCall access token. May alternatively be set via the `GRAFANA_ONCALL_ACCESS_TOKEN` environment variable.

func GetOncallUrl

func GetOncallUrl(ctx *pulumi.Context) string

An Grafana OnCall backend address. May alternatively be set via the `GRAFANA_ONCALL_URL` environment variable.

func GetOrgId

func GetOrgId(ctx *pulumi.Context) int

The default organization id to operate on within grafana. For resources that have an `org_id` attribute, the resource-level attribute has priority. May alternatively be set via the `GRAFANA_ORG_ID` environment variable.

func GetRetries

func GetRetries(ctx *pulumi.Context) int

The amount of retries to use for Grafana API and Grafana Cloud API calls. May alternatively be set via the `GRAFANA_RETRIES` environment variable.

func GetSmAccessToken

func GetSmAccessToken(ctx *pulumi.Context) string

A Synthetic Monitoring access token. May alternatively be set via the `GRAFANA_SM_ACCESS_TOKEN` environment variable.

func GetSmUrl

func GetSmUrl(ctx *pulumi.Context) string

Synthetic monitoring backend address. May alternatively be set via the `GRAFANA_SM_URL` environment variable. The correct value for each service region is cited in the [Synthetic Monitoring documentation](https://grafana.com/docs/grafana-cloud/synthetic-monitoring/private-probes/#probe-api-server-url). Note the `sm_url` value is optional, but it must correspond with the value specified as the `region_slug` in the `grafana_cloud_stack` resource. Also note that when a Terraform configuration contains multiple provider instances managing SM resources associated with the same Grafana stack, specifying an explicit `sm_url` set to the same value for each provider ensures all providers interact with the same SM API.

func GetStoreDashboardSha256

func GetStoreDashboardSha256(ctx *pulumi.Context) bool

Set to true if you want to save only the sha256sum instead of complete dashboard model JSON in the tfstate.

func GetTlsCert

func GetTlsCert(ctx *pulumi.Context) string

Client TLS certificate file to use to authenticate to the Grafana server. May alternatively be set via the `GRAFANA_TLS_CERT` environment variable.

func GetTlsKey

func GetTlsKey(ctx *pulumi.Context) string

Client TLS key file to use to authenticate to the Grafana server. May alternatively be set via the `GRAFANA_TLS_KEY` environment variable.

func GetUrl

func GetUrl(ctx *pulumi.Context) string

The root URL of a Grafana server. May alternatively be set via the `GRAFANA_URL` environment variable.

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL