-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: influx3.0 support to ingest metrics
Signed-off-by: Praveen Yadav <pyadav9678@gmail.com>
- Loading branch information
Showing
9 changed files
with
45 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,8 +50,7 @@ services: | |
timeout: 3s | ||
retries: 30 | ||
|
||
|
||
volumes: | ||
redis: | ||
driver: local | ||
postgres: | ||
driver: local | ||
redis: {} | ||
postgres: {} |
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
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package ingester | ||
|
||
type Config struct { | ||
Enabled bool `yaml:"enabled" mapstructure:"enabled" json:"enabled,omitempty"` | ||
Provider string `yaml:"provider" mapstructure:"provider" json:"provider,omitempty"` | ||
Influx InfluxConfig `yaml:"influx" mapstructure:"influx" json:"influx,omitempty"` | ||
Enabled bool `yaml:"enabled" mapstructure:"enabled" json:"enabled,omitempty"` | ||
Provider string `yaml:"provider" mapstructure:"provider" json:"provider,omitempty"` | ||
Influx3 Influx3Config `yaml:"influx3" mapstructure:"influx3" json:"influx3,omitempty"` | ||
} | ||
|
||
type InfluxConfig struct { | ||
type Influx3Config struct { | ||
Host string `yaml:"host" mapstructure:"host" default:"http://localhost:1234" json:"host,omitempty"` | ||
Token string `yaml:"token" mapstructure:"token" json:"token,omitempty"` | ||
Organization string `yaml:"organization" mapstructure:"organization" json:"organization,omitempty"` | ||
Database string `yaml:"database" mapstructure:"database" json:"database,omitempty"` | ||
Measurement string `yaml:"measurement" mapstructure:"measurement" json:"measurement,omitempty" default:"analytics"` | ||
} |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package ingester | ||
|
||
type Ingester interface { | ||
Get(string) ([]map[string]any, error) | ||
Ingest(map[string]any, string) | ||
Get() ([]map[string]any, error) | ||
Ingest(map[string]any) | ||
Close() error | ||
} |
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