@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
90 lines • 3.49 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMeshIstioServiceOutput = exports.getMeshIstioService = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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:
*
* * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services)
* * How-to Guides
* * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring)
* * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/)
*
* ## Example Usage
*
* ### Monitoring Mesh Istio Service
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* // Monitors the default MeshIstio service
* const _default = gcp.monitoring.getMeshIstioService({
* meshUid: "proj-573164786102",
* serviceNamespace: "istio-system",
* serviceName: "prometheus",
* });
* ```
*/
function getMeshIstioService(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:monitoring/getMeshIstioService:getMeshIstioService", {
"meshUid": args.meshUid,
"project": args.project,
"serviceName": args.serviceName,
"serviceNamespace": args.serviceNamespace,
}, opts);
}
exports.getMeshIstioService = 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:
*
* * [API documentation](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/services)
* * How-to Guides
* * [Service Monitoring](https://cloud.google.com/monitoring/service-monitoring)
* * [Monitoring API Documentation](https://cloud.google.com/monitoring/api/v3/)
*
* ## Example Usage
*
* ### Monitoring Mesh Istio Service
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* // Monitors the default MeshIstio service
* const _default = gcp.monitoring.getMeshIstioService({
* meshUid: "proj-573164786102",
* serviceNamespace: "istio-system",
* serviceName: "prometheus",
* });
* ```
*/
function getMeshIstioServiceOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:monitoring/getMeshIstioService:getMeshIstioService", {
"meshUid": args.meshUid,
"project": args.project,
"serviceName": args.serviceName,
"serviceNamespace": args.serviceNamespace,
}, opts);
}
exports.getMeshIstioServiceOutput = getMeshIstioServiceOutput;
//# sourceMappingURL=getMeshIstioService.js.map
;