├── .circleci └── config.yml ├── .dockerignore ├── .github ├── dependabot.yml └── workflows │ ├── container_description.yml │ └── golangci-lint.yml ├── .gitignore ├── .golangci.yml ├── .promu.yml ├── .yamllint ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Dockerfile ├── LICENSE ├── MAINTAINERS.md ├── Makefile ├── Makefile.common ├── OWNERS ├── README.md ├── SECURITY.md ├── VERSION ├── dependabot.yml ├── examples ├── caddy-port-based │ ├── Caddyfile │ └── README.md └── kube-rbac-proxy │ ├── Dockerfile │ ├── client.yaml │ ├── deployment.yaml │ └── rbac.yaml ├── go.mod ├── go.sum ├── injectproxy ├── alerts.go ├── alerts_test.go ├── enforce.go ├── enforce_test.go ├── routes.go ├── routes_test.go ├── rules.go ├── rules_test.go ├── silences.go ├── silences_test.go ├── testdata │ ├── alerts_incomplete_upstream_response.golden │ ├── alerts_invalid_upstream_response.golden │ ├── alerts_match_namespace_ns1.golden │ ├── alerts_match_namespace_ns2.golden │ ├── alerts_match_namespaces_ns1_and_ns2.golden │ ├── alerts_no_match.golden │ ├── alerts_no_namespace_error.golden │ ├── alerts_upstream_error.golden │ ├── rules_incomplete_upstream_response.golden │ ├── rules_invalid_upstream_response.golden │ ├── rules_match_namespace_ns1.golden │ ├── rules_match_namespace_ns2.golden │ ├── rules_match_namespaces_ns1_and_ns2.golden │ ├── rules_no_match.golden │ ├── rules_no_match_with_gzip_not_requested.golden │ ├── rules_no_match_with_gzip_requested.golden │ ├── rules_no_namespace_error.golden │ ├── rules_upstream_error.golden │ ├── rules_with_active_alerts.golden │ └── rules_with_label_matchers.golden └── utils.go └── main.go /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | _output/ 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/container_description.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.github/workflows/container_description.yml -------------------------------------------------------------------------------- /.github/workflows/golangci-lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.github/workflows/golangci-lint.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | prom-label-proxy -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.promu.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.promu.yml -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/.yamllint -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/LICENSE -------------------------------------------------------------------------------- /MAINTAINERS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/MAINTAINERS.md -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/Makefile -------------------------------------------------------------------------------- /Makefile.common: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/Makefile.common -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/OWNERS -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/SECURITY.md -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.12.1 2 | -------------------------------------------------------------------------------- /dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/dependabot.yml -------------------------------------------------------------------------------- /examples/caddy-port-based/Caddyfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/examples/caddy-port-based/Caddyfile -------------------------------------------------------------------------------- /examples/caddy-port-based/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/examples/caddy-port-based/README.md -------------------------------------------------------------------------------- /examples/kube-rbac-proxy/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine 2 | 3 | RUN apk add --no-cache curl 4 | 5 | CMD /bin/sleep 3600 6 | -------------------------------------------------------------------------------- /examples/kube-rbac-proxy/client.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/examples/kube-rbac-proxy/client.yaml -------------------------------------------------------------------------------- /examples/kube-rbac-proxy/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/examples/kube-rbac-proxy/deployment.yaml -------------------------------------------------------------------------------- /examples/kube-rbac-proxy/rbac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/examples/kube-rbac-proxy/rbac.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/go.sum -------------------------------------------------------------------------------- /injectproxy/alerts.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/alerts.go -------------------------------------------------------------------------------- /injectproxy/alerts_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/alerts_test.go -------------------------------------------------------------------------------- /injectproxy/enforce.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/enforce.go -------------------------------------------------------------------------------- /injectproxy/enforce_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/enforce_test.go -------------------------------------------------------------------------------- /injectproxy/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/routes.go -------------------------------------------------------------------------------- /injectproxy/routes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/routes_test.go -------------------------------------------------------------------------------- /injectproxy/rules.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/rules.go -------------------------------------------------------------------------------- /injectproxy/rules_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/rules_test.go -------------------------------------------------------------------------------- /injectproxy/silences.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/silences.go -------------------------------------------------------------------------------- /injectproxy/silences_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/silences_test.go -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_incomplete_upstream_response.golden: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_invalid_upstream_response.golden: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_match_namespace_ns1.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/alerts_match_namespace_ns1.golden -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_match_namespace_ns2.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/alerts_match_namespace_ns2.golden -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_match_namespaces_ns1_and_ns2.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/alerts_match_namespaces_ns1_and_ns2.golden -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_no_match.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/alerts_no_match.golden -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_no_namespace_error.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/alerts_no_namespace_error.golden -------------------------------------------------------------------------------- /injectproxy/testdata/alerts_upstream_error.golden: -------------------------------------------------------------------------------- 1 | error -------------------------------------------------------------------------------- /injectproxy/testdata/rules_incomplete_upstream_response.golden: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /injectproxy/testdata/rules_invalid_upstream_response.golden: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /injectproxy/testdata/rules_match_namespace_ns1.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_match_namespace_ns1.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_match_namespace_ns2.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_match_namespace_ns2.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_match_namespaces_ns1_and_ns2.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_match_namespaces_ns1_and_ns2.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_no_match.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_no_match.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_no_match_with_gzip_not_requested.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_no_match_with_gzip_not_requested.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_no_match_with_gzip_requested.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_no_match_with_gzip_requested.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_no_namespace_error.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_no_namespace_error.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_upstream_error.golden: -------------------------------------------------------------------------------- 1 | error -------------------------------------------------------------------------------- /injectproxy/testdata/rules_with_active_alerts.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_with_active_alerts.golden -------------------------------------------------------------------------------- /injectproxy/testdata/rules_with_label_matchers.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/testdata/rules_with_label_matchers.golden -------------------------------------------------------------------------------- /injectproxy/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/injectproxy/utils.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prometheus-community/prom-label-proxy/HEAD/main.go --------------------------------------------------------------------------------