import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to get information about a prometheus of a database cluster associated with a public cloud project. For mongodb, please use ovh.CloudProjectDatabase.MongoDbPrometheus datasource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const prometheus = ovh.CloudProject.getPrometheus({ * serviceName: "XXX", * engine: "YYY", * clusterId: "ZZZ", * }); * export const name = prometheus.then(prometheus => prometheus.username); * ``` */ export declare function getPrometheus(args: GetPrometheusArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPrometheus. */ export interface GetPrometheusArgs { /** * Cluster ID */ clusterId: string; /** * The engine of the database cluster you want user information. To get a full list of available engine visit : [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). Available engines: */ engine: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: string; } /** * A collection of values returned by getPrometheus. */ export interface GetPrometheusResult { /** * See Argument Reference above. */ readonly clusterId: string; /** * See Argument Reference above. */ readonly engine: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * See Argument Reference above. */ readonly serviceName: string; /** * List of all endpoint targets. * * `Host` - Host of the endpoint. * * `Port` - Connection port for the endpoint. */ readonly targets: outputs.CloudProject.GetPrometheusTarget[]; /** * name of the prometheus user. */ readonly username: string; } /** * Use this data source to get information about a prometheus of a database cluster associated with a public cloud project. For mongodb, please use ovh.CloudProjectDatabase.MongoDbPrometheus datasource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const prometheus = ovh.CloudProject.getPrometheus({ * serviceName: "XXX", * engine: "YYY", * clusterId: "ZZZ", * }); * export const name = prometheus.then(prometheus => prometheus.username); * ``` */ export declare function getPrometheusOutput(args: GetPrometheusOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPrometheus. */ export interface GetPrometheusOutputArgs { /** * Cluster ID */ clusterId: pulumi.Input; /** * The engine of the database cluster you want user information. To get a full list of available engine visit : [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases). Available engines: */ engine: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName: pulumi.Input; }