文件操作 - remote_write.h
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/netdata/exporting/prometheus/remote_write/remote_write.h
编辑文件内容
// SPDX-License-Identifier: GPL-3.0-or-later #ifndef NETDATA_EXPORTING_PROMETHEUS_REMOTE_WRITE_H #define NETDATA_EXPORTING_PROMETHEUS_REMOTE_WRITE_H #include "exporting/exporting_engine.h" #include "exporting/prometheus/prometheus.h" #include "remote_write_request.h" int init_prometheus_remote_write_instance(struct instance *instance); extern void clean_prometheus_remote_write(struct instance *instance); int format_host_prometheus_remote_write(struct instance *instance, RRDHOST *host); int format_chart_prometheus_remote_write(struct instance *instance, RRDSET *st); int format_dimension_prometheus_remote_write(struct instance *instance, RRDDIM *rd); int format_batch_prometheus_remote_write(struct instance *instance); int prometheus_remote_write_send_header(int *sock, struct instance *instance); int process_prometheus_remote_write_response(BUFFER *buffer, struct instance *instance); #endif //NETDATA_EXPORTING_PROMETHEUS_REMOTE_WRITE_H
修改文件时间
将文件时间修改为当前时间的前一年
删除文件