Skip to content

Commit

Permalink
Add logz commend
Browse files Browse the repository at this point in the history
  • Loading branch information
copyhold committed Oct 9, 2024
1 parent 893f99a commit ddc2b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const GrafanaReceiverForm = ({ existing, alertManagerSourceName, config,
}

const notifiers: Notifier[] = grafanaNotifiers
.filter(n => n.type !== 'oncall') // LOGZ.IO CHANGE :: DEV-46522 hide oncall notifier
.filter(n => n.type !== 'oncall') // LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin
.map((n) => {
if (n.type === 'oncall') {
return {
Expand Down
3 changes: 3 additions & 0 deletions public/app/features/alerting/unified/hooks/usePluginBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { PluginMeta } from '@grafana/data';
import { getPluginSettings } from 'app/features/plugins/pluginSettings';

import { PluginID } from '../components/PluginBridge';
// LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin
import { SupportedPlugin } from '../types/pluginBridges';
interface PluginBridgeHookResponse {
loading: boolean;
Expand All @@ -13,9 +14,11 @@ interface PluginBridgeHookResponse {
}

export function usePluginBridge(plugin: PluginID): PluginBridgeHookResponse {
// LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin
if (plugin === SupportedPlugin.OnCall) {
return { loading: false, installed: false};
}
// LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin. END
const { loading, error, value } = useAsync(() => getPluginSettings(plugin, { showErrorAlert: false }));

const installed = value && !error && !loading;
Expand Down

0 comments on commit ddc2b73

Please sign in to comment.