Skip to content

Commit 41584f9

Browse files
author
Mike Holloway
committed
add <query> to help for pretty and raw commands
1 parent fcd695a commit 41584f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

promql.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_configuration_template(self):
1414

1515
@botcmd
1616
def promql(self, msg, args):
17-
"""Execute a PromQL query against Prometheus and return pretty json results"""
17+
"""<query> Execute a PromQL query against Prometheus and return pretty json results"""
1818
try:
1919
req = requests.get('%s/query?query=%s' % (self.config['PROMQL_URL'], urllib.parse.quote_plus(args)))
2020
if req.status_code == 200:
@@ -181,7 +181,7 @@ def promql_memfree(self, msg, args):
181181

182182
@botcmd
183183
def promql_raw(self, msg, args):
184-
"""Execute a PromQL query against Prometheus and return raw json results"""
184+
"""<query> Execute a PromQL query against Prometheus and return raw json results"""
185185
try:
186186
req = requests.get('%s/query?query=%s' % (self.config['PROMQL_URL'], urllib.parse.quote_plus(args)))
187187
if req.status_code == 200:

0 commit comments

Comments
 (0)