Open yagelkt opened 9 months ago
I have the same problem. I have to use the admin API to enable complete prometheus metrics logs (bandwith and HTTP).
Via helm (no work):
plugins:
- prometheus
prometheus:
enabled: true
metrics:
http_status:
extra_labels:
- upstream_addr: $upstream_addr
- status: $upstream_status # The label name does not need to be the same as the variable name.
http_latency:
extra_labels:
- upstream_addr: $upstream_addr
bandwidth:
extra_labels:
- upstream_addr: $upstream_addr
default_buckets:
- 10
- 50
- 100
- 200
- 500
pluginAttrs:
prometheus:
enable_export_server: false
Via API (work):
curl http://127.0.0.1:9180/apisix/admin/global_rules -H 'X-API-KEY: <YOUR_TOKEN>' -i -X PUT -d '
{
"id": "rule-for-metrics",
"plugins": {
"prometheus": {
"disable": false
}
}
}'
Any news on this issue?
I installed apisix successfully helm chart with ArgoCd application.
I then tried to add the "limit-count" plugin, but when I open the dashboard I don't see this plugin.
I can add this plugin manually.
This is the Apisix application yaml I used:
Any idea why it didn't work? (I don't think it has anything to do with argocd - it just a normal helm installation).
I also tried to edit the configmap to enable the plugin, but it didn't work also: