mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
refactor directory structure for netdata and rename chart to app_servers.py
This commit is contained in:
parent
40c7612fef
commit
f07797459c
4 changed files with 4 additions and 19 deletions
|
@ -173,6 +173,7 @@ services:
|
|||
- ./docker/netdata/netdatalib:/var/lib/netdata
|
||||
- ./docker/netdata/netdatacache:/var/cache/netdata
|
||||
- ./docker/netdata/netdataconfig/netdata.conf:/etc/netdata/netdata.conf
|
||||
- ./docker/netdata/netdataconfig/python.d/newsblur.py:/usr/libexec/netdata/python.d/newsblur.chart.py
|
||||
- ./docker/netdata/netdataconfig/python.d.conf:/usr/lib/netdata/conf.d/python.d.conf
|
||||
- ./docker/netdata/netdataconfig/python.d/newsblur.conf:/usr/lib/netdata/conf.d/python.d/newsblur.conf
|
||||
# the configurations for the newsblur_chart
|
||||
- ./docker/netdata/netdataconfig/conf/app_servers.conf:/usr/lib/netdata/conf.d/python.d/app_servers.conf
|
||||
- ./docker/netdata/netdataconfig/charts/app_servers.py:/usr/libexec/netdata/python.d/app_servers.chart.py
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from random import SystemRandom
|
||||
from bases.FrameworkServices.SimpleService import SimpleService
|
||||
import os
|
||||
import requests
|
||||
|
@ -12,20 +11,6 @@ else:
|
|||
|
||||
endpoints = {
|
||||
"app_servers": "/app-servers",
|
||||
"app_times": "/app-times",
|
||||
"classifiers": "/classifiers",
|
||||
"db_times": "/db-times",
|
||||
"errors": "/errors",
|
||||
"feed_counts": "/feed-counts",
|
||||
"feeds": "/feeds",
|
||||
"load_times": "/load-times",
|
||||
"stories": "/stories",
|
||||
"task_codes": "/task-codes",
|
||||
"task_pipeline": "/task-pipeline",
|
||||
"task_servers": "/task-servers",
|
||||
"task_times": "/task-times",
|
||||
"updates": "/updates",
|
||||
"users": "/users",
|
||||
}
|
||||
|
||||
def call_monitor(endpoint):
|
||||
|
@ -48,7 +33,6 @@ class Service(SimpleService):
|
|||
|
||||
}
|
||||
}
|
||||
self.random = SystemRandom()
|
||||
|
||||
@staticmethod
|
||||
def check():
|
|
@ -45,7 +45,7 @@ chrony: no
|
|||
# dovecot: yes
|
||||
# elasticsearch: yes
|
||||
# energid: yes
|
||||
newsblur: yes
|
||||
app_servers: yes
|
||||
# this is just an example
|
||||
example: no
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue