Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent 2.2.0.960

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.

Requires NuGet 3.3.0 or higher.

dotnet add package Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent --version 2.2.0.960
NuGet\Install-Package Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent -Version 2.2.0.960
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent" Version="2.2.0.960" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent --version 2.2.0.960
#r "nuget: Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent, 2.2.0.960"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent as a Cake Addin
#addin nuget:?package=Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent&version=2.2.0.960

// Install Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent as a Cake Tool
#tool nuget:?package=Microsoft.ServiceFabricApps.ClusterObserver.Linux.FrameworkDependent&version=2.2.0.960

ClusterObserver 2.2.0.960

This version is built for .NET 6 and SF Runtime >= 9.0

ClusterObserver (CO) is a stateless singleton Service Fabric service that runs on one node in a cluster. CO observes cluster health (aggregated) and sends telemetry when a cluster is in Error or Warning. CO shares a very small subset of FabricObserver's (FO) code. It is designed to be completely independent from FO sources, but lives in this repo (and SLN) because it is very useful to have both services deployed, especially for those who want cluster-level health observation and reporting in addition to the node-level user-defined resource monitoring, health event creation, and health reporting done by FO. FabricObserver is designed to generate Service Fabric health events based on user-defined resource usage Warning and Error thresholds which ClusterObserver sends to your log analytics and alerting service.

By design, CO will send an Ok health state report when a cluster goes from Warning or Error state to Ok.

CO only sends telemetry when something is wrong or when something that was previously wrong recovers. This limits the amount of data sent to your log analytics service. Like FabricObserver, you can implement whatever analytics backend you want by implementing the IObserverTelemetryProvider interface. As stated, this is already implemented for both Azure ApplicationInsights and Azure LogAnalytics.

The core idea is that you use the aggregated cluster error/warning/Ok health state information from ClusterObserver to fire alerts and/or trigger some other action that gets your attention and/or some SF on-call's enagement via auto-creating a support incident (and an Ok signal would mean auto-mitigate the related incident/ticket).

You can change ClusterObserver configuration parameters by doing a versionless Application Parameter Upgrade. This means you can change settings for CO without having to redeploy the application or any packages.

Application Parameter Upgrade Example:

  • Open an Admin Powershell console.

  • Connect to your Service Fabric cluster using Connect-ServiceFabricCluster command.

  • Create a variable that contains all the settings you want update:

$appParams = @{ "RunInterval" = "00:10:00"; "MaxTimeNodeStatusNotOk" = "04:00:00"; }

Then execute the application upgrade with

Start-ServiceFabricApplicationUpgrade -ApplicationName fabric:/ClusterObserver -ApplicationTypeVersion 2.1.12 -ApplicationParameter $appParams -Monitored -FailureAction rollback

Example Configuration:

<?xml version="1.0" encoding="utf-8" ?>
<Settings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2011/01/fabric">
  <Section Name="ObserverManagerConfiguration">
    
    <Parameter Name="ObserverLoopSleepTimeSeconds" Value="30" />
    
    <Parameter Name="ObserverExecutionTimeout" Value="3600" />
    
    <Parameter Name="AsyncOperationTimeoutSeconds" Value="120" />
    
    <Parameter Name="ObserverLogPath" Value="cluster_observer_logs" />
    
    <Parameter Name="EnableVerboseLogging" Value="false" />
    <Parameter Name="EnableETWProvider" Value="true" />
    
    <Parameter Name="EnableTelemetry" Value="true" />
    
    <Parameter Name="TelemetryProvider" Value="AzureLogAnalytics" />
    
    <Parameter Name="AppInsightsInstrumentationKey" Value="" />
    
    <Parameter Name="LogAnalyticsWorkspaceId" Value="" />
    
    <Parameter Name="LogAnalyticsSharedKey" Value="" />
    
    <Parameter Name="LogAnalyticsLogType" Value="ClusterObserver" />
    
    <Parameter Name="ObserverShutdownGracePeriodInSeconds" Value="1" />
  </Section>
  
  <Section Name="ClusterObserverConfiguration">
    
    <Parameter Name="AsyncOperationTimeoutSeconds" Value="" MustOverride="true" />
    
    <Parameter Name="Enabled" Value="" MustOverride="true" />
    
    <Parameter Name="EnableVerboseLogging" Value="" MustOverride="true" />
    
    <Parameter Name="EmitHealthWarningEvaluationDetails" Value="" MustOverride="true" />
    
    <Parameter Name="MaxTimeNodeStatusNotOk" Value="" MustOverride="true" />
    
    <Parameter Name="RunInterval" Value="" MustOverride="true" />
    
    <Parameter Name="MonitorRepairJobs" Value="" MustOverride ="true" />
    
    <Parameter Name="EnableOperationalTelemetry" Value="" MustOverride="true" />
  </Section>
</Settings>

Example LogAnalytics Query

alt text

You should configure FabricObserver to monitor ClusterObserver, of course. 😃

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.8 137 1/31/2024
2.2.6 155 10/9/2023
2.2.5 129 8/14/2023
2.2.4 146 4/27/2023
2.2.3 225 3/17/2023
2.2.2 252 3/7/2023
2.2.1.960 410 9/27/2022
2.2.1.831 443 9/27/2022
2.2.0.960 444 7/13/2022
2.2.0.831 445 7/12/2022
2.1.14 507 3/15/2022
2.1.13 476 2/9/2022
2.1.12 5,599 11/23/2021
2.1.11 334 10/11/2021
2.1.10 405 7/13/2021
2.1.9 386 5/6/2021
2.1.8 372 4/27/2021
2.1.7 310 4/16/2021
2.1.6 338 4/7/2021
2.1.5 338 3/10/2021
2.1.4 344 2/25/2021

- This is a major release with significant changes. Many of these will be transparent to you except for the new service deployment model (removal of DefaultServices in ApplicationManifest.xml to support ARM deployment).
- Supports FabricObserver's Extensibility model: you can build and run ClusterObserver plugins.
- Employs FabricObserver.Extensibility for a significant portion of its functionality (duplicated code removed).
- Requires .NET 6 and SF Runtime >= 9.