Documentation ¶
Overview ¶
Entry point to the insights results aggregator service.
The service contains consumer (usually Kafka consumer) that consumes messages from given source, processes those messages and stores them in configured data store. It also starts REST API servers with endpoints that expose several types of information: list of organizations, list of clusters for given organization, and cluster health.
Directories ¶
Path | Synopsis |
---|---|
Package broker contains data types, interfaces, and methods related to brokers that can be used to consume input messages by aggegator.
|
Package broker contains data types, interfaces, and methods related to brokers that can be used to consume input messages by aggegator. |
Package conf contains definition of data type named ConfigStruct that represents configuration of Insights Results Aggregator.
|
Package conf contains definition of data type named ConfigStruct that represents configuration of Insights Results Aggregator. |
Package consumer contains interface for any consumer that is able to process messages.
|
Package consumer contains interface for any consumer that is able to process messages. |
Package metrics contains all metrics that needs to be exposed to Prometheus and indirectly to Grafana.
|
Package metrics contains all metrics that needs to be exposed to Prometheus and indirectly to Grafana. |
Package migration contains an implementation of a simple database migration mechanism that allows semi-automatic transitions between various database versions as well as building the latest version of the database from scratch.
|
Package migration contains an implementation of a simple database migration mechanism that allows semi-automatic transitions between various database versions as well as building the latest version of the database from scratch. |
Package producer contains functions that can be used to produce (that is send) messages to properly configured Kafka broker.
|
Package producer contains functions that can be used to produce (that is send) messages to properly configured Kafka broker. |
Package server contains implementation of REST API server (HTTPServer) for the Insights results aggregator service.
|
Package server contains implementation of REST API server (HTTPServer) for the Insights results aggregator service. |
Package storage contains an implementation of interface between Go code and (almost any) SQL database like PostgreSQL or MariaDB.
|
Package storage contains an implementation of interface between Go code and (almost any) SQL database like PostgreSQL or MariaDB. |
Implementation of REST API tests that checks all REST API endpoints of Insights aggregator service.
|
Implementation of REST API tests that checks all REST API endpoints of Insights aggregator service. |
rest
Package tests contains REST API tests for following endpoints:
|
Package tests contains REST API tests for following endpoints: |
Package types contains declaration of various data types (usually structures) used elsewhere in the aggregator code.
|
Package types contains declaration of various data types (usually structures) used elsewhere in the aggregator code. |
Click to show internal directories.
Click to hide internal directories.