gcp.monitoring.getIstioCanonicalService
Explore with Pulumi AI
A Monitoring Service is the root resource under which operational aspects of a generic service are accessible. A service is some discrete, autonomous, and network-accessible unit, designed to solve an individual concern
A monitoring Istio Canonical Service is automatically created by GCP to monitor Istio Canonical Services.
To get more information about Service, see:
Example Usage
Monitoring Istio Canonical Service
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// Monitors the default MeshIstio service
const default = gcp.monitoring.getIstioCanonicalService({
meshUid: "proj-573164786102",
canonicalServiceNamespace: "istio-system",
canonicalService: "prometheus",
});
import pulumi
import pulumi_gcp as gcp
# Monitors the default MeshIstio service
default = gcp.monitoring.get_istio_canonical_service(mesh_uid="proj-573164786102",
canonical_service_namespace="istio-system",
canonical_service="prometheus")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/monitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Monitors the default MeshIstio service
_, err := monitoring.GetIstioCanonicalService(ctx, &monitoring.GetIstioCanonicalServiceArgs{
MeshUid: "proj-573164786102",
CanonicalServiceNamespace: "istio-system",
CanonicalService: "prometheus",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
// Monitors the default MeshIstio service
var @default = Gcp.Monitoring.GetIstioCanonicalService.Invoke(new()
{
MeshUid = "proj-573164786102",
CanonicalServiceNamespace = "istio-system",
CanonicalService = "prometheus",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.monitoring.MonitoringFunctions;
import com.pulumi.gcp.monitoring.inputs.GetIstioCanonicalServiceArgs;
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) {
// Monitors the default MeshIstio service
final var default = MonitoringFunctions.getIstioCanonicalService(GetIstioCanonicalServiceArgs.builder()
.meshUid("proj-573164786102")
.canonicalServiceNamespace("istio-system")
.canonicalService("prometheus")
.build());
}
}
variables:
# Monitors the default MeshIstio service
default:
fn::invoke:
Function: gcp:monitoring:getIstioCanonicalService
Arguments:
meshUid: proj-573164786102
canonicalServiceNamespace: istio-system
canonicalService: prometheus
Using getIstioCanonicalService
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 getIstioCanonicalService(args: GetIstioCanonicalServiceArgs, opts?: InvokeOptions): Promise<GetIstioCanonicalServiceResult>
function getIstioCanonicalServiceOutput(args: GetIstioCanonicalServiceOutputArgs, opts?: InvokeOptions): Output<GetIstioCanonicalServiceResult>
def get_istio_canonical_service(canonical_service: Optional[str] = None,
canonical_service_namespace: Optional[str] = None,
mesh_uid: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIstioCanonicalServiceResult
def get_istio_canonical_service_output(canonical_service: Optional[pulumi.Input[str]] = None,
canonical_service_namespace: Optional[pulumi.Input[str]] = None,
mesh_uid: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIstioCanonicalServiceResult]
func GetIstioCanonicalService(ctx *Context, args *GetIstioCanonicalServiceArgs, opts ...InvokeOption) (*GetIstioCanonicalServiceResult, error)
func GetIstioCanonicalServiceOutput(ctx *Context, args *GetIstioCanonicalServiceOutputArgs, opts ...InvokeOption) GetIstioCanonicalServiceResultOutput
> Note: This function is named GetIstioCanonicalService
in the Go SDK.
public static class GetIstioCanonicalService
{
public static Task<GetIstioCanonicalServiceResult> InvokeAsync(GetIstioCanonicalServiceArgs args, InvokeOptions? opts = null)
public static Output<GetIstioCanonicalServiceResult> Invoke(GetIstioCanonicalServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIstioCanonicalServiceResult> getIstioCanonicalService(GetIstioCanonicalServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:monitoring/getIstioCanonicalService:getIstioCanonicalService
arguments:
# arguments dictionary
The following arguments are supported:
- Canonical
Service string The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
Other optional fields include:
- Canonical
Service stringNamespace - The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
- Mesh
Uid string - Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Canonical
Service string The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
Other optional fields include:
- Canonical
Service stringNamespace - The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
- Mesh
Uid string - Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- canonical
Service String The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
Other optional fields include:
- canonical
Service StringNamespace - The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
- mesh
Uid String - Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- canonical
Service string The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
Other optional fields include:
- canonical
Service stringNamespace - The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
- mesh
Uid string - Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- canonical_
service str The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
Other optional fields include:
- canonical_
service_ strnamespace - The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
- mesh_
uid str - Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- canonical
Service String The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics.
Other optional fields include:
- canonical
Service StringNamespace - The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics.
- mesh
Uid String - Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
getIstioCanonicalService Result
The following output properties are available:
- Canonical
Service string - Canonical
Service stringNamespace - Display
Name string - Name used for UI elements listing this (Monitoring) Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mesh
Uid string - Name string
- The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/services/[SERVICE_ID]
. - Service
Id string - Telemetries
List<Get
Istio Canonical Service Telemetry> - Configuration for how to query telemetry on the Service. Structure is documented below.
- User
Labels Dictionary<string, string> - Project string
- Canonical
Service string - Canonical
Service stringNamespace - Display
Name string - Name used for UI elements listing this (Monitoring) Service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mesh
Uid string - Name string
- The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/services/[SERVICE_ID]
. - Service
Id string - Telemetries
[]Get
Istio Canonical Service Telemetry - Configuration for how to query telemetry on the Service. Structure is documented below.
- User
Labels map[string]string - Project string
- canonical
Service String - canonical
Service StringNamespace - display
Name String - Name used for UI elements listing this (Monitoring) Service.
- id String
- The provider-assigned unique ID for this managed resource.
- mesh
Uid String - name String
- The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/services/[SERVICE_ID]
. - service
Id String - telemetries
List<Get
Istio Canonical Service Telemetry> - Configuration for how to query telemetry on the Service. Structure is documented below.
- user
Labels Map<String,String> - project String
- canonical
Service string - canonical
Service stringNamespace - display
Name string - Name used for UI elements listing this (Monitoring) Service.
- id string
- The provider-assigned unique ID for this managed resource.
- mesh
Uid string - name string
- The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/services/[SERVICE_ID]
. - service
Id string - telemetries
Get
Istio Canonical Service Telemetry[] - Configuration for how to query telemetry on the Service. Structure is documented below.
- user
Labels {[key: string]: string} - project string
- canonical_
service str - canonical_
service_ strnamespace - display_
name str - Name used for UI elements listing this (Monitoring) Service.
- id str
- The provider-assigned unique ID for this managed resource.
- mesh_
uid str - name str
- The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/services/[SERVICE_ID]
. - service_
id str - telemetries
Sequence[Get
Istio Canonical Service Telemetry] - Configuration for how to query telemetry on the Service. Structure is documented below.
- user_
labels Mapping[str, str] - project str
- canonical
Service String - canonical
Service StringNamespace - display
Name String - Name used for UI elements listing this (Monitoring) Service.
- id String
- The provider-assigned unique ID for this managed resource.
- mesh
Uid String - name String
- The full REST resource name for this channel. The syntax is:
projects/[PROJECT_ID]/services/[SERVICE_ID]
. - service
Id String - telemetries List<Property Map>
- Configuration for how to query telemetry on the Service. Structure is documented below.
- user
Labels Map<String> - project String
Supporting Types
GetIstioCanonicalServiceTelemetry
- Resource
Name string - The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.
- Resource
Name string - The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.
- resource
Name String - The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.
- resource
Name string - The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.
- resource_
name str - The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.
- resource
Name String - The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.