Title: Metric pattern validation in simpleclient_dropwizard is overly strict · Issue #518 · prometheus/client_java · GitHub
Open Graph Title: Metric pattern validation in simpleclient_dropwizard is overly strict · Issue #518 · prometheus/client_java
X Title: Metric pattern validation in simpleclient_dropwizard is overly strict · Issue #518 · prometheus/client_java
Description: I am exposing metrics to Prometheus in an existing app that uses Dropwizard, and they have a wide variety of names. From app_metric_some_count to appMetric.someCount. For legacy monitoring reasons I am unable to rename these metrics. Whe...
Open Graph Description: I am exposing metrics to Prometheus in an existing app that uses Dropwizard, and they have a wide variety of names. From app_metric_some_count to appMetric.someCount. For legacy monitoring reasons ...
X Description: I am exposing metrics to Prometheus in an existing app that uses Dropwizard, and they have a wide variety of names. From app_metric_some_count to appMetric.someCount. For legacy monitoring reasons ...
Opengraph URL: https://github.com/prometheus/client_java/issues/518
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Metric pattern validation in simpleclient_dropwizard is overly strict","articleBody":"I am exposing metrics to Prometheus in an existing app that uses Dropwizard, and they have a wide variety of names. From `app_metric_some_count` to `appMetric.someCount`. For legacy monitoring reasons I am unable to rename these metrics. \r\n\r\nWhen attempting to use a CustomMappingSampleBuilder to map these existing names to metric names that align with Prometheus best practices, I am unable to do so because both `MappingConfig` and `GraphiteNamePattern` (used within the `CustomMappingSampleBuilder`) expect via regex a very particular form of metric naming - `app_example` will not survive validation, but `app.example` will. \r\n\r\nGiven that Dropwizard itself does not enforce these metric naming conventions, I'm unsure as to why `simpleclient_dropwizard` does.","author":{"url":"https://github.com/LiamClarkeNZ","@type":"Person","name":"LiamClarkeNZ"},"datePublished":"2019-12-18T01:57:08Z","url":"https://github.com/prometheus/client_java/issues/518"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:71656c0e-aed2-6d37-de0c-601080471af9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D28:E627F:8F5F8:BABC4:6AFBAD17 |
| html-safe-nonce | 9e2a8975777bae168d17bf867b1ab310339e9231747e97c3cec4b18443c5e661 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDI4OkU2MjdGOjhGNUY4OkJBQkM0OjZBRkJBRDE3IiwidmlzaXRvcl9pZCI6IjI2NTY4OTQ4MjE1MzE4ODg5MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fc12f219fbb8308041fa0dfd4527e7103fe3a3e7dda60b31d45ac8e55bca017e |
| hovercard-subject-tag | issue:539406150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/prometheus/client_java/518/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea99da1c6163869cf3bc9ddf18efdca88739bea62953e66def9b81b7506971a9/prometheus/client_java/issues/518 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea99da1c6163869cf3bc9ddf18efdca88739bea62953e66def9b81b7506971a9/prometheus/client_java/issues/518 |
| og:image:alt | I am exposing metrics to Prometheus in an existing app that uses Dropwizard, and they have a wide variety of names. From app_metric_some_count to appMetric.someCount. For legacy monitoring reasons ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LiamClarkeNZ |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/prometheus/client_java git https://github.com/prometheus/client_java.git |
| octolytics-dimension-user_id | 3380462 |
| octolytics-dimension-user_login | prometheus |
| octolytics-dimension-repository_id | 7997879 |
| octolytics-dimension-repository_nwo | prometheus/client_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7997879 |
| octolytics-dimension-repository_network_root_nwo | prometheus/client_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width