# How to develop Kibana custom plugin to add a custom agg type in Kibana Platform?

**URL:** https://discuss.elastic.co/t/how-to-develop-kibana-custom-plugin-to-add-a-custom-agg-type-in-kibana-platform/325556
**Category:** Kibana
**Tags:** kibana-plugin-development
**Created:** [February 15, 2023, 8:06am UTC](https://discuss.elastic.co/t/how-to-develop-kibana-custom-plugin-to-add-a-custom-agg-type-in-kibana-platform/325556 "2023-02-15T08:06:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gnehcnij](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gnehcnij/32/117271_2.png) [@gnehcnij](https://discuss.elastic.co/u/gnehcnij)
#### Post date: [February 15, 2023, 8:06am UTC](https://discuss.elastic.co/t/how-to-develop-kibana-custom-plugin-to-add-a-custom-agg-type-in-kibana-platform/325556/1 "2023-02-15T08:06:28Z")

</div>

I want to update Kibana from v6.8.23 to v7.17.8, but the plugin [kibana-datasweet-formula](https://github.com/datasweet/kibana-datasweet-formula) that I want to migrate to Kibana Platform do not work (Installation failed).

I found this place to register each agg type:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/4/94ead220a6bf606be9bd5fec162c60a4dce84d21.png)

but I have no idea how to register my custom agg type.

Besides, the args type of agg type function is limited, see below:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/959d6c471aecfe8b3a063377ecd7bfb69247b335.png)

How to add a new **METRIC\_TYPES** without modifying the source code?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 15, 2023, 8:06am UTC](https://discuss.elastic.co/t/how-to-develop-kibana-custom-plugin-to-add-a-custom-agg-type-in-kibana-platform/325556/2 "2023-03-15T08:06:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
