Repository navigation
Release 0.0.20
Service Registration
We now support creating dynamic infrastructure - automatically create a Prometheus or Load Balancer configuration based on what is installed elsewhere.
We provide CLI, Go SDK, Template Access, Agent and other integrations making this a flexible Service Registry based on NATS JetStream.
Any resource can now register itself when stable:
resources:
- service:
nginx:
ensure: running
enable: true
health_checks:
- check: exec
command: curl -sf http://localhost:80/health
register_when_stable:
- cluster: dev
service: prometheus
protocol: http
address: "{{ lookup('facts.network.addresses.#(default).address') }}"
port: "{{ lookup('data.monitor') }}"
priority: 1A template like this:
[[- registrations("*", "*", "prometheus", "*").PrometheusFileSD() ]]
Will create
[
{
"labels": {
"cluster": "dev",
"protocol": "http",
"service": "prometheus"
},
"targets": [
"192.168.92.105:8081"
]
}
]Read more in the Registration documentation page a video introduction can be seen on YouTube
Bug Fixes
- (#167) Fix parsing of Command in healthchecks
Enhancements
Full Changelog: v0.0.19...v0.0.20