metrics

package
v0.0.85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QUERY_ERROR       = "query_error"
	TRANSLATION_ERROR = "translation_error"
	SUCCESS           = "success"
)

Variables

View Source
var DatabaseMetricsGauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
	Name: "go_graphkb_database_metrics_gauge",
	Help: "Metrics gathered from the database",
}, []string{"name"})

DatabaseMetricsGauge reports some technical metrics about the database (database implementation specific)

View Source
var GraphAssetsAggregatedGauge = promauto.NewGauge(prometheus.GaugeOpts{
	Name: "go_graphkb_graph_assets_aggregated_gauge",
	Help: "The number of nodes in the graph with the various datasource graphs merged",
})

GraphAssetsAggregatedGauge reports the number of nodes in the graph with the various sources merged

View Source
var GraphAssetsTotalGauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
	Name: "go_graphkb_graph_assets_total_gauge",
	Help: "The number of nodes in the graph for a given source",
}, []string{"source"})

GraphAssetsTotalGauge reports the number of nodes in the graph of a given source

View Source
var GraphQueryStatusCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_query_status_counter",
	Help: "The number of queries executed by status: (ERROR|SUCCESS)",
}, []string{"status", "user"})
View Source
var GraphQueryTimeExecution = promauto.NewHistogramVec(prometheus.HistogramOpts{
	Name:    "go_graphkb_graph_query_execution_time_ms",
	Help:    "The time execution in ms of queries.",
	Buckets: prometheus.ExponentialBucketsRange(0.1, 1000*60*30, 15),
}, []string{"user"})

GraphQueryTimeExecution reports the time execution in ms for queries.

View Source
var GraphRelationsAggregatedGauge = promauto.NewGauge(prometheus.GaugeOpts{
	Name: "go_graphkb_graph_relations_aggregated_gauge",
	Help: "The number of edges in the graph with the various datasource graphs merged",
})

GraphRelationsAggregatedGauge reports the number of nodes in the graph with the various sources merged

View Source
var GraphRelationsTotalGauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
	Name: "go_graphkb_graph_relations_total_gauge",
	Help: "The number of edges in the graph for a given source",
}, []string{"source"})

GraphRelationsTotalGauge reports the number of nodes in the graph of a given source

View Source
var GraphUpdateAssetsDeletedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_assets_deleted_counter",
	Help: "The number of assets deleted since the start of the process",
}, []string{"source"})

GraphUpdateAssetsDeletedCounter reports the number of assets inserted since the start of the process

View Source
var GraphUpdateAssetsInsertedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_assets_inserted_counter",
	Help: "The number of assets inserted since the start of the process",
}, []string{"source"})

GraphUpdateAssetsInsertedCounter reports the number of assets inserted since the start of the process

View Source
var GraphUpdateRelationsDeletedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_relations_deleted_counter",
	Help: "The number of relations deleted since the start of the process",
}, []string{"source"})

GraphUpdateRelationsDeletedCounter reports the number of relations deleted since the start of the process

View Source
var GraphUpdateRelationsInsertedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_relations_inserted_counter",
	Help: "The number of relations inserted since the start of the process",
}, []string{"source"})

GraphUpdateRelationsInsertedCounter reports the number of relations inserted since the start of the process

View Source
var GraphUpdateRequestsFailedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_requests_failed_counter",
	Help: "The number of failed graph update",
}, []string{"source", "operation"})

GraphUpdateRequestsFailedCounter reports the number of failed update requests

View Source
var GraphUpdateRequestsRateLimitedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_requests_rate_limited_counter",
	Help: "The number of graph updates which were rate limited",
}, []string{"source", "operation"})

GraphUpdateRequestsRateLimitedCounter reports the number of unauthorized updates requests received by the webserver

View Source
var GraphUpdateRequestsReceivedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_requests_received_counter",
	Help: "The number of graph updates (insertion or removal of assets or relations) received. A request is considered received if authorization is valid and the request has not been rate limited",
}, []string{"source", "operation"})

GraphUpdateRequestsReceivedCounter reports the number of authorized and not rate limited updates requests received by the webserver

View Source
var GraphUpdateRequestsSucceededCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_requests_succeeded_counter",
	Help: "The number of succeeded graph update",
}, []string{"source", "operation"})

GraphUpdateRequestsSucceededCounter reports the number of successful update requests

View Source
var GraphUpdateRequestsUnauthorizedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_requests_unauthorized_counter",
	Help: "The number of graph updates which were unauthorized",
}, []string{"source", "operation"})

GraphUpdateRequestsUnauthorizedCounter reports the number of unauthorized updates requests received by the webserver

View Source
var GraphUpdateSchemaUpdatedCounter = promauto.NewCounterVec(prometheus.CounterOpts{
	Name: "go_graphkb_graph_update_schema_updated_counter",
	Help: "The number of assets inserted since the start of the process",
}, []string{"source"})

GraphUpdateSchemaUpdatedCounter reports the number of schema updated since the start of the process

View Source
var LastSuccessfulDatasourceUpdateTimestampGauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
	Name: "go_graphkb_last_successful_datasource_update_timestamp_gauge",
	Help: "The timestamp of the last successful operation of the data source",
}, []string{"source"})

LastSuccessfulDatasourceUpdateTimestampGauge reports the timestamp of the last successful update operation for a given source

View Source
var StartTimeGauge = promauto.NewGauge(prometheus.GaugeOpts{
	Name: "go_graphkb_start_timestamp_gauge",
	Help: "The timestamp of the time when the app started",
})

StartTimeGauge reports the start time of the instance

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL