Skip to content

Commit

Permalink
Merge pull request #24 from Ygnas/v1alpha1-route-types
Browse files Browse the repository at this point in the history
New route type metrics
  • Loading branch information
david-martin authored Sep 11, 2023
2 parents a893a3f + bad6cf2 commit 7884932
Show file tree
Hide file tree
Showing 15 changed files with 4,429 additions and 127 deletions.
256 changes: 256 additions & 0 deletions config/default/custom-resource-state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,262 @@ spec:
parent_port: ["port"]
- name: "status_parent_info"
help: "Parent references that the httproute is attached to"
each:
type: Info
info:
path: [status, parents]
labelsFromPath:
controller_name: ["controllerName"]
parent_group: ["parentRef", "group"]
parent_kind: ["parentRef", "kind"]
parent_name: ["parentRef", "name"]
parent_namespace: ["parentRef", "namespace"]
parent_section_name: ["parentRef", "sectionName"]
parent_port: ["parentRef", "port"]
- groupVersionKind:
group: gateway.networking.k8s.io
kind: "GRPCRoute"
version: "v1alpha2"
metricNamePrefix: gatewayapi_grpcroute
labelsFromPath:
name:
- metadata
- name
namespace:
- metadata
- namespace
metrics:
- name: "labels"
help: "Kubernetes labels converted to Prometheus labels."
each:
type: Info
info:
path: [metadata]
labelsFromPath:
"*": [labels]
- name: "created"
help: "created timestamp"
each:
type: Gauge
gauge:
path: [metadata, creationTimestamp]
- name: "deleted"
help: "deletion timestamp"
each:
type: Gauge
gauge:
path: [metadata, deletionTimestamp]
- name: "hostname_info"
help: "Hostname information"
each:
type: Info
info:
path: [spec, hostnames]
labelsFromPath:
hostname: []
- name: "parent_info"
help: "Parent references that the grpcroute wants to be attached to"
each:
type: Info
info:
path: [spec, parentRefs]
labelsFromPath:
parent_group: ["group"]
parent_kind: ["kind"]
parent_name: ["name"]
parent_namespace: ["namespace"]
parent_section_name: ["sectionName"]
parent_port: ["port"]
- name: "status_parent_info"
help: "Parent references that the grpcroute is attached to"
each:
type: Info
info:
path: [status, parents]
labelsFromPath:
controller_name: ["controllerName"]
parent_group: ["parentRef", "group"]
parent_kind: ["parentRef", "kind"]
parent_name: ["parentRef", "name"]
parent_namespace: ["parentRef", "namespace"]
parent_section_name: ["parentRef", "sectionName"]
parent_port: ["parentRef", "port"]
- groupVersionKind:
group: gateway.networking.k8s.io
kind: "TCPRoute"
version: "v1alpha2"
metricNamePrefix: gatewayapi_tcproute
labelsFromPath:
name:
- metadata
- name
namespace:
- metadata
- namespace
metrics:
- name: "labels"
help: "Kubernetes labels converted to Prometheus labels."
each:
type: Info
info:
path: [metadata]
labelsFromPath:
"*": [labels]
- name: "created"
help: "created timestamp"
each:
type: Gauge
gauge:
path: [metadata, creationTimestamp]
- name: "deleted"
help: "deletion timestamp"
each:
type: Gauge
gauge:
path: [metadata, deletionTimestamp]
- name: "parent_info"
help: "Parent references that the tcproute wants to be attached to"
each:
type: Info
info:
path: [spec, parentRefs]
labelsFromPath:
parent_group: ["group"]
parent_kind: ["kind"]
parent_name: ["name"]
parent_namespace: ["namespace"]
parent_section_name: ["sectionName"]
parent_port: ["port"]
- name: "status_parent_info"
help: "Parent references that the tcproute is attached to"
each:
type: Info
info:
path: [status, parents]
labelsFromPath:
controller_name: ["controllerName"]
parent_group: ["parentRef", "group"]
parent_kind: ["parentRef", "kind"]
parent_name: ["parentRef", "name"]
parent_namespace: ["parentRef", "namespace"]
parent_section_name: ["parentRef", "sectionName"]
parent_port: ["parentRef", "port"]
- groupVersionKind:
group: gateway.networking.k8s.io
kind: "TLSRoute"
version: "v1alpha2"
metricNamePrefix: gatewayapi_tlsroute
labelsFromPath:
name:
- metadata
- name
namespace:
- metadata
- namespace
metrics:
- name: "labels"
help: "Kubernetes labels converted to Prometheus labels."
each:
type: Info
info:
path: [metadata]
labelsFromPath:
"*": [labels]
- name: "created"
help: "created timestamp"
each:
type: Gauge
gauge:
path: [metadata, creationTimestamp]
- name: "deleted"
help: "deletion timestamp"
each:
type: Gauge
gauge:
path: [metadata, deletionTimestamp]
- name: "hostname_info"
help: "Hostname information"
each:
type: Info
info:
path: [spec, hostnames]
labelsFromPath:
hostname: []
- name: "parent_info"
help: "Parent references that the tlsroute wants to be attached to"
each:
type: Info
info:
path: [spec, parentRefs]
labelsFromPath:
parent_group: ["group"]
parent_kind: ["kind"]
parent_name: ["name"]
parent_namespace: ["namespace"]
parent_section_name: ["sectionName"]
parent_port: ["port"]
- name: "status_parent_info"
help: "Parent references that the tlsroute is attached to"
each:
type: Info
info:
path: [status, parents]
labelsFromPath:
controller_name: ["controllerName"]
parent_group: ["parentRef", "group"]
parent_kind: ["parentRef", "kind"]
parent_name: ["parentRef", "name"]
parent_namespace: ["parentRef", "namespace"]
parent_section_name: ["parentRef", "sectionName"]
parent_port: ["parentRef", "port"]
- groupVersionKind:
group: gateway.networking.k8s.io
kind: "UDPRoute"
version: "v1alpha2"
metricNamePrefix: gatewayapi_udproute
labelsFromPath:
name:
- metadata
- name
namespace:
- metadata
- namespace
metrics:
- name: "labels"
help: "Kubernetes labels converted to Prometheus labels."
each:
type: Info
info:
path: [metadata]
labelsFromPath:
"*": [labels]
- name: "created"
help: "created timestamp"
each:
type: Gauge
gauge:
path: [metadata, creationTimestamp]
- name: "deleted"
help: "deletion timestamp"
each:
type: Gauge
gauge:
path: [metadata, deletionTimestamp]
- name: "parent_info"
help: "Parent references that the udproute wants to be attached to"
each:
type: Info
info:
path: [spec, parentRefs]
labelsFromPath:
parent_group: ["group"]
parent_kind: ["kind"]
parent_name: ["name"]
parent_namespace: ["namespace"]
parent_section_name: ["sectionName"]
parent_port: ["port"]
- name: "status_parent_info"
help: "Parent references that the udproute is attached to"
each:
type: Info
info:
Expand Down
Loading

0 comments on commit 7884932

Please sign in to comment.