Google Cloud (GCP) Classic
getMeshIstioService
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
An Mesh Istio monitoring service is automatically created by GCP to monitor Mesh Istio services.
To get more information about Service, see:
Example Usage
Monitoring Mesh Istio Service
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var @default = Output.Create(Gcp.Monitoring.GetMeshIstioService.InvokeAsync(new Gcp.Monitoring.GetMeshIstioServiceArgs
{
MeshUid = "proj-573164786102",
ServiceName = "prometheus",
ServiceNamespace = "istio-system",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/monitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := monitoring.GetMeshIstioService(ctx, &monitoring.GetMeshIstioServiceArgs{
MeshUid: "proj-573164786102",
ServiceName: "prometheus",
ServiceNamespace: "istio-system",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = Output.of(MonitoringFunctions.getMeshIstioService(GetMeshIstioServiceArgs.builder()
.meshUid("proj-573164786102")
.serviceName("prometheus")
.serviceNamespace("istio-system")
.build()));
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.monitoring.get_mesh_istio_service(mesh_uid="proj-573164786102",
service_name="prometheus",
service_namespace="istio-system")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
// Monitors the default MeshIstio service
const defaultMeshIstioService = pulumi.output(gcp.monitoring.getMeshIstioService({
meshUid: "proj-573164786102",
serviceName: "prometheus",
serviceNamespace: "istio-system",
}));
variables:
default:
Fn::Invoke:
Function: gcp:monitoring:getMeshIstioService
Arguments:
meshUid: proj-573164786102
serviceName: prometheus
serviceNamespace: istio-system
Using getMeshIstioService
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 getMeshIstioService(args: GetMeshIstioServiceArgs, opts?: InvokeOptions): Promise<GetMeshIstioServiceResult>
function getMeshIstioServiceOutput(args: GetMeshIstioServiceOutputArgs, opts?: InvokeOptions): Output<GetMeshIstioServiceResult>
def get_mesh_istio_service(mesh_uid: Optional[str] = None,
project: Optional[str] = None,
service_name: Optional[str] = None,
service_namespace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMeshIstioServiceResult
def get_mesh_istio_service_output(mesh_uid: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
service_namespace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMeshIstioServiceResult]
func GetMeshIstioService(ctx *Context, args *GetMeshIstioServiceArgs, opts ...InvokeOption) (*GetMeshIstioServiceResult, error)
func GetMeshIstioServiceOutput(ctx *Context, args *GetMeshIstioServiceOutputArgs, opts ...InvokeOption) GetMeshIstioServiceResultOutput
> Note: This function is named GetMeshIstioService
in the Go SDK.
public static class GetMeshIstioService
{
public static Task<GetMeshIstioServiceResult> InvokeAsync(GetMeshIstioServiceArgs args, InvokeOptions? opts = null)
public static Output<GetMeshIstioServiceResult> Invoke(GetMeshIstioServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeshIstioServiceResult> getMeshIstioService(GetMeshIstioServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: gcp:monitoring/getMeshIstioService:getMeshIstioService
Arguments:
# Arguments dictionary
The following arguments are supported:
- Mesh
Uid string Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- Service
Name string The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- Service
Namespace string The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- Mesh
Uid string Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- Service
Name string The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- Service
Namespace string The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- mesh
Uid String Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- service
Name String The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service
Namespace String The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- mesh
Uid string Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- service
Name string The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service
Namespace string The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- mesh_
uid str Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- service_
name str The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service_
namespace str The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
- mesh
Uid String Identifier for the mesh in which this Istio service is defined. Corresponds to the meshUid metric label in Istio metrics.
- service
Name String The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.
- service
Namespace String The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace 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.
getMeshIstioService Result
The following output properties are available:
- Display
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Mesh
Uid string - Name string
- Service
Id string - Service
Name string - Service
Namespace string - Telemetries
List<Get
Mesh Istio Service Telemetry> - Project string
- Display
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Mesh
Uid string - Name string
- Service
Id string - Service
Name string - Service
Namespace string - Telemetries
[]Get
Mesh Istio Service Telemetry - Project string
- display
Name String - id String
The provider-assigned unique ID for this managed resource.
- mesh
Uid String - name String
- service
Id String - service
Name String - service
Namespace String - telemetries
List
Mesh Istio Service Telemetry> - project String
- display
Name string - id string
The provider-assigned unique ID for this managed resource.
- mesh
Uid string - name string
- service
Id string - service
Name string - service
Namespace string - telemetries
Get
Mesh Istio Service Telemetry[] - project string
- display_
name str - id str
The provider-assigned unique ID for this managed resource.
- mesh_
uid str - name str
- service_
id str - service_
name str - service_
namespace str - telemetries
Sequence[Get
Mesh Istio Service Telemetry] - project str
- display
Name String - id String
The provider-assigned unique ID for this managed resource.
- mesh
Uid String - name String
- service
Id String - service
Name String - service
Namespace String - telemetries
List
- project String
Supporting Types
GetMeshIstioServiceTelemetry
- Resource
Name string
- Resource
Name string
- resource
Name String
- resource
Name string
- resource_
name str
- resource
Name String
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.