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

Add prometheus-elasticsearch-operator image. #415

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
| [powershell](./images/powershell) | `cgr.dev/chainguard/powershell` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/powershell.build.status.latest-root.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/powershell:latest-root)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/powershell.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/powershell:latest) |
| [prometheus](./images/prometheus) | `cgr.dev/chainguard/prometheus` | stable | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/prometheus.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/prometheus:latest) |
| [prometheus-alertmanager](./images/prometheus-alertmanager) | `cgr.dev/chainguard/prometheus-alertmanager` | stable | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/prometheus-alertmanager.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/prometheus-alertmanager:latest) |
| [prometheus-elasticsearch-exporter](./images/prometheus-elasticsearch-exporter) | `cgr.dev/chainguard/prometheus-elasticsearch-exporter` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/prometheus-elasticsearch-exporter.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/prometheus-elasticsearch-exporter:latest) |
| [prometheus-mysqld-exporter](./images/prometheus-mysqld-exporter) | `cgr.dev/chainguard/prometheus-mysqld-exporter` | experimental | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/prometheus-mysqld-exporter.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/prometheus-mysqld-exporter:latest) |
| [prometheus-node-exporter](./images/prometheus-node-exporter) | `cgr.dev/chainguard/prometheus-node-exporter` | stable | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/prometheus-node-exporter.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/prometheus-node-exporter:latest) |
| [python](./images/python) | `cgr.dev/chainguard/python` | stable | [![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/python.build.status.3.10-dev.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/python:3.10-dev)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/python.build.status.3.10.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/python:3.10)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/python.build.status.latest-dev.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/python:latest-dev)<br/>[![](https://storage.googleapis.com/chainguard-images-build-outputs/badges/python.build.status.latest.svg)](https://registry-ui.chainguard.app/?image=cgr.dev/chainguard/python:latest) |
Expand Down
37 changes: 37 additions & 0 deletions images/prometheus-elasticsearch-exporter/README.md
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 images/prometheus-elasticsearch-exporter/configs/latest.apko.yaml
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
6 changes: 6 additions & 0 deletions images/prometheus-elasticsearch-exporter/image.yaml
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
8 changes: 8 additions & 0 deletions images/prometheus-elasticsearch-exporter/tests/01-version.sh
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
2 changes: 1 addition & 1 deletion images/prometheus-mysqld-exporter/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ versions:
- apko:
config: configs/latest.apko.yaml
extractTagsFrom:
package: prometheus
package: prometheus-mysqld-exporter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀