| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package k8s_kubeproxy |
| 4 | |
| 5 | import "github.com/netdata/netdata/go/plugins/plugin/framework/collectorapi" |
| 6 | |
| 7 | type ( |
| 8 | // Charts is an alias for collectorapi.Charts |
| 9 | Charts = collectorapi.Charts |
| 10 | // Dims is an alias for collectorapi.Dims |
| 11 | Dims = collectorapi.Dims |
| 12 | // Dim is an alias for collectorapi.Dim |
| 13 | Dim = collectorapi.Dim |
| 14 | ) |
| 15 | |
| 16 | var charts = Charts{ |
| 17 | { |
| 18 | ID: "kubeproxy_sync_proxy_rules", |
| 19 | Title: "Sync Proxy Rules", |
| 20 | Units: "events/s", |
| 21 | Fam: "sync proxy rules", |
| 22 | Ctx: "k8s_kubeproxy.kubeproxy_sync_proxy_rules", |
| 23 | Dims: Dims{ |
| 24 | {ID: "sync_proxy_rules_count", Name: "sync proxy rules", Algo: collectorapi.Incremental}, |
| 25 | }, |
| 26 | }, |
| 27 | { |
| 28 | ID: "kubeproxy_sync_proxy_rules_latency", |
| 29 | Title: "Sync Proxy Rules Latency", |
| 30 | Units: "observes/s", |
| 31 | Fam: "sync proxy rules", |
| 32 | Ctx: "k8s_kubeproxy.kubeproxy_sync_proxy_rules_latency_microseconds", |
| 33 | Type: collectorapi.Stacked, |
| 34 | Dims: Dims{ |
| 35 | {ID: "sync_proxy_rules_bucket_1000", Name: "0.001 sec", Algo: collectorapi.Incremental}, |
| 36 | {ID: "sync_proxy_rules_bucket_2000", Name: "0.002 sec", Algo: collectorapi.Incremental}, |
| 37 | {ID: "sync_proxy_rules_bucket_4000", Name: "0.004 sec", Algo: collectorapi.Incremental}, |
| 38 | {ID: "sync_proxy_rules_bucket_8000", Name: "0.008 sec", Algo: collectorapi.Incremental}, |
| 39 | {ID: "sync_proxy_rules_bucket_16000", Name: "0.016 sec", Algo: collectorapi.Incremental}, |
| 40 | {ID: "sync_proxy_rules_bucket_32000", Name: "0.032 sec", Algo: collectorapi.Incremental}, |
| 41 | {ID: "sync_proxy_rules_bucket_64000", Name: "0.064 sec", Algo: collectorapi.Incremental}, |
| 42 | {ID: "sync_proxy_rules_bucket_128000", Name: "0.128 sec", Algo: collectorapi.Incremental}, |
| 43 | {ID: "sync_proxy_rules_bucket_256000", Name: "0.256 sec", Algo: collectorapi.Incremental}, |
| 44 | {ID: "sync_proxy_rules_bucket_512000", Name: "0.512 sec", Algo: collectorapi.Incremental}, |
| 45 | {ID: "sync_proxy_rules_bucket_1024000", Name: "1.024 sec", Algo: collectorapi.Incremental}, |
| 46 | {ID: "sync_proxy_rules_bucket_2048000", Name: "2.048 sec", Algo: collectorapi.Incremental}, |
| 47 | {ID: "sync_proxy_rules_bucket_4096000", Name: "4.096 sec", Algo: collectorapi.Incremental}, |
| 48 | {ID: "sync_proxy_rules_bucket_8192000", Name: "8.192 sec", Algo: collectorapi.Incremental}, |
| 49 | {ID: "sync_proxy_rules_bucket_16384000", Name: "16.384 sec", Algo: collectorapi.Incremental}, |
| 50 | {ID: "sync_proxy_rules_bucket_+Inf", Name: "+Inf", Algo: collectorapi.Incremental}, |
| 51 | }, |
| 52 | }, |
| 53 | { |
| 54 | ID: "kubeproxy_sync_proxy_rules_latency_percentage", |
| 55 | Title: "Sync Proxy Rules Latency Percentage", |
| 56 | Units: "%", |
| 57 | Fam: "sync proxy rules", |
| 58 | Ctx: "k8s_kubeproxy.kubeproxy_sync_proxy_rules_latency", |
| 59 | Type: collectorapi.Stacked, |
| 60 | Dims: Dims{ |
| 61 | {ID: "sync_proxy_rules_bucket_1000", Name: "0.001 sec", Algo: collectorapi.PercentOfIncremental}, |
| 62 | {ID: "sync_proxy_rules_bucket_2000", Name: "0.002 sec", Algo: collectorapi.PercentOfIncremental}, |
| 63 | {ID: "sync_proxy_rules_bucket_4000", Name: "0.004 sec", Algo: collectorapi.PercentOfIncremental}, |
| 64 | {ID: "sync_proxy_rules_bucket_8000", Name: "0.008 sec", Algo: collectorapi.PercentOfIncremental}, |
| 65 | {ID: "sync_proxy_rules_bucket_16000", Name: "0.016 sec", Algo: collectorapi.PercentOfIncremental}, |
| 66 | {ID: "sync_proxy_rules_bucket_32000", Name: "0.032 sec", Algo: collectorapi.PercentOfIncremental}, |
| 67 | {ID: "sync_proxy_rules_bucket_64000", Name: "0.064 sec", Algo: collectorapi.PercentOfIncremental}, |
| 68 | {ID: "sync_proxy_rules_bucket_128000", Name: "0.128 sec", Algo: collectorapi.PercentOfIncremental}, |
| 69 | {ID: "sync_proxy_rules_bucket_256000", Name: "0.256 sec", Algo: collectorapi.PercentOfIncremental}, |
| 70 | {ID: "sync_proxy_rules_bucket_512000", Name: "0.512 sec", Algo: collectorapi.PercentOfIncremental}, |
| 71 | {ID: "sync_proxy_rules_bucket_1024000", Name: "1.024 sec", Algo: collectorapi.PercentOfIncremental}, |
| 72 | {ID: "sync_proxy_rules_bucket_2048000", Name: "2.048 sec", Algo: collectorapi.PercentOfIncremental}, |
| 73 | {ID: "sync_proxy_rules_bucket_4096000", Name: "4.096 sec", Algo: collectorapi.PercentOfIncremental}, |
| 74 | {ID: "sync_proxy_rules_bucket_8192000", Name: "8.192 sec", Algo: collectorapi.PercentOfIncremental}, |
| 75 | {ID: "sync_proxy_rules_bucket_16384000", Name: "16.384 sec", Algo: collectorapi.PercentOfIncremental}, |
| 76 | {ID: "sync_proxy_rules_bucket_+Inf", Name: "+Inf", Algo: collectorapi.PercentOfIncremental}, |
| 77 | }, |
| 78 | }, |
| 79 | { |
| 80 | ID: "rest_client_requests_by_code", |
| 81 | Title: "HTTP Requests By Status Code", |
| 82 | Units: "requests/s", |
| 83 | Fam: "rest client", |
| 84 | Ctx: "k8s_kubeproxy.rest_client_requests_by_code", |
| 85 | Type: collectorapi.Stacked, |
| 86 | }, |
| 87 | { |
| 88 | ID: "rest_client_requests_by_method", |
| 89 | Title: "HTTP Requests By Status Method", |
| 90 | Units: "requests/s", |
| 91 | Fam: "rest client", |
| 92 | Ctx: "k8s_kubeproxy.rest_client_requests_by_method", |
| 93 | Type: collectorapi.Stacked, |
| 94 | }, |
| 95 | { |
| 96 | ID: "http_request_duration", |
| 97 | Title: "HTTP Requests Duration", |
| 98 | Units: "microseconds", |
| 99 | Fam: "http", |
| 100 | Ctx: "k8s_kubeproxy.http_request_duration", |
| 101 | Type: collectorapi.Stacked, |
| 102 | Dims: Dims{ |
| 103 | {ID: "http_request_duration_05", Name: "0.5"}, |
| 104 | {ID: "http_request_duration_09", Name: "0.9"}, |
| 105 | {ID: "http_request_duration_099", Name: "0.99"}, |
| 106 | }, |
| 107 | }, |
| 108 | } |