The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/features/plugins/admin/tracking.ts

18 lines
654 B

import { reportInteraction } from '@grafana/runtime';
type PluginTrackingProps = {
// The ID of the plugin (e.g. grafana-azure-monitor-datasource)
plugin_id: string;
// The type of the plugin (e.g. 'app' or 'datasource')
plugin_type?: string;
// The path where the plugin details page was rendered (e.g. /plugins/grafana-azure-monitor-datasource )
path: string;
};
export const trackPluginInstalled = (props: PluginTrackingProps) => {
reportInteraction('grafana_plugin_install_clicked', props);
};
export const trackPluginUninstalled = (props: PluginTrackingProps) => {
reportInteraction('grafana_plugin_uninstall_clicked', props);
};