# Setting config option(s) on Prometheus plugin

**URL:** <https://discuss.konghq.com/t/setting-config-option-s-on-prometheus-plugin/10734>\
**Category:** Questions\
**Created:** [September 30, 2022, 10:55pm UTC](https://discuss.konghq.com/t/setting-config-option-s-on-prometheus-plugin/10734 "2022-09-30T22:55:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerodefect](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/zerodefect/32/3660_2.png) [@zerodefect](https://discuss.konghq.com/u/zerodefect)\
**Post date:** [September 30, 2022, 10:55pm UTC](https://discuss.konghq.com/t/setting-config-option-s-on-prometheus-plugin/10734/1 "2022-09-30T22:55:44Z")

</div>

I have enabled the prometheus plugin via Konga. The current raw view on the plugin views as:

```auto
{
  "enabled": true,
  "name": "prometheus",
  "config": {
    "per_consumer": false
  },
  "tags": null,
  "protocols": [
    "grpc",
    "grpcs",
    "http",
    "https"
  ],
  "created_at": 1664572654,
  "route": null,
  "id": "279affe4-e7ca-4b9a-87ef-fa1e9c26af06",
  "consumer": null,
  "service": null
}

```

The [configuration reference](https://docs.konghq.com/hub/kong-inc/prometheus/) details how there are additional options that can be enabled.

I’ve tried permutations of something like including:

```auto
curl -X PUT http://localhost:8001/plugins/279affe4-e7ca-4b9a-87ef-fa1e9c26af06 --data "name=prometheus" --data "config.bandwidth_metrics=true"

```

but I get:

```auto
{"message":"schema violation (config.bandwidth_metrics: unknown field)","fields":{"config":{"bandwidth_metrics":"unknown field"}},"name":"schema violation","code":2}

```

as a return error.

I’ve not used the API too much - I’ve been too reliant on Konga. Any tips/suggestions would be appreciated.
