# Global Plugins - Declarative Config

**URL:** <https://discuss.konghq.com/t/global-plugins-declarative-config/3589>\
**Category:** Questions\
**Created:** [May 22, 2019, 8:18am UTC](https://discuss.konghq.com/t/global-plugins-declarative-config/3589 "2019-05-22T08:18:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Murphy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/tony_murphy/32/914_2.png) [@Tony\_Murphy](https://discuss.konghq.com/u/Tony_Murphy)\
**Post date:** [May 22, 2019, 8:18am UTC](https://discuss.konghq.com/t/global-plugins-declarative-config/3589/1 "2019-05-22T08:18:20Z")

</div>

Hi, if I wanted to enable prometheus across all plugin in declarative mode, is the recommended approach as follows?

plugins:

- name: prometheus

when I run

```
curl localhost:8001/plugins | json_pp

```

I see following output

```
  {
     "route" : null,
     "config" : {},
     "tags" : null,
     "run_on" : "first",
     "created_at" : 1558512613,
     "consumer" : null,
     "protocols" : [
        "http",
        "https"
     ],
     "name" : "prometheus",
     "enabled" : true,
     "id" : "aad45641-6d9d-4e93-8f4b-edd547db02d3",
     "service" : null
  }

```

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [June 4, 2019, 5:01pm UTC](https://discuss.konghq.com/t/global-plugins-declarative-config/3589/2 "2019-06-04T17:01:26Z")

</div>

Yes, this looks correct.
