Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prometheus_client/exposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(self):
t.start()


def write_to_textfile(path, registry):
def write_to_textfile(path, registry=core.REGISTRY):
'''Write metrics to the given path.

This is intended for use with the Node exporter textfile collector.
Expand Down