From 49618534ce8f8b840f4d4cb641f5f2fa102841b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Sun, 14 Apr 2024 16:54:57 +0200 Subject: [PATCH] Ship grafana dashboard together with the plugin --- .../ArchiSteamFarm.OfficialPlugins.Monitoring.csproj | 8 ++++++++ .../MonitoringPlugin.cs | 2 +- .../overlay/all/www/grafana-dashboard.json | 0 3 files changed, 9 insertions(+), 1 deletion(-) rename resources/grafana_dashboard.json => ArchiSteamFarm.OfficialPlugins.Monitoring/overlay/all/www/grafana-dashboard.json (100%) diff --git a/ArchiSteamFarm.OfficialPlugins.Monitoring/ArchiSteamFarm.OfficialPlugins.Monitoring.csproj b/ArchiSteamFarm.OfficialPlugins.Monitoring/ArchiSteamFarm.OfficialPlugins.Monitoring.csproj index f4f3195be..5f5e9c037 100644 --- a/ArchiSteamFarm.OfficialPlugins.Monitoring/ArchiSteamFarm.OfficialPlugins.Monitoring.csproj +++ b/ArchiSteamFarm.OfficialPlugins.Monitoring/ArchiSteamFarm.OfficialPlugins.Monitoring.csproj @@ -18,4 +18,12 @@ + + + + PreserveNewest + true + %(RecursiveDir)%(Filename)%(Extension) + + diff --git a/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs b/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs index eeaa8e64c..d00ba2a3d 100644 --- a/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs @@ -45,7 +45,7 @@ namespace ArchiSteamFarm.OfficialPlugins.Monitoring; [Export(typeof(IPlugin))] [SuppressMessage("ReSharper", "MemberCanBeFileLocal")] -internal sealed class MonitoringPlugin : OfficialPlugin, IWebServiceProvider, IGitHubPluginUpdates, IDisposable { +internal sealed class MonitoringPlugin : OfficialPlugin, IDisposable, IGitHubPluginUpdates, IWebInterface, IWebServiceProvider { private const string MeterName = SharedInfo.AssemblyName; private const string MetricNamePrefix = "asf"; diff --git a/resources/grafana_dashboard.json b/ArchiSteamFarm.OfficialPlugins.Monitoring/overlay/all/www/grafana-dashboard.json similarity index 100% rename from resources/grafana_dashboard.json rename to ArchiSteamFarm.OfficialPlugins.Monitoring/overlay/all/www/grafana-dashboard.json