The Prometheus Observability provider manages the collection of various metrics for Tegola's various subsystems.
The connection between Tegola and Prometheus is configured in the Tegola config
file (tegola.toml
.) An example of minimum configuration :
[observer]
type = "prometheus"
The metrics will be exposed on the /metrics
end point.
type
(string): [Required] the type of the observer, must be "prometheus
".variables
(array of strings): [Optional] A set of tokens that should be replaced in the url for HTTP or additional labels for cache providers. Currently, supported tokenks are::map_name
[Default]:layer_name
[Default]:z
[Default]:x
:y
push_url
(string) : [Optional] To push to a Prometheus Gateway, set the push_url to the gateway's URL. Note: this should only be used for ephemeral jobs, such astegola cache seed
ortegola cache pruge
commands.push_cadence
(int) : [Optional] How often to push to the Prometheus Gateway. Defaults to 10 secs. Use a zero or less to only push at the end of the process.
A gauge with build information from the running command
- branch - the git branch this binary was built on if set
- revision - the git short revision number
- version - the set version number
- command - the running command
- tags - the build tags that were used to build the Tegola Binary
Use this in conjunction with other command to compare metrics across versions of the application.
A histogram of latencies for requests.
As part of a histogram include the support tags:
- tegola_api_duration_seconds_sum
- tegola_api_duration_seconds_count
- handler is the URL with variables substituted in as requested.
- method is the HTTP method used to request the resource
- le is the buckets in seconds
A gauge of requests currently being served by the wrapped handler.
A counter for requests to the wrapped handler.
- code is the returned HTTP code
A histogram of response sizes in bytes for requests.
As part of a histogram include the support tags:
- tegola_api_response_size_sum
- tegola_api_response_size_count
- le is the buckets in bytes
A histogram of latencies for requests.
As part of a histogram include the support tags:
- tegola_viewer_duration_seconds_sum
- tegola_viewer_duration_seconds_count
- handler is the URL for the requested resource
- method is the HTTP method used to request the resource
- le is the buckets in seconds
A gauge of requests currently being served by the wrapped handler.
A counter for requests to the wrapped handler.
- code is the returned HTTP code
A histogram of response sizes in bytes for requests.
As part of a histogram include the support tags:
- tegola_viewer_response_size_sum
- tegola_viewer_response_size_count
- le is the buckets in bytes
A gauge of requests currently being handled by the cache
A counter of the number of tile hits
- sub_command is the cache command which is one of "get","set", or "purge"
- layer_name is an optional label, that is the layer_name ; this is only presetn if configured via
variables
config option. - map_name is an optional label, that is the map_name; this is only present if configured via
variables
config option. - z is an optional label, that is the z coordinate; this is only present if configured via
variables
config option. - x is an optional label, that is the x coordinate; this is only present if configured via
variables
config option. - y is an optional label, that is the y coordinate; this is only present if configured via
variables
config option.
A counter of the number of tile hits
- sub_command is the cache command which is one of "get","set", or "purge"
- layer_name is an optional label, that is the layer_name ; this is only presetn if configured via
variables
config option. - map_name is an optional label, that is the map_name; this is only present if configured via
variables
config option. - z is an optional label, that is the z coordinate; this is only present if configured via
variables
config option. - x is an optional label, that is the x coordinate; this is only present if configured via
variables
config option. - y is an optional label, that is the y coordinate; this is only present if configured via
variables
config option.
A histogram of latencies for requests.
As part of a histogram include the support tags:
- tegola_cache_duration_seconds_sum
- tegola_cache_duration_seconds_count
- sub_command is the cache command which is one of "get","set", or "purge"
- layer_name is an optional label, that is the layer_name ; this is only presetn if configured via
variables
config option. - map_name is an optional label, that is the map_name; this is only present if configured via
variables
config option. - z is an optional label, that is the z coordinate; this is only present if configured via
variables
config option. - x is an optional label, that is the x coordinate; this is only present if configured via
variables
config option. - y is an optional label, that is the y coordinate; this is only present if configured via
variables
config option. - le is the buckets in seconds
A histogram of response sizes for requests.
As part of a histogram include the support tags:
- tegola_cache_response_size_sum
- tegola_cache_response_size_count
- sub_command is the cache command which is one of "get","set", or "purge"
- layer_name is an optional label, that is the layer_name ; this is only presetn if configured via
variables
config option. - map_name is an optional label, that is the map_name; this is only present if configured via
variables
config option. - z is an optional label, that is the z coordinate; this is only present if configured via
variables
config option. - x is an optional label, that is the x coordinate; this is only present if configured via
variables
config option. - y is an optional label, that is the y coordinate; this is only present if configured via
variables
config option. - le is the buckets in bytes
A summary of the pause duration of garbage collection cycles.
Number of goroutines that currently exist.
Information about the Go environment.
Number of bytes allocated and still in use.
Total number of bytes allocated, even if freed.
Number of bytes used by the profiling bucket hash table.
Total number of frees.
The fraction of this program's available CPU time used by the GC since the program started.
Number of bytes used for garbage collection system metadata.
Number of heap bytes allocated and still in use.
Number of heap bytes waiting to be used.
Number of heap bytes that are in use.
Number of allocated objects.
Number of heap bytes released to OS.
Number of heap bytes obtained from system.
Number of seconds since 1970 of last garbage collection.
Total number of pointer lookups.
Total number of mallocs.
Number of bytes in use by mcache structures.
Number of bytes used for mcache structures obtained from system.
Number of bytes in use by mspan structures.
Number of bytes used for mspan structures obtained from system.
Number of heap bytes when next garbage collection will take place.
Number of bytes used for other system allocations.
Number of bytes in use by the stack allocator.
Number of bytes obtained from system for stack allocator.
Number of bytes obtained from system.
Number of OS threads created.