Adjust validation if Metric and MetricNamespace monikers to ingestion requirements
See original GitHub issueThe naming restrictions for metrics are stricter at the new endpoint compared to the AppInsights unauthenticated endpoint. The existing (stable) APIs should not be changed (back-compat). However new pre-aggregation APIs should fail-fast when invalid monikers are used. We have already included some of this validation into the first Beta, but we need to re-align them with the public endpoint shipped version:
- Metric Namespace moniker may be exceed 256 characters.
- Metric Name moniker may be exceed 256 characters.
- Metric Namespace may not start with “
Microsoft.
”. - Metric Namespace may not be equal to any of the following:
–
GenevaKustoQos
–LogsToMetricsQos
–MdmQos
–RecoveryService/V2
–MonitorSLA
–WarmPathQos
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Frequently asked questions about Azure Monitor metric alerts
Considerations when creating an alert rule that contains multiple criteria. You can only select one value per dimension within each criterion.
Read more >post — OCI CLI Command Reference 3.30.2 documentation
A value of ATOMIC requires a full pass: all metric objects in the request must pass input validation. Example: NON_ATOMIC. Accepted values are:...
Read more >Metrics
Post metrics data so it can be graphed on Datadog's dashboards; Query metrics from any time period; Modify tag configurations for metrics; View...
Read more >Amazon CloudWatch Cheat Sheet
Monitoring tool for your AWS resources and applications. Display metrics and create alarms that watch the metrics and send notifications or ...
Read more >Configure CloudWatch inputs for the Splunk Add-on for AWS
Configure separate CloudWatch inputs for each metric or set of metrics that have different minimum granularities, based on the sampling ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok. I’ll take a look. If I do not find anything, I will create a generic internal utility that can be used by other places too, but I may not have capacity to go through similar usages elsewhere and rewire them to use the generic solution.
It’ll be something similar to:
string EnsureValidMoniker(string moniker, int maxLen, char[] invalidChars, char asciiEscape);
Works?
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 7 days.