Documentation
¶
Overview ¶
The metrics package defines prometheus metric types and provides convenience methods to add accounting to embargo service..
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Measures the number of tar files that was processed by embargo service. // Provides metrics: // embargo_tar_input_total // Example usage: // metrics.Metrics_embargoTarTotal.WithLabelValues("sidestream", "success").Inc() Metrics_embargoTarInputTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "embargo_tar_input_total", Help: "Number of tar files that were processed by embargo app engine.", }, []string{"dataset", "status"}) // Measures the number of output tar files by embargo service. // Provides metrics: // embargo_tar_output_total // Example usage: // metrics.Metrics_embargoTarOutputTotal.WithLabelValues("sidestream", "public").Inc() Metrics_embargoTarOutputTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "embargo_tar_output_total", Help: "Number of tar output files by embargo app engine.", }, []string{"dataset", "status"}) // Measures the number of web100 files that were processed by embargo service. // Provides metrics: // embargo_file_total // Example usage: // metrics.Metrics_embargoTestTotal.WithLabelValues("sidestream", "private").Inc() Metrics_embargoFileTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "embargo_file_total", Help: "Number of web100 sidestream files that were processed by embargo app engine.", }, []string{"dataset", "status"}) // Measures the number of tar files that was unembargoed by daily unembargo cron job. // Provides metrics: // unembargo_tar_total // Example usage: // metrics.Metrics_unembargoTarTotal.WithLabelValues("sidestream").Inc() Metrics_unembargoTarTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "unembargo_tar_total", Help: "Number of sidestream tar files that were unembargoed.", }, []string{"dataset"}) // IPv6ErrorsTotal counts the kinds of errors encountered when normalizing IPv6 addresses. // Provides metrics: // embargo_ipv6_errors_total // Example usage: // metrics.IPv6ErrorsTotal.WithLabelValues(err.Error()).Inc() IPv6ErrorsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "embargo_ipv6_errors_total", Help: "Number of failures normalizing IPv6 addresses.", }, []string{"error"}) )
Functions ¶
func SetupPrometheus ¶
func SetupPrometheus()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.