Releasing v2.8.0 🥳🥳
Changes:
- Generate statsd-exporter config as configmap for RateLimitService. You can use this configmap as a source configuration for statsd-exporter.
You need to add identifier
in GlobalRateLimit
---
apiVersion: ratelimit.zufardhiyaulhaq.com/v1alpha1
kind: GlobalRateLimit
metadata:
name: helloworld-zufardhiyaulhaq-com-bar-route
namespace: istio-system
spec:
# optional, for statsd metrics labeling
identifier: "bar-route"
Example metrics
# HELP ratelimit_redis_pool_cx_active Metric autogenerated by statsd_exporter.
# TYPE ratelimit_redis_pool_cx_active gauge
ratelimit_redis_pool_cx_active 10
# HELP ratelimit_redis_pool_cx_total Metric autogenerated by statsd_exporter.
# TYPE ratelimit_redis_pool_cx_total counter
ratelimit_redis_pool_cx_total 20
# HELP ratelimit_service_config_load_success Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_config_load_success counter
ratelimit_service_config_load_success 128
# HELP ratelimit_service_rate_limit_near_limit Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_rate_limit_near_limit counter
ratelimit_service_rate_limit_near_limit{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-podinfo-route",identifier="podinfo-default-route",rate_limit_service_name="istio-public-gateway-rls"} 257
# HELP ratelimit_service_rate_limit_over_limit Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_rate_limit_over_limit counter
ratelimit_service_rate_limit_over_limit{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-limit-route",identifier="podinfo-limit-route",rate_limit_service_name="istio-public-gateway-rls"} 2268
ratelimit_service_rate_limit_over_limit{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-podinfo-route",identifier="podinfo-default-route",rate_limit_service_name="istio-public-gateway-rls"} 35
ratelimit_service_rate_limit_over_limit{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-ratelimit-route",identifier="podinfo-ratelimit-route",rate_limit_service_name="istio-public-gateway-rls"} 2329
# HELP ratelimit_service_rate_limit_total_hits Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_rate_limit_total_hits counter
ratelimit_service_rate_limit_total_hits{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-limit-route",identifier="podinfo-limit-route",rate_limit_service_name="istio-public-gateway-rls"} 2268
ratelimit_service_rate_limit_total_hits{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-podinfo-route",identifier="podinfo-default-route",rate_limit_service_name="istio-public-gateway-rls"} 2188
ratelimit_service_rate_limit_total_hits{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-ratelimit-route",identifier="podinfo-ratelimit-route",rate_limit_service_name="istio-public-gateway-rls"} 2329
# HELP ratelimit_service_rate_limit_within_limit Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_rate_limit_within_limit counter
ratelimit_service_rate_limit_within_limit{global_rate_limit_name="podinfo-zufardhiyaulhaq-com-podinfo-route",identifier="podinfo-default-route",rate_limit_service_name="istio-public-gateway-rls"} 2153
# HELP ratelimit_service_response_time_seconds Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_response_time_seconds histogram
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.005"} 6704
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.01"} 6728
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.025"} 6750
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.05"} 6765
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.1"} 6782
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.25"} 6789
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="0.5"} 6789
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="1"} 6789
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="2.5"} 6789
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="5"} 6789
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="10"} 6789
ratelimit_service_response_time_seconds_bucket{grpc_method="ShouldRateLimit",le="+Inf"} 6789
ratelimit_service_response_time_seconds_sum{grpc_method="ShouldRateLimit"} 8.976000000000482
ratelimit_service_response_time_seconds_count{grpc_method="ShouldRateLimit"} 6789
# HELP ratelimit_service_total_requests Metric autogenerated by statsd_exporter.
# TYPE ratelimit_service_total_requests counter
ratelimit_service_total_requests{grpc_method="ShouldRateLimit"} 6785
How to Upgrade
Helm by default doesn't update the CRDs, you need to apply the CRDs manually
kubectl apply -f https://raw.githubusercontent.com/zufardhiyaulhaq/istio-ratelimit-operator/v2.8.0/charts/istio-ratelimit-operator/crds/crds.yaml
What's Changed
- Generate statsd-exporter config as configmap by @zufardhiyaulhaq in https://github.com/zufardhiyaulhaq/istio-ratelimit-operator/pull/28
Full Changelog: https://github.com/zufardhiyaulhaq/istio-ratelimit-operator/compare/v2.7.0...v2.8.0
Source code(tar.gz)
Source code(zip)