-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop the __tmp_port label, which breaks autodiscovery deduplication
Signed-off-by: Pete Wall <pete.wall@grafana.com>
- Loading branch information
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...nitoring/tests/integration/anntoation-autodiscovery/deployments/nginx-static-metrics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: static-metric | ||
data: | ||
metrics.prom: | | ||
# HELP static_metric A static metric to serve for testing | ||
# TYPE static_metric gauge | ||
static_metric{} 1 | ||
--- | ||
apiVersion: source.toolkit.fluxcd.io/v1beta2 | ||
kind: OCIRepository | ||
metadata: | ||
name: nginx | ||
spec: | ||
interval: 1m | ||
url: oci://registry-1.docker.io/bitnamicharts/nginx | ||
ref: | ||
semver: 18.2.5 | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: nginx-static-metrics | ||
spec: | ||
interval: 1m | ||
chartRef: | ||
kind: OCIRepository | ||
name: nginx | ||
values: | ||
podAnnotations: | ||
k8s.grafana.com/scrape: "true" | ||
k8s.grafana.com/metrics.portNumber: "8080" | ||
replicaCount: 2 | ||
service: | ||
type: ClusterIP | ||
serverBlock: |- | ||
server { | ||
listen 0.0.0.0:8080; | ||
location /metrics { | ||
default_type "text/plain"; | ||
alias /data/metrics.prom; | ||
} | ||
} | ||
extraVolumes: | ||
- name: static-metric | ||
configMap: | ||
name: static-metric | ||
extraVolumeMounts: | ||
- name: static-metric | ||
mountPath: /data | ||
extraContainerPorts: | ||
- name: a-port | ||
containerPort: 8081 | ||
- name: another-port | ||
containerPort: 8082 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters