SQLServerPrometheusExporterProperty Struct
The SQL prometheus exporter settings.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const sQLServerPrometheusExporterProperty: applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty = {
prometheusPort: 'prometheusPort',
sqlSecretName: 'sqlSecretName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationinsights as applicationinsights
s_ql_server_prometheus_exporter_property = applicationinsights.CfnApplication.SQLServerPrometheusExporterProperty(
prometheus_port="prometheusPort",
sql_secret_name="sqlSecretName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationinsights.*;
SQLServerPrometheusExporterProperty sQLServerPrometheusExporterProperty = SQLServerPrometheusExporterProperty.builder()
.prometheusPort("prometheusPort")
.sqlSecretName("sqlSecretName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationInsights;
var sQLServerPrometheusExporterProperty = new SQLServerPrometheusExporterProperty {
PrometheusPort = "prometheusPort",
SqlSecretName = "sqlSecretName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
sQLServerPrometheusExporterProperty := &SQLServerPrometheusExporterProperty{
PrometheusPort: jsii.String("prometheusPort"),
SqlSecretName: jsii.String("sqlSecretName"),
}
Properties
prometheusPortstringprometheus_portstrprometheusPortStringPrometheusPortstringPrometheusPort*string required #Prometheus exporter port.
sqlSecretNamestringsql_secret_namestrsqlSecretNameStringSqlSecretNamestringSqlSecretName*string required #Secret name which managers SQL exporter connection.
e.g. {"data_source_name": "sqlserver://<USERNAME>:<PASSWORD>@localhost:1433"}