Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move prometheus exporter config to use readers #1337

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ac4ee9c
move prometheus exporter config to use readers
codeboten Sep 9, 2024
e4adb40
missed a file
codeboten Sep 9, 2024
a650880
Merge branch 'main' into codeboten/prom-use-readers
codeboten Oct 1, 2024
c32b184
[opentelemetry-kube-stack]: Fix missing "release" label to openteleme…
davidcaste Oct 2, 2024
8a57314
Update default collector to 0.111.0 (#1369)
TylerHelmuth Oct 4, 2024
891804d
[opentelemetry-kube-stack]: Fix "Additional property selector is not …
suresh-target Oct 5, 2024
5234e27
Bump kyverno/action-install-chainsaw from 0.2.10 to 0.2.11 (#1373)
dependabot[bot] Oct 7, 2024
4ea4523
[chore] bump operator to 109 (#1374)
jaronoff97 Oct 7, 2024
5d51c1c
[chore] Bump operator to 0.110.0 (#1376)
swiatekm Oct 9, 2024
09ca308
[kube-stack] Bump opentelemetry-operator chart to 0.71 (#1384)
rogercoll Oct 15, 2024
2ee8b73
[opentelemetry-kube-stack] Adding additional labels (#1388)
suresh-target Oct 17, 2024
d056e64
Fix volume and mount indentation (#1390)
jaronoff97 Oct 17, 2024
c7ff3b1
[opentelemetry-operator] Fix Collector CRD referencing disabled webho…
ElderMael Oct 18, 2024
5375e7d
[kube-stack] Bump operator chart dependency version (#1393)
rogercoll Oct 21, 2024
5ae819a
[opentelemetry-operator] Update kube-rbac-proxy image to 0.18.1 to re…
edwintye Oct 28, 2024
18c43b8
docs: docs: adjust a description error in NOTES.txt file (#1395)
dartagnanli Nov 1, 2024
4d6748c
[operator] Bump default version to v0.111.0 (#1405)
TylerHelmuth Nov 1, 2024
32801f5
Deploy podmonitor for all modes (#1407)
Infogrid-MattBuckland Nov 5, 2024
31585fa
[demo] - update to 1.12 release including new flagd UI (#1367)
klucsik Nov 5, 2024
faea2ea
[operator] bump default version to v0.112.0 (#1410)
TylerHelmuth Nov 7, 2024
72afabd
[collector] bump default version to v0.113.0 (#1409)
TylerHelmuth Nov 7, 2024
58ba623
Release operator 0.113.0 (#1411)
pavolloffay Nov 12, 2024
4409d4d
feat: Add ability to configure extra resources based on feature gates…
thefirstofthe300 Nov 13, 2024
90f1f3f
fix: Configure feature gates appropriately (#1414)
thefirstofthe300 Nov 13, 2024
d7f6f42
Revert "missed a file"
codeboten Nov 14, 2024
5c51ff8
Revert "move prometheus exporter config to use readers"
codeboten Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:

- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- name: Set up chart-testing
uses: helm/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/demo-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: ./.github/actions/setup
with:
create-kind-cluster: "true"
helm-version: "v3.14.4"

- name: Run chart-testing (install)
run: "ct install --charts charts/opentelemetry-demo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: ./.github/actions/setup
with:
create-kind-cluster: "false"
helm-version: "v3.11.3"
helm-version: "v3.14.4"

- name: Run chart-testing (lint)
run: "ct lint --target-branch main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/operator-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
git clone -b v"$appVersion" --single-branch https://github.com/open-telemetry/opentelemetry-operator.git ./opentelemetry-operator

- name: Install chainsaw
uses: kyverno/[email protected].10
uses: kyverno/[email protected].11

- name: Install metrics-server
run: |
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
git clone -b v"$appVersion" --single-branch https://github.com/open-telemetry/opentelemetry-operator.git ./opentelemetry-operator

- name: Install chainsaw
uses: kyverno/[email protected].10
uses: kyverno/[email protected].11

- name: Install metrics-server
run: |
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ generate-examples:
for chart_name in $(CHARTS); do \
helm dependency build charts/$${chart_name}; \
EXAMPLES_DIR=charts/$${chart_name}/examples; \
EXAMPLES=$$(find $${EXAMPLES_DIR} -type d -maxdepth 1 -mindepth 1 -exec basename \{\} \;); \
EXAMPLES=$$(find $${EXAMPLES_DIR} -maxdepth 1 -mindepth 1 -type d -exec basename \{\} \;); \
for example in $${EXAMPLES}; do \
echo "Generating example: $${example}"; \
VALUES=$$(find $${EXAMPLES_DIR}/$${example} -name *values.yaml); \
Expand All @@ -17,7 +17,7 @@ generate-examples:
mv $${EXAMPLES_DIR}/$${example}/rendered/$${chart_name}/templates/* "$${EXAMPLES_DIR}/$${example}/rendered"; \
SUBCHARTS_DIR=$${EXAMPLES_DIR}/$${example}/rendered/$${chart_name}/charts; \
if [ -d "$${SUBCHARTS_DIR}" ]; then \
SUBCHARTS=$$(find $${SUBCHARTS_DIR} -type d -maxdepth 1 -mindepth 1 -exec basename \{\} \;); \
SUBCHARTS=$$(find $${SUBCHARTS_DIR} -maxdepth 1 -mindepth 1 -type d -exec basename \{\} \;); \
for subchart in $${SUBCHARTS}; do \
mkdir -p "$${EXAMPLES_DIR}/$${example}/rendered/$${subchart}"; \
mv $${SUBCHARTS_DIR}/$${subchart}/templates/* "$${EXAMPLES_DIR}/$${example}/rendered/$${subchart}"; \
Expand All @@ -32,15 +32,15 @@ generate-examples:
check-examples:
for chart_name in $(CHARTS); do \
EXAMPLES_DIR=charts/$${chart_name}/examples; \
EXAMPLES=$$(find $${EXAMPLES_DIR} -type d -maxdepth 1 -mindepth 1 -exec basename \{\} \;); \
EXAMPLES=$$(find $${EXAMPLES_DIR} -maxdepth 1 -mindepth 1 -type d -exec basename \{\} \;); \
for example in $${EXAMPLES}; do \
echo "Checking example: $${example}"; \
VALUES=$$(find $${EXAMPLES_DIR}/$${example} -name *values.yaml); \
for value in $${VALUES}; do \
helm dependency build charts/$${chart_name}; \
helm template example charts/$${chart_name} --namespace default --values $${value} --output-dir "${TMP_DIRECTORY}/$${example}"; \
SUBCHARTS_DIR=${TMP_DIRECTORY}/$${example}/$${chart_name}/charts; \
SUBCHARTS=$$(find $${SUBCHARTS_DIR} -type d -maxdepth 1 -mindepth 1 -exec basename \{\} \;); \
SUBCHARTS=$$(find $${SUBCHARTS_DIR} -maxdepth 1 -mindepth 1 -type d -exec basename \{\} \;); \
for subchart in $${SUBCHARTS}; do \
mkdir -p "${TMP_DIRECTORY}/$${example}/$${chart_name}/templates/$${subchart}"; \
mv ${TMP_DIRECTORY}/$${example}/$${chart_name}/charts/$${subchart}/templates/* "${TMP_DIRECTORY}/$${example}/$${chart_name}/templates/$${subchart}"; \
Expand Down Expand Up @@ -70,6 +70,7 @@ check-operator-crds:
$(call get-crd,${TMP_DIRECTORY}/crds/crd-opentelemetrycollector.yaml,https://raw.githubusercontent.com/open-telemetry/opentelemetry-operator/v$(OPERATOR_APP_VERSION)/bundle/community/manifests/opentelemetry.io_opentelemetrycollectors.yaml)
$(call get-crd,${TMP_DIRECTORY}/crds/crd-opentelemetryinstrumentation.yaml,https://raw.githubusercontent.com/open-telemetry/opentelemetry-operator/v$(OPERATOR_APP_VERSION)/bundle/community/manifests/opentelemetry.io_instrumentations.yaml)
$(call get-crd,${TMP_DIRECTORY}/crds/crd-opentelemetry.io_opampbridges.yaml,https://raw.githubusercontent.com/open-telemetry/opentelemetry-operator/v$(OPERATOR_APP_VERSION)/bundle/community/manifests/opentelemetry.io_opampbridges.yaml)

if diff ${TMP_DIRECTORY}/crds ./charts/opentelemetry-operator/conf/crds > /dev/null; then \
echo "Passed"; \
rm -rf ${TMP_DIRECTORY}; \
Expand All @@ -87,5 +88,7 @@ define get-crd
@sed -i 's/opentelemetry-operator-webhook-service/{{ template "opentelemetry-operator.fullname" . }}-webhook/g' $(1)
@sed -i '1s/^/{{- if .Values.crds.create }}\n/' $(1)
@sed -i 's#\(.*\)path: /convert#&\n\1port: {{ .Values.admissionWebhooks.servicePort }}#' $(1)
@sed -i 's#\(.*\)conversion:#{{- if .Values.admissionWebhooks.create }}\n&#' $(1)
@sed -i 's#\(.*\)- v1beta1#&\n{{- end }}#' $(1)
@echo '{{- end }}' >> $(1)
endef
4 changes: 2 additions & 2 deletions charts/opentelemetry-collector/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-collector
version: 0.107.0
version: 0.109.0
description: OpenTelemetry Collector Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand All @@ -12,4 +12,4 @@ maintainers:
- name: jaronoff97
- name: TylerHelmuth
icon: https://opentelemetry.io/img/logos/opentelemetry-logo-nav.png
appVersion: 0.110.0
appVersion: 0.113.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ kind: ClusterRole
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

rules:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ kind: ClusterRoleBinding
metadata:
name: example-opentelemetry-collector
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

roleRef:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

spec:
Expand All @@ -25,7 +25,7 @@ spec:
template:
metadata:
annotations:
checksum/config: b59255f59776bc33cdc8cec11469e415052e121c6097ca659cdda696202302c9
checksum/config: 05adf31e71768d6f4a0a72f54616072733e1605d80713238ee85456aafe75403

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand All @@ -45,7 +45,7 @@ spec:
- --config=/conf/relay.yaml
securityContext:
{}
image: "otel/opentelemetry-collector-k8s:0.110.0"
image: "otel/opentelemetry-collector-k8s:0.113.0"
imagePullPolicy: IfNotPresent
ports:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

component: standalone-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

spec:
Expand All @@ -23,7 +23,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 6e843d5f37494e4c76040246c70126f9f48298504862cddc2b995d203e2cde05
checksum/config: 45bec5a8c8f33cc8d7481ff6d7c0dd4235104c3257bb9c0761f62a157d70c97a

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand All @@ -43,7 +43,7 @@ spec:
- --config=/conf/relay.yaml
securityContext:
{}
image: "otel/opentelemetry-collector-k8s:0.110.0"
image: "otel/opentelemetry-collector-k8s:0.113.0"
imagePullPolicy: IfNotPresent
ports:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

spec:
Expand All @@ -25,7 +25,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 1d9b672e15b1e3dc257e79561b839026320701442d7cac2dbb43cf97ce93fc9c
checksum/config: 3ece6cc294f0ed92854413f33366d43d4b73621c702b50e6564565795cb9fbd0

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand All @@ -45,7 +45,7 @@ spec:
- --config=/conf/relay.yaml
securityContext:
{}
image: "otel/opentelemetry-collector-k8s:0.110.0"
image: "otel/opentelemetry-collector-k8s:0.113.0"
imagePullPolicy: IfNotPresent
ports:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

component: standalone-collector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

data:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

spec:
Expand All @@ -23,7 +23,7 @@ spec:
template:
metadata:
annotations:
checksum/config: 6e4750252406892037bc4bf92dcdc69bdc19dfd0efd4e63b72c34bd709c561fb
checksum/config: 8bfee756de57aa564d26f9f90a47f3e28bfe2e238a54df8307b9dd6e5f224115

labels:
app.kubernetes.io/name: opentelemetry-collector
Expand All @@ -43,7 +43,7 @@ spec:
- --config=/conf/relay.yaml
securityContext:
{}
image: "otel/opentelemetry-collector-k8s:0.110.0"
image: "otel/opentelemetry-collector-k8s:0.113.0"
imagePullPolicy: IfNotPresent
ports:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ metadata:
name: example-opentelemetry-collector
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ metadata:
name: example-opentelemetry-collector-agent
namespace: default
labels:
helm.sh/chart: opentelemetry-collector-0.107.0
helm.sh/chart: opentelemetry-collector-0.109.0
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/instance: example
app.kubernetes.io/version: "0.110.0"
app.kubernetes.io/version: "0.113.0"
app.kubernetes.io/managed-by: Helm

data:
Expand Down
Loading
Loading