Comments (5)
FYI, in Prometheus there're some restrictions on the metric names:
It may contain ASCII letters and digits, as well as underscores and colons. It must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*.
So if the metric name contains '/' or other unsupported characters, you'll get this kind of error.
In Java and Go we do sanitization on metric names: https://github.com/census-instrumentation/opencensus-go/blob/master/exporter/prometheus/prometheus.go#L260.
from opencensus-node.
Just for reference, full code is available here.
from opencensus-node.
@songy23 thank you so much for pointing that out, that seemed to work! :)
from opencensus-node.
No problem. We probably need the same kind of sanitization in Node Prometheus exporter @isaikevych .
from opencensus-node.
Filed #167 to follow up. Closing this issue.
from opencensus-node.
Related Issues (20)
- instrumentation-grpc using deprecated npm module 'grpc'
- Depends on vulnerable package: minimist v0.0.8 and v1.2.0 HOT 2
- span.end closes all child spans HOT 1
- Dependency on deprecated continuation-local-storage HOT 3
- Please update gcp-metadata dependency to >= 4.1.0 HOT 2
- CoreTracerBase not respecting propagation options properly HOT 1
- Please update the google-auth-library >=6.1.0 and googleapis >=60.0.1 HOT 1
- receiving this error message
- Nested dependencies have vulnerabilies HOT 1
- Add validation of package-lock.json HOT 1
- Add node14 to CI
- Drop support for node8 HOT 1
- Remove @ts-expect-error comments from TS 3.x migration HOT 2
- Dependency Dashboard
- @opencensus/exporter-azure missing repository field, can't be published with wombot
- Action Required: Fix Renovate Configuration
- A Security Vulnerability with deep dependency `ansi-regex` HOT 2
- Zipkin exporter has different interface from expected at 0.1.0
- Couldn't catch error of export function
- Stackdriver exporter does not upload metrics when used in GCP Function and there is no way to wait on it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencensus-node.