promhippie / prometheus-hcloud-sd Goto Github PK
View Code? Open in Web Editor NEWPrometheus Service Discovery for Hetzner Cloud
Home Page: https://promhippie.github.io/prometheus-hcloud-sd/
License: Apache License 2.0
Prometheus Service Discovery for Hetzner Cloud
Home Page: https://promhippie.github.io/prometheus-hcloud-sd/
License: Apache License 2.0
It would be nice if a change to the configuration automatically reloads the service.
Hetzner Cloud allows using .
, -
and _
in labels. While underscores works as expected, labels containing the other two chars, especially used in the key of a label, results in an "invalid label error" e.g. a label a.b.c:example
results in __meta_hcloud_label_a.b.c="example"
. Maybe a simple replace logic should be used to prevent invalid labels.
For Prometheus there is a new toolkit available which enables a web config to secure exporters (or HTTP service discoveries) be integrating certs and also authentication. This should be implemented. You can find it at https://github.com/prometheus/exporter-toolkit.
We should add a healthcheck command to make it easier for Docker containers to check if the service is running without the external healtchecks available via Kubernetes.
The HTTP SD within Prometheus accepts only application/json
as a content type, so we need to drop the utf-8 encoding part from the content type.
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: .github/renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: dockerfile.enableMajor
Instead of adding development tooling to the regular go.mod file we should use bingo to version used tools like calens, golint, reflex and staticcheck to make sure we always use versions known to work properly.
With the current behavior the resulting SD config doesn't get updated anymore if one of the projects fails, the config should be continued if one of the projects fails, otherwise it results in an not updated SD config.
Currently the built binaries are not really static, they got a dependency on muslc, this needs to be fixed, otherwise the Docker images are broken.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
This repository currently has no open or pending branches.
docker/Dockerfile.linux.386
i386/alpine 3.19@sha256:15c46ced65c6abed6a27472a7904b04273e9a8091a5627badd6ff016ab073171
docker/Dockerfile.linux.amd64
alpine 3.19@sha256:6457d53fb065d6f250e1504b9bc42d5b6c65941d57532c072d929dd0628977d0
docker/Dockerfile.linux.arm
arm32v6/alpine 3.19@sha256:b229a85166aadbde58e73e03c5e2b9737fb4642ffb2d98ba453adc90d144c1d8
docker/Dockerfile.linux.arm64
arm64v8/alpine 3.19@sha256:a0264d60f80df12bc1e6dd98bae6c43debe6667c0ba482711f0d806493467a46
.github/workflows/automerge.yml
tibdex/github-app-token v2
dependabot/fetch-metadata v2
.github/workflows/binaries.yml
actions/checkout v4
actions/setup-go v5
actionhippie/gpgsign v1
actionhippie/calens v1
ncipollo/release-action v1
.github/workflows/changes.yml
actions/checkout v4
actions/checkout v4
actions/setup-go v5
EndBug/add-and-commit v9
actions/checkout v4
actions/checkout v4
actions/setup-go v5
EndBug/add-and-commit v9
actions/checkout v4
actions/checkout v4
actions/setup-go v5
EndBug/add-and-commit v9
.github/workflows/docker.yml
actions/checkout v4
actions/setup-go v5
docker/metadata-action v5
docker/setup-qemu-action v3
docker/setup-buildx-action v3
docker/login-action v3
docker/login-action v3
docker/login-action v3
docker/build-push-action v5
actions/checkout v4
docker/metadata-action v5
actionhippie/manifest v1
docker/metadata-action v5
actionhippie/manifest v1
docker/metadata-action v5
actionhippie/manifest v1
actions/checkout v4
actionhippie/pushrm v1
actionhippie/pushrm v1
.github/workflows/docs.yml
actions/checkout v4
peaceiris/actions-hugo v3
peaceiris/actions-gh-pages v4
.github/workflows/general.yml
actions/checkout v4
actions/setup-go v5
codacy/codacy-coverage-reporter-action v1
.github/workflows/kustomize.yml
actions/checkout v4
actionhippie/kustomize v2
go.mod
go 1.21
go 1.22.3
github.com/go-chi/chi/v5 v5.0.12
github.com/go-kit/log v0.2.1
github.com/hetznercloud/hcloud-go/v2 v2.8.0
github.com/joho/godotenv v1.5.1
github.com/oklog/run v1.1.0
github.com/prometheus/client_golang v1.19.1
github.com/prometheus/common v0.53.0
github.com/prometheus/exporter-toolkit v0.11.0
github.com/stretchr/testify v1.9.0
github.com/urfave/cli/v2 v2.27.2
gopkg.in/yaml.v3 v3.0.1
deploy/kubernetes/kustomization.yml
We need to update the used Go version and on the same run we should also update all dependencies to the latest version to keep everything properly up to date.
Since Prometheus implements a HTTP SD with the new version 2.28 we should provide an endpoint for this implementation as an alternative to the regular file handler.
We got to drop the darwin/386 builds, they are not supported by the used Go version anymore. Soonish we should also add arm64 builds to stay compatible with current macOS hardware.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.