Skip to content

Release 0.0.20

Choose a tag to compare

@ripienaar ripienaar released this 20 Mar 19:23
· 103 commits to main since this release
v0.0.20
0a36176

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: 1

A 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

  • (#160) Adds a registration system
  • (#163) Add a addresses network fact

Full Changelog: v0.0.19...v0.0.20