question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Namespace to Metrics.

See original GitHub issue

Application Insights custom metrics are currently stored in a backend repository optimized for storing structured events from where they are made available for various user experiences in the Azure Portal (Ibiza), in the Analytics Portal and via the DRAFT APIs. These backends identify a metric within the scope of a resource by a 1-tuple [Metric Name]. In the future, custom metrics will be primarily stored in the Geneva pipeline (a backend repository that is optimized for storing timeseries) and made available via the Azure Monitoring APIs [https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list]. Those backends identify a metric within the scope of a resource by a 2-tuple [Metric Namespace, Metric Name]. In order to support these new backends we need to add namespace as an additional attribute to Metric Telemetry Items as a sibling to name wherever name appears. Also, need to add API overloads that create metric items while specifying namespace.

Specifically:

  1. Add an attribute metricNamespace to the bond spec of DataPoint next to name. (We call it metricNamespace rather than namespace to avoid clashed with the frequently used keyword “namespace”)

  2. Add a property MetricNamespace to the MetricTelemetry class.

  3. For each ctor of MetricTelemetry class that includes a name parameter, add an overload that also expects a parameter metricNamespace.

  4. Add an Obsolete Attribute to each ctor of the MetricTelemetry class that includes a name parameter, but not a metricNamespace parameter.

  5. Add / update unit tests according to the above changes.

Thank you, all, for your feedback about these upcoming changes!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
macrogregcommented, Apr 13, 2018

This time it worked. ns in bond, metricNamespace in the API.

0reactions
TimothyMothracommented, Apr 20, 2018

That would help 😃

This week we’re reviewing all open items and closing or assigning to milestones. If this discussion still has pending work, feel free to open additional issues linked to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon CloudWatch concepts
You can specify a namespace name when you create a metric. These names must contain valid ASCII characters, and be 255 or fewer...
Read more >
How to append namespace before metric name in ...
Found this solution: static_configs: - targets: ['monitoring.api.endpoint.net'] metric_relabel_configs: - source_labels: [__name__] regex: ...
Read more >
Monitor only one namespace metrics - Prometheus with ...
My goal is to monitor only a specefic namespace which called default and just my own pods excluding prometheus Pods and monitoring details....
Read more >
Selecting the Metric Namespace for a Query
Create a basic query on the Metrics Explorer page. · If the query isn't open, open it by clicking Edit queries. · Select...
Read more >
System.Diagnostics.Metrics Namespace
The System.Diagnostics.Metrics namespace can be used to add metrics to an application. The APIs work on all platforms supported by .NET and are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found