Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Datasources: Add xpack option #81

Merged
merged 1 commit into from
May 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ type JSONData struct {
LogMessageField string `json:"logMessageField,omitempty"`
LogLevelField string `json:"logLevelField,omitempty"`
MaxConcurrentShardRequests int64 `json:"maxConcurrentShardRequests,omitempty"`
XpackEnabled bool `json:"xpack"`

// Used by Cloudwatch
CustomMetricsNamespaces string `json:"customMetricsNamespaces,omitempty"`
Expand Down Expand Up @@ -142,7 +143,7 @@ type JSONData struct {
// Used by PostgreSQL
Sslmode string `json:"sslmode,omitempty"`
PostgresVersion int64 `json:"postgresVersion,omitempty"`
Timescaledb bool `json:"timescaledb,omitempty"`
Timescaledb bool `json:"timescaledb"`

// Used by MySQL, PostgreSQL and MSSQL
MaxOpenConns int64 `json:"maxOpenConns,omitempty"`
Expand All @@ -161,14 +162,14 @@ type JSONData struct {

// Used by Prometheus and Elasticsearch
SigV4AssumeRoleArn string `json:"sigV4AssumeRoleArn,omitempty"`
SigV4Auth bool `json:"sigV4Auth,omitempty"`
SigV4Auth bool `json:"sigV4Auth"`
SigV4AuthType string `json:"sigV4AuthType,omitempty"`
SigV4ExternalID string `json:"sigV4ExternalID,omitempty"`
SigV4Profile string `json:"sigV4Profile,omitempty"`
SigV4Region string `json:"sigV4Region,omitempty"`

// Used by Prometheus and Loki
ManageAlerts bool `json:"manageAlerts,omitempty"`
ManageAlerts bool `json:"manageAlerts"`
AlertmanagerUID string `json:"alertmanagerUid,omitempty"`

// Used by Alertmanager
Expand All @@ -184,7 +185,7 @@ type JSONData struct {
Version string `json:"version,omitempty"`

// Used by Azure Monitor
AzureLogAnalyticsSameAs bool `json:"azureLogAnalyticsSameAs,omitempty"`
AzureLogAnalyticsSameAs bool `json:"azureLogAnalyticsSameAs"`
ClientID string `json:"clientId,omitempty"`
CloudName string `json:"cloudName,omitempty"`
LogAnalyticsClientID string `json:"logAnalyticsClientId,omitempty"`
Expand Down