-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates for the qryn opensource and qryn/gigapipe integrations --------- Co-authored-by: akvlad <akvlad90@gmail.com> Co-authored-by: Amir Blum <amirgiraffe@gmail.com>
- Loading branch information
1 parent
06f421a
commit 41db3fd
Showing
9 changed files
with
383 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package config | ||
|
||
import ( | ||
"github.com/odigos-io/odigos/common" | ||
) | ||
|
||
const ( | ||
qrynOssHost = "QRYN_OSS_URL" | ||
qrynOssUsername = "QRYN_OSS_USERNAME" | ||
qrynOssresourceToTelemetryConversion = "QRYN_OSS_RESOURCE_TO_TELEMETRY_CONVERSION" | ||
qrynOssAddExporterName = "QRYN_OSS_ADD_EXPORTER_NAME" | ||
) | ||
|
||
type QrynOSS struct { | ||
*Qryn | ||
} | ||
|
||
type QrynOssDest struct { | ||
ExporterConfigurer | ||
} | ||
|
||
func (d QrynOssDest) GetConfig() map[string]string { | ||
conf := d.ExporterConfigurer.GetConfig() | ||
conf[qrynHost] = conf[qrynOssHost] | ||
conf[qrynAPIKey] = conf[qrynOssUsername] | ||
conf[resourceToTelemetryConversion] = conf[qrynOssresourceToTelemetryConversion] | ||
conf[qrynSecretsOptional] = "1" | ||
conf[qrynAddExporterName] = conf[qrynOssAddExporterName] | ||
conf[qrynPasswordFieldName] = "QRYN_OSS_PASSWORD" | ||
return conf | ||
} | ||
|
||
func (g *QrynOSS) DestType() common.DestinationType { | ||
return common.QrynOSSDestinationType | ||
} | ||
|
||
func (g *QrynOSS) ModifyConfig(dest ExporterConfigurer, currentConfig *Config) error { | ||
return g.Qryn.ModifyConfig(QrynOssDest{dest}, currentConfig) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.