telemetry

TelemetryClient produces inconsistent results in Application Insights

…衆ロ難τιáo~ 提交于 2021-02-10 10:54:47
问题 I tried tracking custom metrics with and without flushing it. However, the metrics only intermittently shows up in Application Insights under the "Custom" section. First question: Is it required to run "flush()" after every single "TrackMetric(metric)" call in order for the telemetry to be sent to Application Insights? Second: Why is there this intermittent behavior? I'm only writing one metric at a time, so it's not as if I'm overloading Application Insights with thousands of separate calls.

Querying swap space in java 9

好久不见. 提交于 2021-02-07 12:54:40
问题 Due to a bug in the sigar library version I am using (returns bogus values for swap), I tried using com.sun.management.OperatingSystemMXBean instead. This worked fine and gave me the desired results (on Windows). Class<?> sunMxBeanClass = Class.forName("com.sun.management.OperatingSystemMXBean"); sunMxBeanInstance = sunMxBeanClass.cast(ManagementFactory.getOperatingSystemMXBean()); getFreeSwapSpaceSize = getMethodWithName(sunMxBeanClass, "getFreeSwapSpaceSize"); getTotalSwapSpaceSize =

Querying swap space in java 9

徘徊边缘 提交于 2021-02-07 12:52:32
问题 Due to a bug in the sigar library version I am using (returns bogus values for swap), I tried using com.sun.management.OperatingSystemMXBean instead. This worked fine and gave me the desired results (on Windows). Class<?> sunMxBeanClass = Class.forName("com.sun.management.OperatingSystemMXBean"); sunMxBeanInstance = sunMxBeanClass.cast(ManagementFactory.getOperatingSystemMXBean()); getFreeSwapSpaceSize = getMethodWithName(sunMxBeanClass, "getFreeSwapSpaceSize"); getTotalSwapSpaceSize =

Example to connect from container to host service

浪子不回头ぞ 提交于 2020-05-30 08:14:58
问题 I am new to Docker and Drone Programming. I was able to deploy a python script (that contains dronekit code) to docker container on my Windows 10. To run the script, I need to connect to a service on my host. I have provided a snippet below, Windows has a program running(Mavproxy SITL) which has exposed 127.0.0.1:14550 which is UDP. My image should connect to this address. mydronectrlscript.py: from dronekit import connect # Connect to UDP endpoint. vehicle = connect(‘udp:127.0.0.1:14550’,

Example to connect from container to host service

左心房为你撑大大i 提交于 2020-05-30 08:13:06
问题 I am new to Docker and Drone Programming. I was able to deploy a python script (that contains dronekit code) to docker container on my Windows 10. To run the script, I need to connect to a service on my host. I have provided a snippet below, Windows has a program running(Mavproxy SITL) which has exposed 127.0.0.1:14550 which is UDP. My image should connect to this address. mydronectrlscript.py: from dronekit import connect # Connect to UDP endpoint. vehicle = connect(‘udp:127.0.0.1:14550’,

How to fully disable network request from vs code(telemetry, updates, etc.)

半城伤御伤魂 提交于 2020-02-21 13:18:06
问题 Built from the latest sources. I am trying to prevent vs code to make any network requests(checking for updates, telemetry, etc.). I tried this config: { "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false, "update.channel": "none", "extensions.autoUpdate": false, "git.enabled": false } but there are still tcp connections made to the marketplace and microsoft telemetry services. How do I fully disable network requests without an external firewall? 来源: https:/

Are Azure Subscription ID, AAD Tenant ID, and AAD App Client ID considered secret/PII?

自古美人都是妖i 提交于 2020-01-22 09:47:46
问题 I would like to log the following in my telemetry for diagnostic and usage purposes: Azure Subscription ID AAD Tenant ID AAD App Client ID Should I treat them as secrets/PII and hash/encrypt them? (it goes without saying I will not be retaining the client secret in any way shape or form) 回答1: Ultimately, you should determine what to log and how, from a compliance/privacy/security perspective, based on official and compliance/privacy/security reviews and certifications within your company or

Are Azure Subscription ID, AAD Tenant ID, and AAD App Client ID considered secret/PII?

安稳与你 提交于 2020-01-22 09:47:27
问题 I would like to log the following in my telemetry for diagnostic and usage purposes: Azure Subscription ID AAD Tenant ID AAD App Client ID Should I treat them as secrets/PII and hash/encrypt them? (it goes without saying I will not be retaining the client secret in any way shape or form) 回答1: Ultimately, you should determine what to log and how, from a compliance/privacy/security perspective, based on official and compliance/privacy/security reviews and certifications within your company or

Is it possible to use logs to report to Azure Application Insights at specific time intervals due to intermittent network connectivity

落爺英雄遲暮 提交于 2020-01-16 09:11:10
问题 From the documentation it is unclear how Azure Application Insights pings back to the Azure cloud service. The only documentation here that gives a clue doesn't explain exactly how this works. I think what makes it a little more difficult to plan for is that the Azure monitor service is one piece and then the actual application's telemetry service applied through code is another part to make up the whole. Here is the statement from this documentation: Does the SDK create temporary local

VSTS Release : bubbling up release quality metrics

╄→гoц情女王★ 提交于 2019-12-24 21:13:12
问题 We have a continuous deployment pipeline that is setup to deploy to a chain of environments. In the portal, all I can see is the following : How do I configure the portal such that it also shows : How long each release took, split by environment Historic graph which show release time taken over time, split by environment Failures split by environment over time 回答1: You can’t configure VSTS to show these, there isn’t such feature available in VSTS. Also, there isn’t the official extension can