Sindweller opened a new pull request #627:
URL: https://github.com/apache/apisix-ingress-controller/pull/627
Please answer these questions before submitting a pull request
- Why submit this pull request?
- [ ] Bugfix
- [x] New feature provided
- [ ] Improve performance
- [ ] Backport patches
- Related issues
___
### Bugfix
- Description
- How to fix?
___
### New feature or improvement
- Describe the details and related test reports.
add two Promethues metrics for apisix-ingress-controller:
***
HELP apisix_ingress_controller_check_cluster_health_success Number of
cluster health check operations
TYPE apisix_ingress_controller_check_cluster_health_success counter
Label:
controller_class
controller_namespace
controller_pod
name (cluster name)
***
HELP apisix_ingress_controller_sync_success Number of success sync
operations
TYPE apisix_ingress_controller_sync_success counter
Labels:
* controller_class
* controller_namespace
* controller_pod
* resource ( cache, schema, ssl, endpoint, consumer)
***
Show in Prometheus:
```
# HELP apisix_ingress_controller_check_cluster_health Number of cluster
health check operations
# TYPE apisix_ingress_controller_check_cluster_health counter
apisix_ingress_controller_check_cluster_health{controller_namespace="default",controller_pod="",name="default"}
1
# HELP apisix_ingress_controller_sync_success_total Number of sync operations
# TYPE apisix_ingress_controller_sync_success_total counter
apisix_ingress_controller_sync_success_total{controller_namespace="default",controller_pod="",resource="schema"}
1
```
___
### Backport patches
- Why need to backport?
- Source branch
- Related commits and pull requests
- Target branch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]