-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from dlorenc/es
Add prometheus-elasticsearch-operator image.
- Loading branch information
Showing
6 changed files
with
79 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
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,37 @@ | ||
<!--monopod:start--> | ||
# prometheus-elasticsearch-exporter | ||
| | | | ||
| - | - | | ||
| **Status** | experimental | | ||
| **OCI Reference** | `cgr.dev/chainguard/prometheus-elasticsearch-exporter` | | ||
| **Variants/Tags** | ![](https://storage.googleapis.com/chainguard-images-build-outputs/summary/prometheus-elasticsearch-exporter.svg) | | ||
|
||
*[Contact Chainguard](https://www.chainguard.dev/chainguard-images) for enterprise support, SLAs, and access to older tags.* | ||
|
||
--- | ||
<!--monopod:end--> | ||
|
||
Minimal Prometheus Image | ||
|
||
## Get It! | ||
|
||
The image is available on `cgr.dev`: | ||
|
||
``` | ||
docker pull cgr.dev/chainguard/prometheus-elasticsearch-exporter:latest | ||
``` | ||
|
||
## Usage | ||
|
||
This image is a drop-in replacement for the upstream image. | ||
For full configuration, see the [documentation there](https://github.com/prometheus-community/elasticsearch_exporter). | ||
|
||
To test: | ||
|
||
```shell | ||
$ docker run cgr.dev/chainguard/prometheus-elasticsearch-exporter | ||
level=info ts=2023-03-31T23:08:40.120364051Z caller=clusterinfo.go:214 msg="triggering initial cluster info call" | ||
level=info ts=2023-03-31T23:08:40.120446635Z caller=clusterinfo.go:183 msg="providing consumers with updated cluster info label" | ||
level=error ts=2023-03-31T23:08:40.121301718Z caller=clusterinfo.go:267 msg="failed to get cluster info" err="Get \"http://localhost:9200/\": dial tcp 127.0.0.1:9200: connect: connection refused" | ||
level=error ts=2023-03-31T23:08:40.121330676Z caller=clusterinfo.go:188 msg="failed to retrieve cluster info from ES" err="Get \"http://localhost:9200/\": dial tcp 127.0.0.1:9200: connect: connection refused" | ||
``` |
26 changes: 26 additions & 0 deletions
26
images/prometheus-elasticsearch-exporter/configs/latest.apko.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,26 @@ | ||
contents: | ||
keyring: | ||
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub | ||
repositories: | ||
- https://packages.wolfi.dev/os | ||
packages: | ||
- prometheus-elasticsearch-exporter | ||
- wolfi-base | ||
- ca-certificates-bundle | ||
- busybox | ||
|
||
accounts: | ||
groups: | ||
- groupname: elasticsearch_exporter | ||
gid: 65532 | ||
users: | ||
- username: elasticsearch_exporter | ||
uid: 65532 | ||
run-as: 65532 | ||
|
||
entrypoint: | ||
command: /usr/bin/elasticsearch_exporter | ||
|
||
archs: | ||
- x86_64 | ||
- aarch64 |
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,6 @@ | ||
status: experimental | ||
versions: | ||
- apko: | ||
config: configs/latest.apko.yaml | ||
extractTagsFrom: | ||
package: prometheus-elasticsearch-exporter |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit -o nounset -o errtrace -o pipefail -x | ||
|
||
IMAGE_DIR="$(basename "$(cd "$(dirname ${BASH_SOURCE[0]})/.." && pwd )")" | ||
IMAGE_NAME=${IMAGE_NAME:-"cgr.dev/chainguard/${IMAGE_DIR}:latest"} | ||
|
||
docker run --rm "${IMAGE_NAME}" --version |
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