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

LinkerD and NamerD processes should announce their presence. #628

Open
zircote opened this issue Sep 6, 2016 · 1 comment
Open

LinkerD and NamerD processes should announce their presence. #628

zircote opened this issue Sep 6, 2016 · 1 comment

Comments

@zircote
Copy link

zircote commented Sep 6, 2016

A running linkerd and/or namerd process should announce their admin interface using the various announcer plugins. This feature would therefore allow for such ancillary services as Prometheus to scrape metrics using such features as zookeeper server-set discovery to locate a 1:N deployment of each type. Its configuration may be defined within the admin: key of the instance itself.

Example:

admin:
  port: 9990
  announcers:
    - type: io.l5d.serverset
      zkAddrs:
        - host: localhost
           port: 2181
      path: /disco/infra/prod/linkerd
@olix0r
Copy link
Member

olix0r commented Sep 12, 2016

Related to #605

Tim-Brooks pushed a commit to Tim-Brooks/linkerd that referenced this issue Dec 20, 2018
As described in linkerd#619. `process_start_time_seconds` is the idiomatic way of reporting to Prometheus the uptime of a process. It should contain the time in seconds since the beginning of the Unix epoch.

The proxy now exports this metric:
```
➜ http get localhost:4191/metrics
HTTP/1.1 200 OK
Content-Length: 902
Content-Type: text/plain; charset=utf-8
Date: Mon, 26 Mar 2018 22:09:55 GMT

# HELP request_total A counter of the number of requests the proxy has received.
# TYPE request_total counter

# HELP request_duration_ms A histogram of the duration of a request. This is measured from when the request headers are received to when the request stream has completed.
# TYPE request_duration_ms histogram

# HELP response_total A counter of the number of responses the proxy has received.
# TYPE response_total counter

# HELP response_duration_ms A histogram of the duration of a response. This is measured from when theresponse headers are received to when the response stream has completed.
# TYPE response_duration_ms histogram

# HELP response_latency_ms A histogram of the total latency of a response. This is measured from whenthe request headers are received to when the response stream has completed.
# TYPE response_latency_ms histogram

process_start_time_seconds 1522102089

```

Closes linkerd#619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants