# SQLServerPrometheusExporterProperty

The SQL prometheus exporter settings.

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `prometheusPort`: string (required) — Prometheus exporter port.

- `sqlSecretName`: string (required) — Secret name which managers SQL exporter connection.

  e.g. {"data_source_name": "sqlserver://<USERNAME>:<PASSWORD>@localhost:1433"}
