metrics

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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