Comments (4)
This would be super simple. Just need to provide a function which does a replace on the InvalidChars regex. Probably all of that Validation
class could be moved and made public.
from stackexchange.metrics.
I guess I forgot that there already is a NameTransformers.Sanitize()
which converts all spans of invalid chars to a single underscore (or simply removes it if it's at the beginning or end of the string).
I'll probably keep that the way it is, and also make the invalid chars regex public so that people can write their own sanitize function if they want different functionality.
from stackexchange.metrics.
I've made this change. The validation class is now named BosunValidation
, and is public under the top namespace.
I also added a global tag value sanitize/normalize function option which you could use if you want the ability to apply a function to tag values across all metrics. See BosunOptions.cs.
from stackexchange.metrics.
Awesome; thanks
On 21 Apr 2015 2:28 am, "Bret Copeland" [email protected] wrote:
I've made this change. The validation class is now named BosunValidation,
and is public under the top namespace.I also added a global tag value sanitize/normalize function option which
you could use if you want the ability to apply a function to tag values
across all metrics. See BosunOptions.cs
https://github.com/bretcope/BosunReporter.NET/blob/master/BosunReporter/BosunOptions.cs#L58-L64
.—
Reply to this email directly or view it on GitHub
#16 (comment)
.
from stackexchange.metrics.
Related Issues (20)
- Method to Remove Metric
- Try Streaming Metrics instead of using String.Join HOT 1
- Default Tags
- Create NuGet Package
- GetMetricWithoutPrefix Method
- Feature request: more visibility of internal status HOT 2
- Feature request: metadata for tags HOT 11
- Count Aggregator HOT 2
- Suggestion: automatic type conversion on tags HOT 2
- Add IMetricGroup with type parameter variance HOT 6
- Don't throw on connection failure if ThrowOnPostFail is false HOT 2
- Question about the limits of bosun HOT 2
- Require Background Exception Handler HOT 1
- Add Access Token Option HOT 1
- Metadata not being sent if MetricsCollector exists only for a short time HOT 5
- Suggestion: Tags as properties with no attribute HOT 2
- Suggestion: ZabbixMetricHandler HOT 2
- Make HttpJsonMetricHandler a generic HttpMetricHandler ? HOT 6
- Fix Windows builds HOT 1
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 stackexchange.metrics.