aboutsummaryrefslogtreecommitdiffstats
path: root/metrics-proxy
Commit message (Collapse)AuthorAgeFilesLines
* Increase timeout to reduce timing issue in test.Henning Baldersheim2022-01-071-2/+2
|
* Make parse method public to enable testing.Henning Baldersheim2021-12-191-1/+1
|
* GC unused loggerHenning Baldersheim2021-12-191-2/+0
|
* - Refactor and speedup MetricParser.handleValue.Henning Baldersheim2021-12-192-61/+66
| | | | | - Only use streaming jackson parsing - Aggregate hash codes to make unique dimension keys.
* Use the Instant as a timestamp to make it clear what it is instead of just a ↵Henning Baldersheim2021-12-187-26/+33
| | | | | | generic long. Make sure to use it correctly for the system metrics.
* Add test for dimensions incorrectly containing nullHenning Baldersheim2021-12-171-0/+25
|
* Handle that metrics can arrive with a dimension set to null. Skip and log it ↵Henning Baldersheim2021-12-173-20/+41
| | | | | | as debug. Let exceptions through in the tests so that we do not hide errors there.
* Get stacktrace for exceptions.Henning Baldersheim2021-12-171-5/+4
|
* Drop using hamcrest matchers and stick to simple assertEquals/True/FalseHenning Baldersheim2021-12-179-132/+119
|
* Preserve number typeHenning Baldersheim2021-12-172-27/+27
|
* Even if we do not filter by consumer on the services, we can do it early in ↵Henning Baldersheim2021-12-174-26/+75
| | | | | | | the metrics-proxy. This is especially benefiscal for the most frequent requests like autoscaling which only looks at a small set (1%) of the metrics. This both reduces memory footprint and saves cpu.
* numbers outside of the range of a long are forced to have a decimal ↵Henning Baldersheim2021-12-173-6/+42
| | | | punctuation to enforce parsing as non integer number.
* Avoid creating a temporary YamasArrayJsonModel which contains a copy of the ↵Henning Baldersheim2021-12-1610-186/+173
| | | | | | MetricsPacket list that is used just for simple json printing with an ObjectMapper. Insteda do it the old school by genrating the json with the core api which is streaming.
* Add test and benchmark for smaps parsing and avoid using regex.Henning Baldersheim2021-12-152-27/+101
|
* Only take regex cost when necessaryHenning Baldersheim2021-12-151-1/+3
|
* Unify on Map.of/copyOfHenning Baldersheim2021-12-152-9/+6
|
* Use the simple computeIfAbsent method.Henning Baldersheim2021-12-151-13/+3
|
* Test depends on order...Henning Baldersheim2021-12-151-4/+4
|
* Zero out the builders as soon as they are used to avoid keeping both alive ↵Henning Baldersheim2021-12-154-27/+32
| | | | when building a large array.
* Merge pull request #20525 from vespa-engine/bratseth/cleanup-654gjoranv2021-12-159-46/+48
|\ | | | | No functional changes
| * No functional changesJon Bratseth2021-12-159-46/+48
| |
* | Avoid creating many sets and lists containing the same list of consumers.Henning Baldersheim2021-12-155-55/+36
|/ | | | Use a dictionary to keep track of the unique ones.
* 1 - Make the first sample period at least 5s long.Henning Baldersheim2021-12-142-17/+30
| | | | | | 2 - Ensure that total cpu usage is sampled first on startup, and last on all remaining samples. This is to avoid the large skew you get when sample interval is shorter than the time used to collect the samples. This should eliminate the sampling noise when metricsproxy is started.
* Add debug logging of jiffies.Henning Baldersheim2021-12-141-1/+3
|
* Precompute mapping from MetricId to Map<ConfiguredMetric, Set<ConsumerId>> ↵Henning Baldersheim2021-12-132-20/+27
| | | | to avoid costly streaming and filtering on every metric.
* Move utilitity methods to correct class and make static.Henning Baldersheim2021-12-132-37/+35
|
* No functional changesJon Bratseth2021-12-092-3/+3
|
* Use debug logging for exceptions known to happen during normal operations ↵Henning Baldersheim2021-12-011-7/+10
| | | | when reconfiguring system.
* Update 2020 Oath copyrights.gjoranv2021-10-2793-93/+93
|
* Update 2019 Oath copyrights.gjoranv2021-10-2711-11/+11
|
* Lower log levelHarald Musum2021-10-271-2/+2
|
* Revert "Remove deps to http-utils and add vespajlib where necessary."gjoranv2021-10-211-0/+5
| | | | This reverts commit fe260fe8a98c1d2d19633e16a6308857c9577878.
* Add missiung copyrightsJon Bratseth2021-10-201-0/+1
|
* Upgrade from velocity:1.7 to velocity-engine-core:2.3gjoranv2021-10-191-1/+8
|
* Revert "Upgrade from velocity:1.7 to velocity-engine-core:2.3"Harald Musum2021-10-191-1/+1
|
* Upgrade from velocity:1.7 to velocity-engine-core:2.3gjoranv2021-10-181-1/+1
|
* Update ↵Jon Bratseth2021-10-141-1/+1
| | | | metrics-proxy/src/main/java/ai/vespa/metricsproxy/service/SystemPoller.java
* Prevent division by zeroHenning Baldersheim2021-10-142-11/+18
|
* cpu.util -> cpu_utilHenning Baldersheim2021-10-142-5/+9
|
* Make system metrics testable.Henning Baldersheim2021-10-144-53/+204
|
* Add cpu.util as per service metrics.Henning Baldersheim2021-10-131-16/+35
|
* Do not start metrics poller thread in constructor.Henning Baldersheim2021-10-081-5/+5
| | | | | That is controlled by the handler. Also use an atomic reference to ensure visibility.
* Update Verizon Media copyright notices.gjoranv2021-10-0712-12/+12
|
* Update 2019 Yahoo Holdings copyright notices.gjoranv2021-10-071-1/+1
|
* Update 2017 copyright notices.gjoranv2021-10-071-1/+1
|
* Remove deps to http-utils and add vespajlib where necessary.gjoranv2021-09-301-5/+0
|
* Drain the input stream on error, an just return an HealthMetric.getUnknown.Henning Baldersheim2021-09-233-6/+6
|
* Merge pull request #19233 from ↵v7.470.24Harald Musum2021-09-213-3/+8
|\ | | | | | | | | vespa-engine/balder/do-not-poll-default-unless-requested-to-do-so Do not fetch metrics for default consumer unless explicitly asked to …
| * Do not fetch metrics for default consumer unless explicitly asked to do so.Henning Baldersheim2021-09-213-3/+8
| |
* | Add synchronization.Henning Baldersheim2021-09-211-2/+5
| |