Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metrics to Elastic Package Registry #827

Merged
merged 31 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3e7a8a6
Add apm and prometheus packages
mrodm Jul 1, 2022
352170c
Add basic metrics for every request
mrodm Jul 1, 2022
f5132cd
Fix typo metrics middleware
mrodm Jul 4, 2022
4e4cea2
Fix typo in usage
mrodm Jul 4, 2022
5e02260
Allow metrics endpoint to be served in a different address
mrodm Jul 4, 2022
0fb89c3
Rephrase comment
mrodm Jul 5, 2022
54f8d76
Move os.Exit calls to main
mrodm Jul 5, 2022
73cca37
Downgrade to apm 1.14.0 and remove apmprometheus
mrodm Jul 5, 2022
a1853ee
Add indexed packages metric
mrodm Jul 5, 2022
4cef3f1
Merge upstream main branch into add_metrics_prometheus branch
mrodm Jul 5, 2022
7d41766
Add search duration histogram metric with default buckets
mrodm Jul 5, 2022
105e637
Update buckets for byte related metrics to fit storage v2
mrodm Jul 5, 2022
9aa7948
Add cache time output for index handler
mrodm Jul 5, 2022
e83079a
Add metric about service info
mrodm Jul 5, 2022
3fbc736
Remove filter /metrics as it is not in the same router
mrodm Jul 5, 2022
b510843
Use specific os function to get hostname
mrodm Jul 6, 2022
6d29990
Moved metrics out from util package
mrodm Jul 6, 2022
871a863
Refactor init indexers in its own function
mrodm Jul 6, 2022
8906a03
Update Readme and Changelog
mrodm Jul 6, 2022
4d8226c
Add two more metrics
mrodm Jul 6, 2022
b508695
Merge upstream main branch into add_metrics_prometheus branch
mrodm Jul 6, 2022
42ecdd7
Set service_info metrics as the other metrics
mrodm Jul 6, 2022
0031521
Set storage indexer metrics
mrodm Jul 6, 2022
679bb07
Add metric to count the erros while updating the index/cursor
mrodm Jul 6, 2022
7d9ff68
Update Dockerfile to ensure metrics are accesbile from outside
mrodm Jul 6, 2022
14ad680
Update README.md
mrodm Jul 6, 2022
4913a1f
Handler error of GetPathTemplate
mrodm Jul 6, 2022
bc44972
Add function to get hostname
mrodm Jul 6, 2022
8492d33
Disable by default metrics endpoint
mrodm Jul 6, 2022
f05309e
Adjust metrics name related to storage indexer processes
mrodm Jul 6, 2022
584bd06
Updated metric help messages
mrodm Jul 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ require (
github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901
github.com/magefile/mage v1.9.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.12.2
github.com/stretchr/testify v1.7.1
go.elastic.co/apm v1.14.0
go.elastic.co/apm v1.15.0
jsoriano marked this conversation as resolved.
Show resolved Hide resolved
go.elastic.co/apm/module/apmgorilla v1.14.0
go.elastic.co/apm/module/apmprometheus v1.15.0
go.elastic.co/ecszap v1.0.1
go.uber.org/zap v1.21.0
golang.org/x/tools v0.1.7
gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v2 v2.4.0
)

require (
Expand All @@ -28,6 +30,8 @@ require (
cloud.google.com/go/iam v0.3.0 // indirect
cloud.google.com/go/pubsub v1.21.1 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/elastic/go-sysinfo v1.7.1 // indirect
github.com/elastic/go-windows v1.0.1 // indirect
Expand All @@ -39,8 +43,11 @@ require (
github.com/gorilla/handlers v1.5.1 // indirect
github.com/jcchavezs/porto v0.3.0 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/pkg/xattr v0.4.7 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/santhosh-tekuri/jsonschema v1.2.4 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
Expand Down
Loading