Commit Graph

134 Commits

Author SHA1 Message Date
renovate[bot] cb44b2b18c
Update errorProneVersion to v2.23.0 (#5927)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-10-23 10:31:09 -05:00
Lauri Tulmin 3c52cdf7f7
Prometheus exporter: omit empty otel_scope_info and otel_target_info metrics (#5887) 2023-10-11 13:42:06 -05:00
jack-berg f421ef1e73
Stabilize MetricProducer, allow custom MetricReaders (#5835) 2023-09-27 13:55:41 -05:00
David Ashpole 9a931556fb
Prometheus exporter: handle colliding metric attribute keys (#5717)
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-09-20 15:12:15 -05:00
jack-berg 4a44474ff0
Delete PrometheusCustomizerProvider (#5811) 2023-09-11 10:00:07 -05:00
jack-berg a438127c37
Deprecate semconv module (#5786) 2023-09-08 10:43:42 -05:00
David Ashpole 2e2c308293
prometheus exporter: add units to metric names in TYPE and HELP comments (#5718) 2023-09-01 13:30:49 -05:00
jack-berg 68d7ab5763
Fix prometheus integration test (#5783) 2023-08-30 13:27:47 -05:00
jack-berg 73faa33b99
Config properties from map (#5782) 2023-08-30 09:33:39 -05:00
jack-berg e0a0b7768e
Add ConfigurableMetricReaderProvider SPI (#5755) 2023-08-24 12:54:24 -05:00
jack-berg 917d75d637
Retry requests in PrometheusHttpServerTest (#5750) 2023-08-22 12:47:52 -05:00
David Ashpole 3669e7a2ae
prometheus exporter: remove non-ucum units from conversion (#5719) 2023-08-21 18:16:31 -05:00
dependabot[bot] e980e8b97d
Bump errorProneVersion from 2.21.0 to 2.21.1 (#5684)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-08-09 12:49:13 -05:00
jack-berg fec52b431c
Fix prometheus integration test (#5561) 2023-06-21 15:53:16 -05:00
jack-berg 07a1bb4419
Fix various gradle warnings (#5556) 2023-06-21 11:15:05 -05:00
Pranav Sharma 4d034b08e8
Append unit to prometheus metric names (#5400) 2023-06-08 13:20:04 -05:00
dependabot[bot] 78dfa21084
Bump com.fasterxml.jackson:jackson-bom from 2.15.0 to 2.15.1 (#5459)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-05-18 09:45:13 -05:00
jack-berg f4184dfde8
Update prometheus test to reflect new collector behavior (#5417) 2023-05-03 18:50:44 -05:00
SSpirits 6ba5919229
Add check for metrics name to prevent add duplicated _total suffix (#5308) 2023-05-02 10:11:56 -05:00
Abhinandan Seshadri d95bc83542
Make the Executor for PrometheusHttpServer configurable (#5296)
* Add executor to builder

* Add tests

* Fix static imports

* Add javadoc comment

* Fix formatting

* Fix formatting

* Use random port

* Update exporters/prometheus/src/test/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServerTest.java

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>

* Remove executor assignment from constructor

* Fix import statements

* Use try-with-resources

---------

Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2023-03-22 10:49:38 -07:00
jack-berg 06158ffc2d
Cleanup readmes (#5263) 2023-03-06 09:39:34 -06:00
jack-berg 7bb2f0d832
Remove boxed primitives from aggregations (#5184) 2023-02-11 20:46:27 -06:00
jack-berg c427bf2132
Promote exponential histogram data interfaces to stable package (#5120)
* Promote exponential histogram data interfaces to stable package

* Spotless
2023-01-21 08:10:29 -06:00
jack-berg 8897dd4d5c
Revert removal final newline (#5133)
* Revert removal final newline

* Add to final newlin editorconfigoverride
2023-01-18 08:51:41 -06:00
dependabot[bot] 1e4a7be6be
Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 (#5126)
* Bump spotless-plugin-gradle from 6.12.1 to 6.13.0

Bumps [spotless-plugin-gradle](https://github.com/diffplug/spotless) from 6.12.1 to 6.13.0.
- [Release notes](https://github.com/diffplug/spotless/releases)
- [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md)
- [Commits](https://github.com/diffplug/spotless/compare/gradle/6.12.1...plugin-gradle/6.13.0)

---
updated-dependencies:
- dependency-name: com.diffplug.spotless:spotless-plugin-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix build

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-01-17 16:47:56 -06:00
jack-berg 1915f1fb60
Add close method to MetricReader (#5109) 2023-01-11 07:47:38 -06:00
jack-berg 25129e510c
PrometheusHttpServer drops metrics with same name and different type (#5078)
* PrometheusHttpServer drops metrics with same name and different type

* Switch to concurrent hash set

* Animal sniffer

* Fix typo

* PR feedback
2023-01-05 09:26:32 -06:00
dependabot[bot] 7b92428281
Bump armeria-bom from 1.20.3 to 1.21.0 (#5065)
* Bump armeria-bom from 1.20.3 to 1.21.0

Bumps [armeria-bom](https://github.com/line/armeria) from 1.20.3 to 1.21.0.
- [Release notes](https://github.com/line/armeria/releases)
- [Changelog](https://github.com/line/armeria/blob/master/.post-release-msg)
- [Commits](https://github.com/line/armeria/compare/armeria-1.20.3...armeria-1.21.0)

---
updated-dependencies:
- dependency-name: com.linecorp.armeria:armeria-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix PrometheusHttpServerTest

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <jberg@newrelic.com>
2023-01-03 12:09:03 -06:00
jack-berg 74cf7ac297
Drop PrometheusCollector test code (#5071) 2022-12-29 16:42:32 -06:00
jack-berg e8984793d1
Drop delta metrics in prometheus exporter (#5062)
* Drop delta metrics in prometheus exporter

* Adjust switch
2022-12-27 08:41:31 -06:00
jack-berg 16a02b2bbe
Prometheus compatibility (#5039)
* PrometheusHttpServer serializes resource attributes in target_info

* PrometheusHttpServer serializes scope as otel_scope_info
2022-12-22 11:06:16 -06:00
jack-berg 9dfb00249e
Implement prometheus exporter provider (#5053)
* Implement prometheus exporter provider

* Remove stray comment

* Adjust method visibility

* Delete ClasspathUtil
2022-12-21 09:52:42 -06:00
jack-berg 2bc88f45c6
Deprecate multi argument InstrumentationScopeInfo create method (#4710)
* Deprecate multi argument InstrumentationScopeInfo create method

* PR feedback
2022-08-24 13:35:31 -05:00
jack-berg 078d55abe5
Add SdkMeterProvider toString method (#4464)
* Add SdkMeterProvider toString method

* Fix build

* Ignore null values in InstrumentSelector / View #toString()
2022-05-13 11:52:04 -05:00
jack-berg 605f40b940
Rename MetricReader#flush() to forceFlush() (#4439) 2022-05-06 08:26:22 -05:00
Anuraag Agrawal 173a0c27fd
Have long aggregators export long exemplars (#4403)
* WIP exemplar

* Have long aggregators export long exemplars

* Fix
2022-04-22 11:18:47 +09:00
Anuraag Agrawal e6280139b8
Ensure prometheus metrics with the same name are serialized as a group. (#4386)
* Ensure prometheus metrics with the same name are serialized as a group.

* Fix JPMS test flakiness
2022-04-18 16:59:39 -05:00
OliverO2 dc702f2246
Fix Prometheus export of histogram data points without attributes (#4368) 2022-04-10 19:03:47 +09:00
Anuraag Agrawal d0357cbad3
Remove unused transitive prometheus deps (#4352) 2022-04-08 07:54:29 -05:00
Anuraag Agrawal d78cadabaa
Update errorprone (#4346) 2022-04-08 08:12:57 +09:00
jack-berg a895d7e33c
Add min and max to HistogramPointData (#4317)
* Add min and max to HistogramPointData

* Add hasMin, hasMax to HistogramPointData instead of @Nullable

* Add javadoc about describing behavior when hasMin / hasMax is false

* Get rid of @Nullable on HistogramAccumulation
2022-04-06 10:41:52 -05:00
jack-berg 423e1a2c54
Refactor MetricReader registration (#4320) 2022-03-31 10:13:17 -05:00
jack-berg 12fc4b2dda
Drop HistogramPointData utility methods (#4303) 2022-03-25 10:03:05 -05:00
jack-berg 21a61e5894
Change MetricExporter getPreferredTemporality to accept InstrumentType (#4288) 2022-03-24 11:25:50 -05:00
jack-berg 2c695a34f8
Simplify MetricReader (#4268)
* Simplify MetricReader

* Tighten up PR

* Restore some methods / classes and deprecate

* Revert "Restore some methods / classes and deprecate"

This reverts commit fee90e5da7.
2022-03-22 10:10:15 -05:00
Anuraag Agrawal 85b33d43b0
Remove deprecated PrometheusCollector (#4266) 2022-03-16 11:01:00 +09:00
jack-berg 59a6061dc5
Deprecate InstrumentationLibraryInfo (#4256)
* Deprecate InstrumentationLibraryInfo

* API diff
2022-03-14 14:45:10 -05:00
Anuraag Agrawal 26c04299d3
Make MetricData factories internal (#4257) 2022-03-11 16:30:13 +09:00
Anuraag Agrawal b0cdfdb78b
Migrate exemplar data to interface (#4253)
* Migrate exemplar data to interface

* internal
2022-03-10 12:08:38 +09:00
Anuraag Agrawal ef427f69ce
Convert ValueAtPercentile to ValueAtQuantile (#4254) 2022-03-10 11:30:20 +09:00