# Prometheus /metrics info

**URL:** <https://discuss.konghq.com/t/prometheus-metrics-info/6827>\
**Category:** General\
**Created:** [July 30, 2020, 12:05pm UTC](https://discuss.konghq.com/t/prometheus-metrics-info/6827 "2020-07-30T12:05:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sraravet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sraravet/32/1504_2.png) [@sraravet](https://discuss.konghq.com/u/sraravet)\
**Post date:** [July 30, 2020, 12:05pm UTC](https://discuss.konghq.com/t/prometheus-metrics-info/6827/1 "2020-07-30T12:05:24Z")

</div>

hi,

i am using kong 2.0.3 db-less version in kubernetes. i have configured prometheus plugin for monitoring it.

1. 
# HELP kong\_datastore\_reachable Datastore reachable from Kong, 0 is unreachable

# TYPE kong\_datastore\_reachable gauge

kong\_datastore\_reachable 1

kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_core\_db\_cache”} 831488  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_core\_db\_cache\_2”} 794624  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_core\_db\_cache\_miss”} 86016  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_core\_db\_cache\_miss\_2”} 86016  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_db\_cache”} 794624  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_db\_cache\_2”} 794624  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_db\_cache\_miss”} 86016  
kong\_memory\_lua\_shared\_dict\_bytes{shared\_dict=“kong\_db\_cache\_miss\_2”} 86016

kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_core\_db\_cache”} 134217728  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_core\_db\_cache\_2”} 134217728  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_core\_db\_cache\_miss”} 12582912  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_core\_db\_cache\_miss\_2”} 12582912  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_db\_cache”} 134217728  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_db\_cache\_2”} 134217728  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_db\_cache\_miss”} 12582912  
kong\_memory\_lua\_shared\_dict\_total\_bytes{shared\_dict=“kong\_db\_cache\_miss\_2”} 12582912

[why it is giving db reachability is 1 and other db related metrics when i am using db-less mode of kong]

can we update plugin metrics to not show these metrics for db-less mode?

Thanks & Regards,

---

<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:** [July 30, 2020, 5:39pm UTC](https://discuss.konghq.com/t/prometheus-metrics-info/6827/2 "2020-07-30T17:39:45Z")

</div>

> [@sraravet](#):
>
> can we update plugin metrics to not show these metrics for db-less mode?

This is an oversight on our end. Can you please open an issue in the [plugin repository](https://github.com/kong/kong-plugin-prometheus)?

---

<div class="post-metadata">

**Author:** ![sraravet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sraravet/32/1504_2.png) [@sraravet](https://discuss.konghq.com/u/sraravet)\
**Post date:** [August 3, 2020, 7:03am UTC](https://discuss.konghq.com/t/prometheus-metrics-info/6827/3 "2020-08-03T07:03:06Z")

</div>

Thanks for your reply,

i will open and i have found one more issue now,

i could not able to get below /metrics from my kong with prometheus plugin enabled.

kong\_http\_status{code=“301”,service=“google”} 2

# HELP kong\_latency Latency added by Kong, total request time and upstream latency for each service in Kong

# TYPE kong\_latency histogram

kong\_latency\_bucket{type=“kong”,service=“google”,le=“00001.0”} 1  
kong\_latency\_bucket{type=“kong”,service=“google”,le=“00002.0”} 1  
.  
.  
.  
kong\_latency\_bucket{type=“kong”,service=“google”,le="+Inf"} 2  
kong\_latency\_bucket{type=“request”,service=“google”,le=“00300.0”} 1  
kong\_latency\_bucket{type=“request”,service=“google”,le=“00400.0”} 1  
.  
.  
kong\_latency\_bucket{type=“request”,service=“google”,le="+Inf"} 2  
kong\_latency\_bucket{type=“upstream”,service=“google”,le=“00300.0”} 2  
kong\_latency\_bucket{type=“upstream”,service=“google”,le=“00400.0”} 2  
.  
.  
kong\_latency\_bucket{type=“upstream”,service=“google”,le="+Inf"} 2  
kong\_latency\_count{type=“kong”,service=“google”} 2  
kong\_latency\_count{type=“request”,service=“google”} 2  
kong\_latency\_count{type=“upstream”,service=“google”} 2

could you please help me here?

thanks

---

<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:** [August 3, 2020, 6:36pm UTC](https://discuss.konghq.com/t/prometheus-metrics-info/6827/4 "2020-08-03T18:36:34Z")

</div>

Can you share more details on how you have configured kong and also share the configuration itself?

Please make sure that the plugin is enabled and kong is actively proxying requests when you call the `/metrics` endpoint.

---

<div class="post-metadata">

**Author:** ![sraravet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sraravet/32/1504_2.png) [@sraravet](https://discuss.konghq.com/u/sraravet)\
**Post date:** [August 11, 2020, 8:56am UTC](https://discuss.konghq.com/t/prometheus-metrics-info/6827/5 "2020-08-11T08:56:30Z")

</div>

thanks for your reply.

i have checked and updated configuration. now it is working.
