Skip to content

Commit

Permalink
[#51] Support pgexporter_ext 0.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperpedersen committed Oct 31, 2022
1 parent 2ec3933 commit 174dca7
Show file tree
Hide file tree
Showing 3 changed files with 600 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/include/queries.h
Expand Up @@ -96,6 +96,51 @@ pgexporter_query_free_disk_space(int server, bool data, struct query** query);
int
pgexporter_query_total_disk_space(int server, bool data, struct query** query);

/**
* Query OS information
* @param server The server
* @param query The resulting query
* @return 0 upon success, otherwise 1
*/
int
pgexporter_query_os_info(int server, struct query** query);

/**
* Query CPU information
* @param server The server
* @param query The resulting query
* @return 0 upon success, otherwise 1
*/
int
pgexporter_query_cpu_info(int server, struct query** query);

/**
* Query memory information
* @param server The server
* @param query The resulting query
* @return 0 upon success, otherwise 1
*/
int
pgexporter_query_memory_info(int server, struct query** query);

/**
* Query network information
* @param server The server
* @param query The resulting query
* @return 0 upon success, otherwise 1
*/
int
pgexporter_query_network_info(int server, struct query** query);

/**
* Query load avg
* @param server The server
* @param query The resulting query
* @return 0 upon success, otherwise 1
*/
int
pgexporter_query_load_avg(int server, struct query** query);

/**
* Query PostgreSQL version
* @param server The server
Expand Down

0 comments on commit 174dca7

Please sign in to comment.