-
Notifications
You must be signed in to change notification settings - Fork 155
Micrometer metrics #1137
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
Merged
Merged
Micrometer metrics #1137
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e2a4e73
[WIP] Micrometer metrics instrumentation
shakuzen bd80f38
Bring it to life.
meistermeier ce3af7e
Update Micrometer metrics
injectives ec5dbf3
Merge branch '5.0' into micrometer-metrics
injectives faf764b
Make MetricsAdapter a supported, public api.
michael-simons f56e4bc
Saving a file before commiting seems to be relevant.
michael-simons 6957633
Not messing up the file while saven even more so.
michael-simons afc433f
Make interfaces internal again, provide an enum to select the provide…
michael-simons f2ca0df
Move micrometer-core optional tag to dependency declaration
injectives fec69a2
Update Config javadoc and remove imports of internal metrics classes
injectives 70bab1d
Update withMetricsEnabled(boolean) implementation
injectives 0e0e61e
Enable ConfigBuilder.withMetricsAdapter documentation
injectives 2167eeb
Update driver/src/main/java/org/neo4j/driver/ConnectionPoolMetrics.java
injectives 0c8fe23
Update ConnectionPoolMetrics documentation
injectives 479f14f
Update MetricsAdapter documentation
injectives d942e0d
Update formatting in ConfigTest
injectives acf04ad
Update wording
injectives 674f5cc
Updated wording
injectives 575682c
Formatting
injectives 921ac63
Update driver/src/main/java/org/neo4j/driver/internal/metrics/DevNull…
injectives 85cbcd0
Update driver/src/main/java/org/neo4j/driver/internal/metrics/Microme…
injectives 40db7b6
Merge branch '5.0' into micrometer-metrics
injectives 6ff57ac
Merge branch '5.0' into micrometer-metrics
injectives a0d1d95
Fix compilation error
injectives c692db1
Update failing test
injectives 520aab6
Fix GetConnectionPoolMetrics access
injectives acad532
Delete redundant counters based on review feedback
injectives 6ece62a
Merge branch '5.0' into micrometer-metrics
injectives File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (c) "Neo4j" | ||
* Neo4j Sweden AB [http://neo4j.com] | ||
* | ||
* This file is part of Neo4j. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.neo4j.driver; | ||
|
||
/** | ||
* Defines which metrics consumer to use: Should metrics be consumed and exposed via the drivers default consumer or | ||
* provided with one of the external facades. | ||
*/ | ||
public enum MetricsAdapter | ||
{ | ||
/** | ||
* Disables metrics. | ||
*/ | ||
DEV_NULL, | ||
|
||
/** | ||
* Consumes and publishes metrics via the driver itself. | ||
*/ | ||
DEFAULT, | ||
|
||
/** | ||
* Consumes and publishes metrics via Micrometer. Make sure you put Micrometer on the classpath before using this option. | ||
*/ | ||
MICROMETER | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.