我想从我的查询中排除多个应用程序组...不知道如何去做..我的想法是这样的
count(master_build_state{app_group~! "oss-data-repair", "pts-plan-tech-solution", kubernets_namespace = "etc"} ==0)
Run Code Online (Sandbox Code Playgroud)
我不想包含这两个 app_groups,但我不确定如何在 PromQL 中实现。您可能会添加 () 或 [],但它会引发错误。如果有人可以帮忙请告诉我!
谢谢
我正在MVC
VS 2015中运行一个应用程序.在调试模式下,一切正常,直到我尝试创建新用户.
创建表单也适用于保存按钮.但新数据未显示在索引中,但新的编辑/详细信息/删除是索引.
输出告诉:Application Insights遥测(重新配置):
{ "名称": "Microsoft.ApplicationInsights.Dev.PerformanceCounter", "时间": "2016-04-20T10:41:44.1380123 + 08:00", "标签":{ "ai.internal.sdkVersion":"1.2 .3.490" , "ai.device.roleInstance": "KL-PT-049.icarasia.local", "ai.application.ver": "未知", "ai.device.type": "PC","AI .device.id":"KL-PT-049.icarasia.local","ai.device.oemName":"Hewlett-Packard","ai.device.model":"HP ProBook 4440s","ai.device .网络 ":" Wireless80211" , "ai.device.language": "EN-MY"}, "数据":{ "基本类型": "PerformanceCounterData", "baseData":{ "VER":2 "类别名称" :"Processor","counterName":"%Processor Time","instanceName":"_ Total","value":23.789436340332,"properties":{"DeveloperMode":"true"}}}}
我想知道创建用户和应用程序洞察遥测之间有什么关系吗?谢谢
我想在遥测中记录以下内容以用于诊断和使用目的:
我应该将它们视为秘密/ PII并对它们进行哈希/加密吗?
(不言而喻,我不会以任何形式或形式保留客户的秘密)
由于我使用的sigar库版本中的错误(返回swap的伪值),我尝试使用com.sun.management.OperatingSystemMXBean
.这很好,给了我想要的结果(在Windows上).
Class<?> sunMxBeanClass = Class.forName("com.sun.management.OperatingSystemMXBean");
sunMxBeanInstance = sunMxBeanClass.cast(ManagementFactory.getOperatingSystemMXBean());
getFreeSwapSpaceSize = getMethodWithName(sunMxBeanClass, "getFreeSwapSpaceSize");
getTotalSwapSpaceSize = getMethodWithName(sunMxBeanClass, "getTotalSwapSpaceSize");
Run Code Online (Sandbox Code Playgroud)
然而,这打破了java 9.还有另一种方法来使用java查询交换文件/分区信息吗?我不想介绍一个新的库或版本的sigar.
跨平台解决方案受到赞赏,但Windows足够了: - )
谢谢
我尝试在 Azure Functions 中使用依赖注入进行遥测配置。在我的函数中,当我在函数构造函数中注入 TelemetryConfiguration 时,我会解决它。我想我真的不明白我将如何在 StartUp 中使用 TelemetryConfiguration,这就是为什么我会遇到异常。我将如何添加我已经配置的 TelemetryConfiguration。
到目前为止,我在这里做了一个简单的例子。
[assembly: FunctionsStartup(typeof(StartUp))]
public class StartUp : FunctionsStartup
{
private string OmsModule { get; } = "OMS.VA";
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.Configure<TelemetryConfiguration>(
(o) =>
{
o.InstrumentationKey = Environment.GetEnvironmentVariable("APPINSIGHTS_INSTRUMENTATIONKEY");
o.TelemetryInitializers.Add(new OperationCorrelationTelemetryInitializer());
});
}
}
public class StopPlaceUpdateTimerTrigger
{
private TelemetryClient _telemetryClient;
private string _azureWebJobsStorage;
public StopPlaceUpdateTimerTrigger(TelemetryConfiguration telemetryConfiguration)
{
_telemetryClient = new TelemetryClient(telemetryConfiguration);
}
[FunctionName("StopPlaceLoader")]
public async Task StopPlaceLoaderMain([TimerTrigger("%CRON_EXPRESSION%", RunOnStartup = true)]TimerInfo myTimerInfo, ILogger log, ExecutionContext context)
{
SetConfig(context);
var …
Run Code Online (Sandbox Code Playgroud) dependency-injection azure telemetry azure-application-insights azure-functions
我正在尝试使用 ggmap 从谷歌地图调用地图。示例代码:
get_googlemap(center = c(lon = -56.67, lat = 51.47), zoom = 8, size = c(640, 640), scale = 2,
format = "png8", maptype = "satellite")
Run Code Online (Sandbox Code Playgroud)
但是,这会返回以下错误:
来源:https : //maps.googleapis.com/maps/api/staticmap?center= 24.8,-81.7 &zoom=8&size=640x640&scale=4&maptype=satellite& key=(已删除发布键)
Error in aperm.default(map, c(2, 1, 3)) :
invalid first argument, must be an array
In addition: Warning message:
In get_googlemap(center = c(lon = -81.7, lat = 24.8), zoom = 8, :
HTTP 400 Bad Request
Run Code Online (Sandbox Code Playgroud)
我查看了人们遇到类似问题的线程。在对 API 密钥和限制进行一些摆弄之后,它们似乎得到了解决。在这种情况下,我做了以下事情:
.NET Core 工具收集使用数据,以帮助我们改善您的体验。数据是匿名的,不包括命令行参数。这些数据由 Microsoft 收集并与社区共享。您可以使用您喜欢的 shell 将 DOTNET_CLI_TELEMETRY_OPTOUT 环境变量设置为“1”或“true”来选择退出遥测。了解有关 .NET Core CLI 工具遥测的更多信息:https://aka.ms/dotnet-cli-telemetry* *
如何禁用遥测收集数据?
我们可以像在本教程中一样通过添加初始化程序来发送带有 c# 中所有见解的“应用程序版本”属性。
class AppVersionTelemetryInitializer : Microsoft.ApplicationInsights.Extensibility.ITelemetryInitializer
{
public void Initialize(Microsoft.ApplicationInsights.Channel.ITelemetry telemetry)
{
telemetry.Context.Component.Version = ApplicationInsightsHelper.ApplicationVersion;
}
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能用 javascript 做到这一点?
从最新来源构建。
我试图阻止 vs 代码发出任何网络请求(检查更新、遥测等)。
我试过这个
config: {
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"update.channel": "none",
"extensions.autoUpdate": false,
"git.enabled": false
}
Run Code Online (Sandbox Code Playgroud)
但是仍然有到市场和微软遥测服务的 tcp 连接。
如何在没有外部防火墙的情况下完全禁用网络请求?
我正在使用应用程序见解sdk用于wpf应用程序我一直在努力捕获一些简单的遥测.我正在加载看起来像这样的配置文件
<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/>
<TelemetryProcessors>
<Add Type="Microsoft.ApplicationInsights.Extensibility.AutocollectedMetricsExtractor, Microsoft.ApplicationInsights"/>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
<ExcludedTypes>Event</ExcludedTypes>
</Add>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
<IncludedTypes>Event</IncludedTypes>
</Add>
</TelemetryProcessors>
Run Code Online (Sandbox Code Playgroud)
问题是,当我运行已安装的应用程序并且处于离线状态时,遥测器被捕获得很好.下次我在线时打开应用程序,数据最终会被推送到应用洞察.但是,当其他任何人离线运行应用程序时,他们的数据永远不会在他们重新上线时被推送到应用程序洞察.
这个配置的方式有什么不对吗?为什么这对某些用户有效而对其他用户无效?
编辑:今天与用户合作我注意到当他们离线并运行应用程序时,没有保存的临时文件.当我在计算机上执行相同操作时,我注意到创建了一个奇怪的临时文件.当我在重新联机时运行应用程序时,它会消失.