Skip to content

Commit

Permalink
[demo] prometheus honor_labels support (#662)
Browse files Browse the repository at this point in the history
* prometheus honor_labels

Signed-off-by: Pierre Tessier <pierre@pierretessier.com>

* bump chart version

Signed-off-by: Pierre Tessier <pierre@pierretessier.com>

* bump chart version

Signed-off-by: Pierre Tessier <pierre@pierretessier.com>

---------

Signed-off-by: Pierre Tessier <pierre@pierretessier.com>
Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
  • Loading branch information
puckpuck and TylerHelmuth authored Mar 2, 2023
1 parent aff41ac commit 9a552d6
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 80 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-demo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application
name: opentelemetry-demo
version: 0.19.3
version: 0.19.4
description: opentelemetry demo helm chart
home: https://opentelemetry.io/
sources:
Expand Down
72 changes: 36 additions & 36 deletions charts/opentelemetry-demo/examples/default/rendered/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Service
metadata:
name: example-adservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: adservice
Expand All @@ -29,7 +29,7 @@ kind: Service
metadata:
name: example-cartservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: cartservice
Expand All @@ -53,7 +53,7 @@ kind: Service
metadata:
name: example-checkoutservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: checkoutservice
Expand All @@ -77,7 +77,7 @@ kind: Service
metadata:
name: example-currencyservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: currencyservice
Expand All @@ -101,7 +101,7 @@ kind: Service
metadata:
name: example-emailservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: emailservice
Expand All @@ -125,7 +125,7 @@ kind: Service
metadata:
name: example-featureflagservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: featureflagservice
Expand All @@ -152,7 +152,7 @@ kind: Service
metadata:
name: example-ffspostgres
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: ffspostgres
Expand All @@ -176,7 +176,7 @@ kind: Service
metadata:
name: example-frontend
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: frontend
Expand All @@ -200,7 +200,7 @@ kind: Service
metadata:
name: example-frontendproxy
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: frontendproxy
Expand All @@ -224,7 +224,7 @@ kind: Service
metadata:
name: example-kafka
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: kafka
Expand All @@ -251,7 +251,7 @@ kind: Service
metadata:
name: example-loadgenerator
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: loadgenerator
Expand All @@ -275,7 +275,7 @@ kind: Service
metadata:
name: example-paymentservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: paymentservice
Expand All @@ -299,7 +299,7 @@ kind: Service
metadata:
name: example-productcatalogservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: productcatalogservice
Expand All @@ -323,7 +323,7 @@ kind: Service
metadata:
name: example-quoteservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: quoteservice
Expand All @@ -347,7 +347,7 @@ kind: Service
metadata:
name: example-recommendationservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: recommendationservice
Expand All @@ -371,7 +371,7 @@ kind: Service
metadata:
name: example-redis
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: redis
Expand All @@ -395,7 +395,7 @@ kind: Service
metadata:
name: example-shippingservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: shippingservice
Expand All @@ -419,7 +419,7 @@ kind: Deployment
metadata:
name: example-accountingservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: accountingservice
Expand Down Expand Up @@ -490,7 +490,7 @@ kind: Deployment
metadata:
name: example-adservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: adservice
Expand Down Expand Up @@ -565,7 +565,7 @@ kind: Deployment
metadata:
name: example-cartservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: cartservice
Expand Down Expand Up @@ -642,7 +642,7 @@ kind: Deployment
metadata:
name: example-checkoutservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: checkoutservice
Expand Down Expand Up @@ -729,7 +729,7 @@ kind: Deployment
metadata:
name: example-currencyservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: currencyservice
Expand Down Expand Up @@ -804,7 +804,7 @@ kind: Deployment
metadata:
name: example-emailservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: emailservice
Expand Down Expand Up @@ -883,7 +883,7 @@ kind: Deployment
metadata:
name: example-featureflagservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: featureflagservice
Expand Down Expand Up @@ -970,7 +970,7 @@ kind: Deployment
metadata:
name: example-ffspostgres
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: ffspostgres
Expand Down Expand Up @@ -1049,7 +1049,7 @@ kind: Deployment
metadata:
name: example-frauddetectionservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: frauddetectionservice
Expand Down Expand Up @@ -1120,7 +1120,7 @@ kind: Deployment
metadata:
name: example-frontend
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: frontend
Expand Down Expand Up @@ -1213,7 +1213,7 @@ kind: Deployment
metadata:
name: example-frontendproxy
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: frontendproxy
Expand Down Expand Up @@ -1312,7 +1312,7 @@ kind: Deployment
metadata:
name: example-kafka
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: kafka
Expand Down Expand Up @@ -1366,7 +1366,7 @@ kind: Deployment
metadata:
name: example-loadgenerator
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: loadgenerator
Expand Down Expand Up @@ -1455,7 +1455,7 @@ kind: Deployment
metadata:
name: example-paymentservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: paymentservice
Expand Down Expand Up @@ -1528,7 +1528,7 @@ kind: Deployment
metadata:
name: example-productcatalogservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: productcatalogservice
Expand Down Expand Up @@ -1605,7 +1605,7 @@ kind: Deployment
metadata:
name: example-quoteservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: quoteservice
Expand Down Expand Up @@ -1684,7 +1684,7 @@ kind: Deployment
metadata:
name: example-recommendationservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: recommendationservice
Expand Down Expand Up @@ -1765,7 +1765,7 @@ kind: Deployment
metadata:
name: example-redis
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: redis
Expand Down Expand Up @@ -1838,7 +1838,7 @@ kind: Deployment
metadata:
name: example-shippingservice
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/component: shippingservice
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ConfigMap
metadata:
name: example-grafana-dashboards
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/version: "1.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ data:
- /etc/config/rules
- /etc/config/alerts
scrape_configs:
- job_name: opentelemetry-community-demo
- honor_labels: true
job_name: opentelemetry-community-demo
kubernetes_sd_configs:
- namespaces:
own_namespace: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: ServiceAccount
metadata:
name: example
labels:
helm.sh/chart: opentelemetry-demo-0.19.3
helm.sh/chart: opentelemetry-demo-0.19.4
app.kubernetes.io/name: example
app.kubernetes.io/instance: example
app.kubernetes.io/version: "1.3.0"
Expand Down
Loading

0 comments on commit 9a552d6

Please sign in to comment.