Documentation ¶
Index ¶
- Constants
- Variables
- type ConfGen
- func (cg *ConfGen) Dedupe()
- func (cg *ConfGen) GenerateFlowlogs2PipelineConfig() config.ConfigFileStruct
- func (cg *ConfGen) GenerateTruncatedConfig(stages []string) config.ConfigFileStruct
- func (*ConfGen) GetDefinitionFiles(rootPath string) []string
- func (cg *ConfGen) ParseConfigFile(fileName string) (*Config, error)
- func (cg *ConfGen) Run() error
- type Config
- type ConfigEncode
- type ConfigIngest
- type ConfigTransform
- type ConfigVisualization
- type ConfigVisualizationGrafana
- type ConfigVisualizationGrafanaDashboard
- type ConfigVisualizationGrafanaDashboards
- type ConfigWrite
- type Dashboard
- type Dashboards
- type DefFile
- type Definition
- type Definitions
- type Options
- type Visualization
- type VisualizationGrafana
- type Visualizations
Constants ¶
View Source
const TypeGrafana = "grafana"
Variables ¶
View Source
var (
Opt = Options{}
)
Functions ¶
This section is empty.
Types ¶
type ConfGen ¶
type ConfGen struct {
// contains filtered or unexported fields
}
func NewConfGen ¶
func (*ConfGen) GenerateFlowlogs2PipelineConfig ¶ added in v0.1.3
func (cg *ConfGen) GenerateFlowlogs2PipelineConfig() config.ConfigFileStruct
func (*ConfGen) GenerateTruncatedConfig ¶ added in v0.1.3
func (cg *ConfGen) GenerateTruncatedConfig(stages []string) config.ConfigFileStruct
func (*ConfGen) GetDefinitionFiles ¶
func (*ConfGen) ParseConfigFile ¶ added in v0.1.3
type Config ¶
type Config struct { Description string `yaml:"description"` Ingest ConfigIngest `yaml:"ingest"` Transform ConfigTransform `yaml:"transform"` Write ConfigWrite `yaml:"write"` Encode ConfigEncode `yaml:"encode"` Visualization ConfigVisualization `yaml:"visualization"` }
type ConfigEncode ¶
type ConfigEncode struct {
Prom api.PromEncode `yaml:"prom"`
}
type ConfigIngest ¶
type ConfigIngest struct {
Collector api.IngestCollector `yaml:"collector"`
}
type ConfigTransform ¶
type ConfigTransform struct {
Generic api.TransformGeneric `yaml:"generic"`
}
type ConfigVisualization ¶
type ConfigVisualization struct {
Grafana ConfigVisualizationGrafana `yaml:"grafana"`
}
type ConfigVisualizationGrafana ¶
type ConfigVisualizationGrafana struct {
Dashboards ConfigVisualizationGrafanaDashboards `yaml:"dashboards"`
}
type ConfigVisualizationGrafanaDashboards ¶
type ConfigVisualizationGrafanaDashboards []ConfigVisualizationGrafanaDashboard
type ConfigWrite ¶
type Dashboards ¶
type DefFile ¶
type DefFile struct { Description string `yaml:"description"` Details string `yaml:"details"` Usage string `yaml:"usage"` Tags []string `yaml:"tags"` Transform map[string]interface{} `yaml:"transform"` Extract map[string]interface{} `yaml:"extract"` Encode map[string]interface{} `yaml:"encode"` Visualization Visualization `yaml:"visualization"` }
type Definition ¶
type Definition struct { FileName string Description string Details string Usage string Tags []string TransformNetwork *api.TransformNetwork AggregateDefinitions *aggregate.Definitions PromEncode *api.PromEncode Visualization *Visualization }
type Definitions ¶
type Definitions []Definition
type Visualization ¶
type Visualization struct { Type string `yaml:"type"` Grafana []VisualizationGrafana `yaml:"grafana"` }
type VisualizationGrafana ¶
type Visualizations ¶
type Visualizations []Visualization
Click to show internal directories.
Click to hide internal directories.