diff options
| author | fengweihao <[email protected]> | 2020-04-14 17:01:08 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2020-04-14 17:01:08 +0800 |
| commit | f2e2832cbf5f75903372fb3a05f1537ea31dc136 (patch) | |
| tree | ff282faf6a26655c15bd1fe0f9cce4363aeb0118 /program/include | |
| parent | 398907290e9a98711206dafb456d45f534ac4668 (diff) | |
TSG-1242 输出Prometheus格式的性能监控数据
Diffstat (limited to 'program/include')
| -rw-r--r-- | program/include/cert_conf.h | 8 | ||||
| -rw-r--r-- | program/include/cert_session.h | 6 |
2 files changed, 6 insertions, 8 deletions
diff --git a/program/include/cert_conf.h b/program/include/cert_conf.h index 777ba11..0e28062 100644 --- a/program/include/cert_conf.h +++ b/program/include/cert_conf.h @@ -31,6 +31,7 @@ struct tfe_http_request{ int keyring_id; char *sni; char rkey[DATALEN]; + struct timespec create_time; struct evhttp_request *evh_req; }; @@ -50,13 +51,16 @@ struct pxy_obj_keyring{ }; struct _initer_addr_t{ - uint16_t e_port; /*libevent prot*/ + uint16_t e_port; /*libevent prot*/ uint16_t maat_port; /*maat redis port*/ char maat_ip[16]; /*maat redis ip */ int dbindex; /*maat redis dbindex*/ uint16_t store_port; /*store redis port */ char store_ip[16]; /*store redis ip*/ + + uint16_t statsd_port; + char statsd_server[16]; }; struct ntc_maat_t{ @@ -81,7 +85,7 @@ struct config_bucket_t{ struct _initer_addr_t addr_t; }; -extern struct config_bucket_t *cert_default_config(); +extern struct config_bucket_t *cfg_instanec(); void cert_init_config(const char *config); diff --git a/program/include/cert_session.h b/program/include/cert_session.h index c73a03f..4f1e459 100644 --- a/program/include/cert_session.h +++ b/program/include/cert_session.h @@ -101,12 +101,6 @@ typedef struct { void * (*routine)(void *); /** Executive entry */ - int field_ids; /* dispaly */ - - int column_ids; - - uint64_t diffTime; - } x509_forge_thread; int cert_session_init(); |
